Addresses issues when Hive SLR2 controller features are created, as documented in Bug #719:
adapter.py: Binary device temperature_setpoint_hold doesn't get created and generates an error, so add in defintion of this feature.
adapter.py: Creation of setpoint numeric features assumes they have a unit attribute which Hive temperature_setpoint_hold_duration feature does not have (unit attribute is not present) - this causes no features to be added for all devices after this point as the plugin abends, so add a try/except check to see if we can access the unit feature and if not create a CustomSensor not a SetPoint.
devices\devices.py: Hive SLR2 has heat and water endpoints but currently devices.py creates a pair of features with the same names (so temperature_setpoint_hold_heat and temperature_setpoint_hold_water both get created as temperature_setpoint_hold so we cannot differentiate which feature is for which endpoint) - add in an option to create the feature suffix using self.value_key which then creates these with the full feature name.
Addresses issues when Hive SLR2 controller features are created, as documented in Bug #719:
adapter.py
: Binary devicetemperature_setpoint_hold
doesn't get created and generates an error, so add in defintion of this feature.adapter.py
: Creation of setpoint numeric features assumes they have aunit
attribute which Hivetemperature_setpoint_hold_duration
feature does not have (unit
attribute is not present) - this causes no features to be added for all devices after this point as the plugin abends, so add atry/except
check to see if we can access theunit
feature and if not create aCustomSensor
not aSetPoint
.devices\devices.py
: Hive SLR2 hasheat
andwater
endpoints but currentlydevices.py
creates a pair of features with the same names (sotemperature_setpoint_hold_heat
andtemperature_setpoint_hold_water
both get created astemperature_setpoint_hold
so we cannot differentiate which feature is for which endpoint) - add in an option to create the feature suffix usingself.value_key
which then creates these with the full feature name.