diff --git a/custom_components/eltako/gateway.py b/custom_components/eltako/gateway.py index efa3d623..b3f09eb3 100644 --- a/custom_components/eltako/gateway.py +++ b/custom_components/eltako/gateway.py @@ -92,6 +92,7 @@ def set_connection_state_changed_handler(self, handler): def _fire_connection_state_changed_event(self): + LOGGER.info("Fire message connection state changed") event_id = config_helpers.get_bus_event_type(self.base_id, SIGNAL_GATEWAY_CONNECTION_STATUS) dispatcher_send(self.hass, event_id, self._bus.is_active()) @@ -137,7 +138,8 @@ def process_connection_status_signal(self, data): def _init_bus(self): self._received_message_count = 0 - # self._fire_received_message_count_event() + self._fire_received_message_count_event() + if GatewayDeviceType.is_esp2_gateway(self.dev_type): self._bus = RS485SerialInterfaceV2(self.serial_path, baud_rate=self.baud_rate, callback=self._callback_receive_message_from_serial_bus) else: