From 7c0ddf1828e131950c1266ab56086005552a651d Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 22 Aug 2026 13:01:56 +0200 Subject: [PATCH] Add 1SINQ OneKey heat pump (sgready via MQTT) (#33069) --- templates/definition/charger/onekey.yaml | 66 ++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 templates/definition/charger/onekey.yaml diff --git a/templates/definition/charger/onekey.yaml b/templates/definition/charger/onekey.yaml new file mode 100644 index 000000000..1442c6c39 --- /dev/null +++ b/templates/definition/charger/onekey.yaml @@ -0,0 +1,66 @@ +template: onekey +products: + - brand: 1SINQ + description: + generic: OneKey +capabilities: ["meter", "dim"] +group: heating +requirements: + evcc: ["skiptest"] + description: + de: | + OneKey-Heizungsregelung mit aktivierter evcc-Anbindung. Die Wärmepumpe + wird über SG-Ready-Zustände geführt (1=Dimmen, 2=Normal, 3=Boost). + Dazu muss im OneKey-Gerät der Energiemanager im Modus SG-Ready laufen + und evcc als SG-Ready-Quelle eingestellt sein. Läuft evcc auf dem + OneKey-Gerät selbst, ist der Broker `localhost`. + en: | + 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`. +params: + - preset: mqtt + - name: topic + default: onekey + description: + de: Basis-Topic des OneKey-Geräts + en: Base topic of the OneKey device +render: | + type: sgready + setmode: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/sgmode/set + retained: true + setmaxpower: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/maxpower/set + retained: true + getmode: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/sgmode + timeout: 90s + power: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/power + timeout: 90s + energy: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/energy + timeout: 90s + temp: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/temp + timeout: 90s + limittemp: + source: mqtt + {{- include "mqtt" . | indent 2 }} + topic: {{ .topic }}/wp/limittemp + timeout: 90s