mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-03 16:07:43 +00:00
Merge pull request #5502 from ascillato/patch-1
Add HASS_STATE to command STATE
This commit is contained in:
commit
76149ca1fb
@ -615,6 +615,11 @@ void MqttDataHandler(char* topic, uint8_t* data, unsigned int data_len)
|
||||
if (Settings.flag3.hass_tele_on_power) {
|
||||
MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_STATE), MQTT_TELE_RETAIN);
|
||||
}
|
||||
#ifdef USE_HOME_ASSISTANT
|
||||
if (Settings.flag.hass_discovery) {
|
||||
HAssPublishStatus();
|
||||
}
|
||||
#endif // USE_HOME_ASSISTANT
|
||||
}
|
||||
else if (CMND_SLEEP == command_code) {
|
||||
if ((payload >= 0) && (payload < 251)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user