mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 22:48:16 +01:00
Set Power to Zero if Switched Off
Set power to Zero if the actor is switched off.
This commit is contained in:
parent
58175bf951
commit
55db17e4fe
1 changed files with 2 additions and 2 deletions
|
@ -32,6 +32,6 @@ class GenericMqttActor(MQTTActor):
|
|||
self.state = True
|
||||
|
||||
async def off(self):
|
||||
formatted_payload = self.payload.format(switch_onoff = "off", switch_10 = 0, power = self.power)
|
||||
formatted_payload = self.payload.format(switch_onoff = "off", switch_10 = 0, power = 0)
|
||||
await self.publish_mqtt_message(self.topic, formatted_payload)
|
||||
self.state = False
|
Loading…
Reference in a new issue