Fan controller updates (#155)

* Fan controller updates.

This updates the fan controller to be more dynamic on which dp's it uses.

Fan speeds can 1,2,3,4 or low,medium,mid,high,auto.  Fans with more
than 3 speeds is not supported by Home Assistant.

Variable speed fans are not supported at this time.

* rename set_dps -> set_dp

* change to use self._dp_id instead of a fixed dp

Co-authored-by: Thomas Davis <tdavis@nersc.gov>
Co-authored-by: Pierre Ståhl <pierre.staahl@gmail.com>
This commit is contained in:
ThomasADavis
2020-11-15 22:10:02 -08:00
committed by GitHub
parent e137d598f0
commit 3e52811aac
3 changed files with 179 additions and 114 deletions

View File

@@ -29,6 +29,13 @@ CONF_SET_POSITION_DP = "set_position_dp"
CONF_POSITION_INVERTED = "position_inverted"
CONF_SPAN_TIME = "span_time"
# fan
CONF_FAN_SPEED_CONTROL = "fan_speed_control"
CONF_FAN_OSCILLATING_CONTROL = "fan_oscillating_control"
CONF_FAN_SPEED_LOW = "fan_speed_low"
CONF_FAN_SPEED_MEDIUM = "fan_speed_medium"
CONF_FAN_SPEED_HIGH = "fan_speed_high"
# sensor
CONF_SCALING = "scaling"