Skip to content

Commit

Permalink
feat(api): Put Heating System Boiler
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 committed Oct 13, 2023
1 parent 9b1b518 commit 0c9eebb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libtado/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,3 +1906,20 @@ def get_energy_insights(self, start_date, end_date, country, ngsw_bypass=True):

data = self._api_energy_insights_call('homes/%i/insights?startDate=%s&endDate=%s&country=%s&ngsw-bypass=%s' % (self.id, start_date, end_date, country, ngsw_bypass))
return data

def set_heating_system_boiler(self, payload):
"""
Set heating system boiler status
Parameters:
found (bool|None): Does the system knows your boiler. (default null)
present: (bool): Is your own boiler present. (default true)
Returns:
Heating system boiler status.
Example:
No returned value.
"""

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

0 comments on commit 0c9eebb

Please sign in to comment.