diff --git a/fritz_temp_sync/sync_ha_fb.py b/fritz_temp_sync/sync_ha_fb.py index 3b3f749..b885910 100755 --- a/fritz_temp_sync/sync_ha_fb.py +++ b/fritz_temp_sync/sync_ha_fb.py @@ -36,7 +36,9 @@ async def handle_event(idx: int): elif entity_id in sensor_mappings.keys(): sensor_temp = round(float(new_state["attributes"]["temperature"]) * 2) / 2 + logger.info(sensor_mappings[entity_id]) for thermostate in sensor_mappings[entity_id]: + logger.info(thermostate) therm_state = await ha.get_device_state(thermostate) logger.info(f"{thermostate} {therm_state}") if therm_state["state"] == "unavailable":