freitdav / BDRthermostatHA

BDR (Baxi, De Dietrich, Remeha) thermostat custom component integration for Home Assistant
GNU General Public License v3.0
48 stars 21 forks source link

Unable to set preset_mode? #45

Closed petarlaf closed 1 year ago

petarlaf commented 1 year ago

Hi,

I've been trying to set preset_mode on my Baxi thermostat, but it seems to fail. Well rather, it seems to think ti changes, but then reverts back very quickly? In the example below, it was on schedule 1 and I tried to set it to "Manual":

ValueError: Sensor sensor.bdr_thermostat_status has device class None, state class measurement unit None and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: standby (<class 'str'>) 2023-05-29 22:09:04.186 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.bdr_planta_1 is taking over 10 seconds 2023-05-29 22:09:06.383 ERROR (SyncWorker_7) [custom_components.bdr_thermostat.BdrAPI] ERROR with get request to https://ruapi.remoteapp.bdrthermea.com/v1.0/central-heating-zone/020428F50025010/status: 504 2023-05-29 22:09:54.822 DEBUG (MainThread) [custom_components.bdr_thermostat.climate] Updating BDR status {'mode': 'schedule', 'fireplaceModeOn': False, 'roomTemperature': {'value': 24.0, 'unit': '°C', 'min': 0.0, 'max': 60.0}, 'roomTemperatureSetpoint': {'value': 16.0, 'unit': '°C', 'min': 0.0, 'max': 60.0, 'increment': 0.1}, 'nextSwitch': {'time': '07:30', 'dayOffset': 1, 'roomTemperatureSetpoint': {'value': 21.0, 'unit': '°C'}}, 'outsideTemperature': {'value': 20.81, 'unit': '°C'}, 'zoneActivity': 'standby', 'timeProgram': 1} 2023-05-29 22:09:55.367 DEBUG (MainThread) [custom_components.bdr_thermostat.climate] Updating BDR status {'mode': 'manual', 'fireplaceModeOn': False, 'roomTemperature': {'value': 25.0, 'unit': '°C', 'min': -60.0, 'max': 60.0}, 'roomTemperatureSetpoint': {'value': 17.0, 'unit': '°C', 'min': 0.0, 'max': 50.0, 'increment': 0.1}, 'outsideTemperature': {'value': 20.83, 'unit': '°C'}, 'zoneActivity': 'standby', 'timeProgram': 1} 2023-05-29 22:10:25.333 DEBUG (MainThread) [custom_components.bdr_thermostat.climate] Updating BDR status {'mode': 'manual', 'fireplaceModeOn': False, 'roomTemperature': {'value': 25.0, 'unit': '°C', 'min': -60.0, 'max': 60.0}, 'roomTemperatureSetpoint': {'value': 17.0, 'unit': '°C', 'min': 0.0, 'max': 50.0, 'increment': 0.1}, 'outsideTemperature': {'value': 20.83, 'unit': '°C'}, 'zoneActivity': 'standby', 'timeProgram': 1} 2023-05-29 22:10:25.663 DEBUG (MainThread) [custom_components.bdr_thermostat.climate] Updating BDR status {'mode': 'schedule', 'fireplaceModeOn': False, 'roomTemperature': {'value': 24.0, 'unit': '°C', 'min': 0.0, 'max': 60.0}, 'roomTemperatureSetpoint': {'value': 16.0, 'unit': '°C', 'min': 0.0, 'max': 60.0, 'increment': 0.1}, 'nextSwitch': {'time': '07:30', 'dayOffset': 1, 'roomTemperatureSetpoint': {'value': 21.0, 'unit': '°C'}}, 'outsideTemperature': {'value': 20.81, 'unit': '°C'}, 'zoneActivity': 'standby', 'timeProgram': 1}

petarlaf commented 1 year ago

To add to this, it looks like the integration does not support my system's "Cooling mode". If the system goes into "Cooling" preset - the dashboard shows "unknown" mode. And similarly, I can't seem to be able to activate "cooling" setup from within HA.