Skip to content

Commit

Permalink
set_param: add missing setpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed Oct 26, 2024
1 parent 34a7e00 commit b71cdba
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions aioairzone_cloud/aidoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
API_NAME,
API_POWER,
API_SETPOINT,
API_SP_AIR_AUTO,
API_SP_AIR_COOL,
API_SP_AIR_DRY,
API_SP_AIR_HEAT,
API_SP_AIR_STOP,
API_SP_AIR_VENT,
API_SPEED_CONF,
API_TYPE,
API_VALUE,
Expand Down Expand Up @@ -66,9 +70,17 @@ def set_param(self, param: str, data: dict[str, Any]) -> None:
self.set_power(data[API_VALUE])
elif param == API_SETPOINT:
self.set_setpoint(data[API_VALUE])
elif param == API_SP_AIR_AUTO:
self.set_setpoint_auto(data[API_VALUE])
elif param == API_SP_AIR_COOL:
self.set_setpoint_cool(data[API_VALUE])
elif param == API_SP_AIR_DRY:
self.set_setpoint_dry(data[API_VALUE])
elif param == API_SP_AIR_HEAT:
self.set_setpoint_heat(data[API_VALUE])
elif param == API_SP_AIR_STOP:
self.set_setpoint_stop(data[API_VALUE])
elif param == API_SP_AIR_VENT:
self.set_setpoint_vent(data[API_VALUE])
elif param == API_SPEED_CONF:
self.set_speed(data[API_VALUE])
12 changes: 12 additions & 0 deletions aioairzone_cloud/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
API_NAME,
API_POWER,
API_SETPOINT,
API_SP_AIR_AUTO,
API_SP_AIR_COOL,
API_SP_AIR_DRY,
API_SP_AIR_HEAT,
API_SP_AIR_STOP,
API_SP_AIR_VENT,
API_SPEED_CONF,
API_SYSTEM_NUMBER,
API_VALUE,
Expand Down Expand Up @@ -112,10 +116,18 @@ def set_param(self, param: str, data: dict[str, Any]) -> None:
self.set_power(data[API_VALUE])
elif param == API_SETPOINT:
self.set_setpoint(data[API_VALUE])
elif param == API_SP_AIR_AUTO:
self.set_setpoint_auto(data[API_VALUE])
elif param == API_SP_AIR_COOL:
self.set_setpoint_cool(data[API_VALUE])
elif param == API_SP_AIR_DRY:
self.set_setpoint_dry(data[API_VALUE])
elif param == API_SP_AIR_HEAT:
self.set_setpoint_heat(data[API_VALUE])
elif param == API_SP_AIR_STOP:
self.set_setpoint_stop(data[API_VALUE])
elif param == API_SP_AIR_VENT:
self.set_setpoint_vent(data[API_VALUE])
elif param == API_SPEED_CONF:
self.set_speed(data[API_VALUE])

Expand Down

0 comments on commit b71cdba

Please sign in to comment.