mirror of https://github.com/arendst/Tasmota.git
commit
cdafd51c63
|
@ -1941,9 +1941,21 @@ void MI32EverySecond(bool restart){
|
||||||
MI32TimeoutSensors();
|
MI32TimeoutSensors();
|
||||||
|
|
||||||
if (MI32.option.MQTTType == 0){
|
if (MI32.option.MQTTType == 0){
|
||||||
|
// show tas style sensor MQTT
|
||||||
MI32ShowSomeSensors();
|
MI32ShowSomeSensors();
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (MI32.option.MQTTType == 1
|
||||||
|
#ifdef USE_HOME_ASSISTANT
|
||||||
|
||
|
||||||
|
Settings.flag.hass_discovery
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
|
// these two share a counter
|
||||||
|
// discovery only sent if hass_discovery
|
||||||
MI32DiscoveryOneMISensor();
|
MI32DiscoveryOneMISensor();
|
||||||
|
// show independent style sensor MQTT
|
||||||
|
// note - if !MQTTType, then this is IN ADDITION to 'normal'
|
||||||
MI32ShowOneMISensor();
|
MI32ShowOneMISensor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue