|
@@ -130,7 +130,7 @@ async def get_planned(project_id: str, device_id: str) -> float:
|
|
chill_water_valve_opening_set_duration = await platform.get_duration(
|
|
chill_water_valve_opening_set_duration = await platform.get_duration(
|
|
InfoCode.chill_water_valve_opening_set, device_id, 15 * 60
|
|
InfoCode.chill_water_valve_opening_set, device_id, 15 * 60
|
|
)
|
|
)
|
|
- on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 15 * 60)
|
|
|
|
|
|
+ on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 20 * 60)
|
|
|
|
|
|
# if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
|
|
# if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
|
|
# thermal_mode = ThermalMode.cooling
|
|
# thermal_mode = ThermalMode.cooling
|
|
@@ -145,6 +145,7 @@ async def get_planned(project_id: str, device_id: str) -> float:
|
|
if item['value'] == 0.0:
|
|
if item['value'] == 0.0:
|
|
is_off_to_on = True
|
|
is_off_to_on = True
|
|
break
|
|
break
|
|
|
|
+ logger.debug(f'{device_id} was off to on: {is_off_to_on}')
|
|
|
|
|
|
is_thermal_mode_switched = False
|
|
is_thermal_mode_switched = False
|
|
if len(set([item['value'] for item in hot_water_valve_opening_set_duration])) > 1:
|
|
if len(set([item['value'] for item in hot_water_valve_opening_set_duration])) > 1:
|