Skip to content

Commit

Permalink
feat(api): Put Zone Order
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 committed Oct 13, 2023
1 parent 0c9eebb commit cb99a4c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libtado/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,3 +1923,24 @@ def set_heating_system_boiler(self, payload):
"""

return self._api_call('homes/%i/heatingSystem/boiler' % (self.id), data=payload, method='PUT')

def set_zone_order(self, payload, ngsw_bypass=True):
"""
Set zone order
Parameters:
zoneOrder (list): List of zone IDs in the order you want them to appear in the app.
Returns:
No returned value.
Example:
```json
[
{"id": 1},
{"id": 6},
{"id": 12}
]
```
"""
return self._api_call('homes/%i/zoneOrder?ngsw-bypass=%s' % (self.id, ngsw_bypass), data=payload, method='PUT')

0 comments on commit cb99a4c

Please sign in to comment.