Merge pull request #9093 from effelle/development

SO59 support for Power0
This commit is contained in:
Theo Arends 2020-08-14 17:05:37 +02:00 committed by GitHub
commit 3bc24b4319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,6 +369,9 @@ void CmndPower(void)
XdrvMailbox.payload = POWER_SHOW_STATE;
}
SetAllPower(XdrvMailbox.payload, SRC_IGNORE);
if (Settings.flag3.hass_tele_on_power) { // SetOption59 - Send tele/%topic%/STATE in addition to stat/%topic%/RESULT
MqttPublishTeleState();
}
mqtt_data[0] = '\0';
}
}