bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
85 stars 23 forks source link

[schedy] Support thermostats with a temperature range #63

Open girlpunk opened 3 years ago

girlpunk commented 3 years ago

Some thermostat devices (such as air conditioning with heat/cool) only support a temperature range, identified by the SUPPORT_TARGET_TEMPERATURE_RANGE flag. These thermostats don't have a single temperature attribute, but instead use two seperate attributes for the high and low setpoints (target_temp_high and target_temp_low respectively).

Currently, trying to use one of these thermostats with Schedy results in multiple warnings, and the setpoints not being adjusted as per the schedule:

WARNING schedy_heating: !!! [R:back_room] [A:climate.back_room] Thermostat has no attribute named 'temperature'. Available are
['entity_id', 'state', 'attributes', 'last_changed', 'last_updated', 'context', 'hvac_modes', 'min_temp', 'max_temp', 'current_temperature', 'target_temp_high', 'target_temp_low', 'hvac_action', 'friendly_name', 'supported_features']. Please check your config!
WARNING schedy_heating: !!! [R:back_office] [A:climate.back_room] The value None of attribute 'temperature' is no valid temperature.
ERROR schedy_heating: !!! [R:back_office] [A:climate.back_room] Invalid target temperature, ignoring thermostat.

Are there any configuration changes available that would make these usable with Schedy?