fritz_temp_sync/sync_ha_fb.py aktualisiert
This commit is contained in:
parent
00b161945f
commit
23140f672f
@ -36,7 +36,9 @@ async def handle_event(idx: int):
|
|||||||
|
|
||||||
elif entity_id in sensor_mappings.keys():
|
elif entity_id in sensor_mappings.keys():
|
||||||
sensor_temp = round(float(new_state["attributes"]["temperature"]) * 2) / 2
|
sensor_temp = round(float(new_state["attributes"]["temperature"]) * 2) / 2
|
||||||
|
logger.info(sensor_mappings[entity_id])
|
||||||
for thermostate in sensor_mappings[entity_id]:
|
for thermostate in sensor_mappings[entity_id]:
|
||||||
|
logger.info(thermostate)
|
||||||
therm_state = await ha.get_device_state(thermostate)
|
therm_state = await ha.get_device_state(thermostate)
|
||||||
logger.info(f"{thermostate} {therm_state}")
|
logger.info(f"{thermostate} {therm_state}")
|
||||||
if therm_state["state"] == "unavailable":
|
if therm_state["state"] == "unavailable":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user