Update ZgatewayRF2.ino (#1164)

kaku devices don't have an OFF  payload
This commit is contained in:
aaddame authored and GitHub committed 2022-02-14 16:14:10 -06:00
1 parent 257b39da81
commit f7d8714984
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ void RF2toMQTTdiscovery(JsonObject& data) {
data["switchType"] = 1; // switchtype = 1 turns switch on.
serializeJson(data, payloadonstr);
data["switchType"] = 0; // switchtype = 0 turns switch off.
serializeJson(data, payloadonstr);
serializeJson(data, payloadoffstr);
data["switchType"] = org_switchtype; // Restore original switchvalue
String switchname;