mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Update HA auto-discovery
This commit is contained in:
parent
5edeafbe31
commit
f3891077d0
@ -172,7 +172,7 @@ static void mqtt_message_cb(char * topic, byte * payload, unsigned int length)
|
||||
} else if(topic == strstr_P(topic, PSTR("homeassistant/status"))) { // HA discovery topic
|
||||
if(mqttHAautodiscover && !strcasecmp_P((char *)payload, PSTR("online"))) {
|
||||
dispatch_current_state();
|
||||
mqtt_ha_send_backlight();
|
||||
mqtt_ha_register_auto_discovery();
|
||||
}
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user