Frankkkkk / python-daikin-altherma

Interfaces with Daikin Altherma heat pumps via LAN adapter BRP069A61/BRP069A62
11 stars 1 forks source link

To add.. .Holiday mode #9

Closed remy-lavabre closed 11 months ago

remy-lavabre commented 11 months ago
    @property
def holiday_state(self) -> bool:
    """ Returns if holiday state active or not """
    return self._requestValueHP("1/Holiday/HolidayState

def set_holiday (self, holiday_active: bool): """ Whether to turn the holiday mode on(True) or off(False). You can confirm that it works by calling self.holiday_state """ mode_dict = { True: 1, False: 0, }

    payload = {
        'con': mode_dict[holiday_active],
        'cnf': 'text/plain:0',
    }

    self._requestValueHP("1/Holiday/HolidayState", "/", payload)
Frankkkkk commented 11 months ago

Thanks !