BugFix: RX current setpoint

This commit is contained in:
Dirk Alders 2023-12-15 19:58:54 +01:00
parent c913350d5f
commit 4fb01e2f93

View File

@ -90,10 +90,11 @@ class brennenstuhl_heatingvalve(base):
def __rx__(self, client, userdata, message): def __rx__(self, client, userdata, message):
payload = json.loads(message.payload) payload = json.loads(message.payload)
if message.topic == self.topic + '/set': if "current_heating_setpoint" in payload:
self.target("current_heating_setpoint", payload["current_heating_setpoint"]) if message.topic == self.topic + '/set':
if message.topic == self.topic: self.target("current_heating_setpoint", payload["current_heating_setpoint"])
self.state("current_heating_setpoint", payload["current_heating_setpoint"]) if message.topic == self.topic:
self.state("current_heating_setpoint", payload["current_heating_setpoint"])
class silvercrest_powerplug(base): class silvercrest_powerplug(base):