Auto discovery deactivation at runtime by MQTT command (#856)
and switch automatic creation for it in HASS (by autodiscovery :-)
This commit is contained in:
1 parent
e8b4c63c6c
commit
2d377a1c3f
9 files changed
+94
-26
No files matched your search
@@ -132,7 +132,8 @@ void RF2toMQTT() {
|
||||
RF2data.set("address", (unsigned long)rf2rd.address);
|
||||
RF2data.set("switchType", (int)rf2rd.switchType);
|
||||
# ifdef ZmqttDiscovery //component creation for HA
|
||||
RF2toMQTTdiscovery(RF2data);
|
||||
if (disc)
|
||||
RF2toMQTTdiscovery(RF2data);
|
||||
# endif
|
||||
|
||||
pub(subjectRF2toMQTT, RF2data);
|
||||
|
||||
Reference in new issue
Block a user