# 1SINQ OneKey

Source: https://docs.evcc.io/en/heating/1sinq-onekey

OneKey heating controller with evcc integration enabled. The heat pump
is controlled via SG Ready states (1=dim, 2=normal, 3=boost). The
device's energy manager must run in SG Ready mode with evcc selected
as the SG Ready source. When evcc runs on the OneKey device itself the
broker is `localhost`.

Supported features: meter, dim

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| host | IP address or hostname IP address or hostname of the MQTT broker | 192.0.2.2 |  |
| port | Port MQTT broker port | 1883 |  |
| topic | Base topic of the OneKey device Topic (omit leading /) | onekey |  |
| timeout | Timeout When a reading counts as stale — default 90 s, three times the device's 30 s heartbeat | 90s |  |
| user | Username e.g. email address, user id, etc. |  | advanced |
| password | Password Service account password |  | advanced |

## Configuration example for evcc.yaml

```yaml
chargers:
    - name: my_heating
      type: template
      template: onekey
      host: 192.0.2.2 # IP address or hostname, IP address or hostname of the MQTT broker
      port: 1883 # Port, MQTT broker port (optional)
      topic: onekey # Base topic of the OneKey device, Topic (omit leading /) (optional)
      timeout: 90s # Timeout, When a reading counts as stale — default 90 s, three times the device's 30 s heartbeat (optional)
      user: # Username, e.g. email address, user id, etc. (optional)
      password: # Password, Service account password (optional)
```
