From 0c9eebb9295a29a45bdb752676c36ee3105f6423 Mon Sep 17 00:00:00 2001 From: Germain Lefebvre Date: Fri, 13 Oct 2023 17:13:47 +0200 Subject: [PATCH] feat(api): Put Heating System Boiler --- libtado/api.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libtado/api.py b/libtado/api.py index 9116914..3ba386b 100644 --- a/libtado/api.py +++ b/libtado/api.py @@ -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')