From 7f30da8a3df100711cdb33bed2866ffe1410f878 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Tue, 14 Jan 2020 09:49:08 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?utf8?q?=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20POWER=20?= =?utf8?q?=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D0=B2=D0=BC=D0=B5=D1=81=D1=82?= =?utf8?q?=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B8=20=D1=81=20Tasmota.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- nmd/nl_mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmd/nl_mqtt.py b/nmd/nl_mqtt.py index ab7b997..fc6ddec 100644 --- a/nmd/nl_mqtt.py +++ b/nmd/nl_mqtt.py @@ -100,7 +100,7 @@ class MqttDriver(metaclass=Singleton): if command == "power": payload = payload.decode('utf-8').lower() print( "command: POWER " + payload ) - if payload == "off": + if payload == "off" or payload == "0": mtrf_command["cmd"] = 0 else: mtrf_command["cmd"] = 2 -- 2.34.1