BugFix: RX current setpoint
This commit is contained in:
parent
c913350d5f
commit
4fb01e2f93
@ -90,10 +90,11 @@ class brennenstuhl_heatingvalve(base):
|
||||
|
||||
def __rx__(self, client, userdata, message):
|
||||
payload = json.loads(message.payload)
|
||||
if message.topic == self.topic + '/set':
|
||||
self.target("current_heating_setpoint", payload["current_heating_setpoint"])
|
||||
if message.topic == self.topic:
|
||||
self.state("current_heating_setpoint", payload["current_heating_setpoint"])
|
||||
if "current_heating_setpoint" in payload:
|
||||
if message.topic == self.topic + '/set':
|
||||
self.target("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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user