HASS Discovery - Create BLE devices automatically to gather entities (#826)

Create automatically devices into Home Assistant through MQTT auto discovery

Before, only entities were created automaticaly and they were not linked to a device.
This commit is contained in:
Thibault Cohen authored and GitHub committed 2020-12-22 06:31:13 -06:00
1 parent a83f725bad
commit 0c01ded583
6 files changed
+200 -109

No files matched your search

+2 -1
View File
@@ -111,7 +111,8 @@ void RF2toMQTTdiscovery(JsonObject& data) {
createDiscovery(switchRF[0], "", switchRF[1],
(char*)getUniqueId(switchRF[1], "").c_str(), will_Topic,
switchRF[3], switchRF[4], switchRF[5], switchRF[6],
switchRF[7], 0, "", "", true, subjectMQTTtoRF2);
switchRF[7], 0, "", "", true, subjectMQTTtoRF2,
"", "", "", "");
}
# endif