From 6e6588208314e283451aa40587d01cd1f46883af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Kolly?= Date: Mon, 26 Apr 2021 13:50:44 +0200 Subject: [PATCH] Publish state for both hass and homie, as the hass device availability_topic is set to the same topic --- lib/mqtt/MqttController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mqtt/MqttController.js b/lib/mqtt/MqttController.js index 36ad5168343..4bec6739cc8 100644 --- a/lib/mqtt/MqttController.js +++ b/lib/mqtt/MqttController.js @@ -438,7 +438,7 @@ class MqttController { * @return {Promise} */ async setState(state) { - if (this.homieEnabled) { + if (this.homieEnabled || this.hassEnabled) { await this.asyncClient.publish(this.stateTopic, state, { // @ts-ignore qos: MqttCommonAttributes.QOS.AT_LEAST_ONCE,