diff --git a/custom_components/thermiq_mqtt/heatpump/__init__.py b/custom_components/thermiq_mqtt/heatpump/__init__.py index 8639920..491a237 100644 --- a/custom_components/thermiq_mqtt/heatpump/__init__.py +++ b/custom_components/thermiq_mqtt/heatpump/__init__.py @@ -185,9 +185,6 @@ async def message_received(self, message): if "vp_read" in json_dict: self._hpstate["communication_status"] = json_dict["vp_read"] - if "app_info" in json_dict: - self._hpstate["app_info"] = json_dict["app_info"] - # self._hass.states.async_set( # self._domain # + "_" @@ -205,6 +202,10 @@ async def message_received(self, message): # "ok", # ) + if "app_info" in json_dict: + self._hpstate["app_info"] = json_dict["app_info"] + + self._hass.bus.fire( self._domain + "_" + self._id + "_msg_rec_event", {} )