a first try for mi flora and mi jia auto discovery on hass

#361
This commit is contained in:
Florian committed 2019-03-01 23:50:30 +01:00
1 parent 7eb231c41e
commit 97e8217380
2 files changed
+65 -3

No files matched your search

+3 -3
View File
@@ -291,7 +291,7 @@ void pubMqttDiscovery()
#endif
#ifdef ZgatewayIR
// Sensor to display RF received value
// Sensor to display IR received value
trc(F("gatewayIRDiscovery"));
char * gatewayIR[8] = {"sensor", "gatewayIR", "", "","{{ value_json.value }}","", "", ""};
//component type,name,availability topic,device class,value template,payload on, payload off, unit of measurement
@@ -306,7 +306,7 @@ void pubMqttDiscovery()
#endif
#ifdef Zgateway2G
// Sensor to display RF received value
// Sensor to display 2G received value
trc(F("gateway2GDiscovery"));
char * gateway2G[8] = {"sensor", "gateway2G", "", "","{{ value_json.message }}","", "", ""};
//component type,name,availability topic,device class,value template,payload on, payload off, unit of measurement
@@ -321,7 +321,7 @@ void pubMqttDiscovery()
#endif
#ifdef ZgatewayBT
// Sensor to display RF received value
// Sensor to display BT received value
trc(F("gatewayBTDiscovery"));
char * gatewayBT[8] = {"sensor", "gatewayBT", "", "","{{ value_json.message }}","", "", ""};
//component type,name,availability topic,device class,value template,payload on, payload off, unit of measurement