KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
746 stars 123 forks source link

Only one local_temperature_calibration being adjusted [SEA802] #276

Closed trevortrevor closed 2 years ago

trevortrevor commented 2 years ago

I have 6 SEA802 Saswell Valves being used in separate rooms. Only one of the number.{entity}_local_temperature_calibration values is being updated. Apparently in response to all of the temperature deltas in the house. I added a line to the set_trv_values function in helpers.py to log the entity being updated and I get the following: image

cur_temp: 17.38 Model: SEA801-Zigbee/SEA802-Zigbee Calibration type: 0 call for heat: True TRV: TRV Master Bedroom
2022-02-04 17:52:41 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send temperature 16.0
2022-02-04 17:52:42 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send local_temperature_calibration 1 to number.trv_guest_bedroom_local_temperature_calibration
2022-02-04 17:52:43 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send system_mode heat
2022-02-04 17:52:44 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat: avg weather temp: 10
2022-02-04 17:52:44 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat: running calibration
2022-02-04 17:52:44 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat triggered states > window open: False night mode: None Mode: heat set: heat has_mode: True Calibration: -3 set_temp: 19.0 cur_temp: 16.67 Model: SEA801-Zigbee/SEA802-Zigbee Calibration type: 0 call for heat: True TRV: TRV Jonty
2022-02-04 17:52:44 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send temperature 19.0
2022-02-04 17:52:45 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send local_temperature_calibration -3 to number.trv_guest_bedroom_local_temperature_calibration
2022-02-04 17:52:46 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send system_mode heat
2022-02-04 17:53:02 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat: avg weather temp: 10
2022-02-04 17:53:02 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat: running calibration
2022-02-04 17:53:02 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat triggered states > window open: False night mode: None Mode: heat set: heat has_mode: True Calibration: 1 set_temp: 18.0 cur_temp: 17.06 Model: SEA801-Zigbee/SEA802-Zigbee Calibration type: 0 call for heat: True TRV: TRV Dining Room
2022-02-04 17:53:02 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send temperature 18.0
2022-02-04 17:53:03 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send local_temperature_calibration 1 to number.trv_guest_bedroom_local_temperature_calibration
2022-02-04 17:53:04 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send system_mode heat
2022-02-04 17:53:05 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat: avg weather temp: 10
2022-02-04 17:53:05 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat triggered states > window open: False night mode: None Mode: heat set: heat has_mode: True Calibration: 1 set_temp: 19.0 cur_temp: 17.06 Model: SEA801-Zigbee/SEA802-Zigbee Calibration type: 0 call for heat: True TRV: TRV Dining Room
2022-02-04 17:53:05 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send temperature 19.0
2022-02-04 17:53:06 DEBUG (MainThread) [custom_components.better_thermostat.helpers] better_thermostat send system_mode heat

Configuration yaml (I had thought it might be an issue with unique_id key so assigned some but no effect. I added a window sensor to all entrys as it didn't seem to like it when there wasn't one.

- platform: better_thermostat
  name: Study
  unique_id: 1111
  thermostat: climate.trv_study
  temperature_sensor: sensor.study_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false

- platform: better_thermostat
  unique_id: 2222
  name: Living Room
  thermostat: climate.trv_living_room
  temperature_sensor: sensor.living_room_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false

- platform: better_thermostat
  unique_id: 3333
  name: Dining Room
  thermostat: climate.trv_dining_room
  temperature_sensor: sensor.dining_room_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false

- platform: better_thermostat
  unique_id: 4444
  name: Guest Bedroom
  thermostat: climate.trv_guest_bedroom
  temperature_sensor: sensor.guest_bedroom_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false

- platform: better_thermostat
  unique_id: 5555
  name: Jontys Room
  thermostat: climate.trv_jonty
  temperature_sensor: sensor.jonty_bedroom_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false

- platform: better_thermostat
  unique_id: 6666
  name: Master Bedroom
  thermostat: climate.trv_master_bedroom
  temperature_sensor: sensor.master_bedroom_environment_sensor_temperature
  window_sensors: binary_sensor.study_window_sensor
  weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
  off_temperature: 17.5
  window_off_delay: 15 # in seconds
  valve_maintenance: false
KartoffelToby commented 2 years ago

You can checkout the latest Beta, i have SEA802 too, works for me,

RubenKelevra commented 2 years ago

@trevortrevor can you report back if 1.0-beta8 or newer works for you now? :)