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
799 stars 124 forks source link

Beta50: Target temperature changes itself #738

Closed Se7enair closed 1 year ago

Se7enair commented 1 year ago

Prerequisites

eurotronic_error_status: 0 eurotronic_host_flags: boost: false child_protection: false mirror_display: false window_open: false

eurotronic_system_mode: 1 eurotronic_trv_mode: 2 linkquality: 228 local_temperature: 22.5 local_temperature_calibration: 4.4 occupied_heating_setpoint: 21 pi_heating_demand: 0 running_state: null system_mode: auto trv_mode: null unoccupied_heating_setpoint: 16 update: state: idle

update_available: false valve_position: null friendly_name: wohnzimmer_heizung_rechts supported_features: 1

* [x] Output from Home Assistant Device Diagnostic from BT

```json
{
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.11.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.72",
    "supervisor": "2022.11.2",
    "host_os": "Home Assistant OS 9.2",
    "docker_version": "20.10.17",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "climate_group": {
      "version": "0.4.2",
      "requirements": []
    },
    "frigate": {
      "version": "3.0.0",
      "requirements": []
    },
    "ai_thermostat": {
      "version": "0.8.6",
      "requirements": []
    },
    "circadian_lighting": {
      "version": "2.1.3",
      "requirements": []
    },
    "browser_mod": {
      "version": "2.1.2",
      "requirements": []
    },
    "webrtc": {
      "version": "v2.3.1",
      "requirements": []
    },
    "auto_backup": {
      "version": "1.3.0",
      "requirements": []
    },
    "spotcast": {
      "version": "v3.6.30",
      "requirements": [
        "spotify_token==1.0.0"
      ]
    },
    "better_thermostat": {
      "version": "1.0.0-beta50",
      "requirements": []
    },
    "hacs": {
      "version": "1.28.4",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "ui_lovelace_minimalist": {
      "version": "v1.1.6-hotfix",
      "requirements": [
        "aiofiles==0.8.0",
        "aiogithubapi>=22.2.4"
      ]
    },
    "reolink_dev": {
      "version": "0.15",
      "requirements": [
        "reolink==0.0.17"
      ]
    },
    "samsungtv_smart": {
      "version": "0.8.0",
      "requirements": [
        "websocket-client!=1.4.0,>=0.58.0",
        "wakeonlan>=2.0.0",
        "aiofiles>=0.8.0"
      ]
    },
    "watchman": {
      "version": "0.5.1",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "nuki_ng": {
      "version": "0.2.1",
      "requirements": []
    },
    "unifigateway": {
      "version": "0.3.3",
      "requirements": [
        "pyunifi==2.21"
      ]
    },
    "fullykiosk": {
      "version": "1.1.0",
      "requirements": [
        "python-fullykiosk==0.0.11"
      ]
    },
    "lovelace_gen": {
      "version": "0.1.1",
      "requirements": [
        "jinja2"
      ]
    },
    "alexa_media": {
      "version": "4.3.2",
      "requirements": [
        "alexapy==1.26.4",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "openmediavault": {
      "version": "1.3.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "better_thermostat",
    "name": "Better Thermostat",
    "documentation": "https://github.com/KartoffelToby/better_thermostat",
    "issue_tracker": "https://github.com/KartoffelToby/better_thermostat/issues",
    "iot_class": "local_push",
    "version": "1.0.0-beta50",
    "config_flow": true,
    "dependencies": [
      "climate",
      "recorder"
    ],
    "after_dependencies": [
      "climate"
    ],
    "codeowners": [
      "@kartoffeltoby",
      "@RubenKelevra"
    ],
    "requirements": [],
    "is_built_in": false
  },
  "data": {
    "info": {
      "name": "bad_heizung_bt",
      "temperature_sensor": "sensor.bad_temperatursensor_temperature",
      "off_temperature": 20,
      "window_sensors": "binary_sensor.bad_fenster_links_contact",
      "humidity_sensor": null,
      "outdoor_sensor": null,
      "weather": null,
      "model": "SPZB0001",
      "window_off_delay": 0
    },
    "thermostat": {
      "climate.bad_heizung": {
        "name": "bad_heizung",
        "state": "auto",
        "attributes": {
          "hvac_modes": [
            "off",
            "auto",
            "heat"
          ],
          "min_temp": 5.0,
          "max_temp": 30.0,
          "target_temp_step": 0.5,
          "current_temperature": 21.4,
          "temperature": 22.0,
          "battery": 75,
          "current_heating_setpoint": 22,
          "device": {
            "applicationVersion": 18,
            "dateCode": "20190408",
            "friendlyName": "bad_heizung",
            "hardwareVersion": 34,
            "ieeeAddr": "0x00158d0001923822",
            "manufacturerID": 4151,
            "manufacturerName": "Eurotronic",
            "model": "SPZB0001",
            "networkAddress": 27956,
            "powerSource": "Battery",
            "softwareBuildID": "18181120",
            "stackVersion": 5,
            "type": "EndDevice",
            "zclVersion": 2
          },
          "eurotronic_error_status": 0,
          "eurotronic_host_flags": {
            "boost": false,
            "child_protection": false,
            "mirror_display": false,
            "window_open": false
          },
          "eurotronic_system_mode": 1,
          "eurotronic_trv_mode": 2,
          "linkquality": 244,
          "local_temperature": 21.36,
          "local_temperature_calibration": 0.4,
          "occupied_heating_setpoint": 22,
          "pi_heating_demand": 27,
          "running_state": null,
          "system_mode": "auto",
          "trv_mode": null,
          "unoccupied_heating_setpoint": 16,
          "update": {
            "state": "idle"
          },
          "update_available": false,
          "valve_position": null,
          "friendly_name": "bad_heizung",
          "supported_features": 1
        },
        "bt_config": {
          "calibration": "local_calibration_based",
          "heat_auto_swapped": true,
          "fix_calibration": false,
          "calibration_round": false,
          "valve_maintenance": false,
          "child_lock": false,
          "homaticip": false
        },
        "bt_adapter": "mqtt",
        "bt_integration": "mqtt",
        "model": "SPZB0001"
      }
    },
    "external_temperature_sensor": {
      "entity_id": "sensor.bad_temperatursensor_temperature",
      "state": "21.3",
      "attributes": {
        "state_class": "measurement",
        "battery": 17,
        "device": {
          "applicationVersion": 3,
          "dateCode": "20161129",
          "friendlyName": "bad_temperatursensor",
          "hardwareVersion": 30,
          "ieeeAddr": "0x00158d00044a33a7",
          "manufacturerID": 4151,
          "manufacturerName": "LUMI",
          "model": "WSDCGQ11LM",
          "networkAddress": 4576,
          "powerSource": "Battery",
          "softwareBuildID": "3000-0001",
          "stackVersion": 2,
          "type": "EndDevice"
        },
        "humidity": 60.14,
        "linkquality": 255,
        "power_outage_count": 13,
        "pressure": 947.1,
        "temperature": 21.3,
        "voltage": 2875,
        "unit_of_measurement": "\u00b0C",
        "device_class": "temperature",
        "friendly_name": "bad_temperatursensor_temperature"
      },
      "last_changed": "2022-12-05T11:33:40.544160+00:00",
      "last_updated": "2022-12-05T11:33:40.544160+00:00",
      "context": {
        "id": "01GKH10A204FG2ENCTNY1SJ9Q3",
        "parent_id": null,
        "user_id": null
      }
    },
    "window_sensor": {
      "entity_id": "binary_sensor.bad_fenster_links_contact",
      "state": "off",
      "attributes": {
        "battery": 100,
        "contact": true,
        "device": {
          "applicationVersion": 3,
          "dateCode": "20161128",
          "friendlyName": "bad_fenster_links",
          "hardwareVersion": 2,
          "ieeeAddr": "0x00158d00040e0ad7",
          "manufacturerID": 4151,
          "manufacturerName": "LUMI",
          "model": "MCCGQ11LM",
          "networkAddress": 52992,
          "powerSource": "Battery",
          "softwareBuildID": "3000-0001",
          "stackVersion": 2,
          "type": "EndDevice",
          "zclVersion": 1
        },
        "device_temperature": 21,
        "linkquality": 255,
        "power_outage_count": 39,
        "temperature": 30,
        "voltage": 3005,
        "device_class": "window",
        "friendly_name": "bad_fenster_links_contact",
        "window_room": "bad"
      },
      "last_changed": "2022-12-05T09:37:59.341192+00:00",
      "last_updated": "2022-12-05T10:28:14.755303+00:00",
      "context": {
        "id": "01GKGX8G9326KWB17ABC19NBYR",
        "parent_id": null,
        "user_id": null
      }
    }
  }
}
}

Description

The TRVs change the temperature by itself.

Steps to Reproduce

  1. Set temperature
  2. Wait

Expected behavior:

That the temperature stay on the choosen value until I change it by myself.

Actual behavior:

At 06:00 in the morning, the temperature is changed from 18 to 21 trough another integration. At 06:54 it changes back from 21 to 18. But nothing other happend.

2022-12-05 06:00:01.203 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat esszimmer_heizung_rechts_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 21.0 - _last_temperature: 21.0
2022-12-05 06:54:16.484 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat esszimmer_heizung_rechts_bt: trigger_trv_change / _old_heating_setpoint: 21.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0

This is happening to all of my TRVs which are connected to betterthermostat

Versions

Home Assistant 2022.11.2 Supervisor 2022.11.2 Operating System 9.2 Frontend 20221108.0 - latest BT-beta50

Additional Information

ArtCore7 commented 1 year ago

Had same issue today with BT and Viesmann TVR, set the BT Thermostat to 18 °C and left home. Later i realized it was set to 26 °C, first i though i got and old schedueler, but i deleted the old Scheduelers and only got some for BT Thermostats (Night 16°C, Morning 19°C, Work/Day 19,5°C, Evening 18°C - so nothing close to 26°C)

Didnt go into Debugging, just restartet HA and will controll it the next Days.

wtom commented 1 year ago

Can I see some charts from BT and the thermostat at the same time?

wtom commented 1 year ago

@ArtCore7 are you also using local_calibration or are you using target temperature calibration?

ArtCore7 commented 1 year ago

I am using target temperature calibration, the Viesmann ZK03840 has no calibration settings ( https://www.zigbee2mqtt.io/devices/ZK03840.html ).

Have to start working in 15mins, maybe i can get some logs later.

zoltanlaczko commented 1 year ago

Same issue with TS0601 and target temperate calibration

Se7enair commented 1 year ago

Can I see some charts from BT and the thermostat at the same time?

BT image

Thermostat image

First change at 6am to 21 is made by 'schedy' the second to 18 seems to be done by BT. Ans the third is manual from me.

Se7enair commented 1 year ago

Another Thermostat. 20C are never used by an automation/script or anything else. BT image

Thermostat image

f0rdprefect commented 1 year ago

I can also confirm this behavior. Zigbee TRV or Homematic TRV both expose this behavior.

wtom commented 1 year ago

I need some logs, to see what's really really happening. Can someone provide some logs?

https://github.com/KartoffelToby/better_thermostat/blob/master/.devcontainer/configuration.yaml#L13-L16 You need to add this, to your configuration.yaml and then restart HA. After that, you can see the logs at Settings -> System -> Logs

Tomcat86878 commented 1 year ago

I can also confirm this issue. I changed my logger configuration to debug (for all components) and will share a log when the error occurs again.

Thanks a lot for this great project and your support!

oleksii-kalinin commented 1 year ago

Here are my logs with the temperature changed on his own

2022-12-09 21:59:04.058 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Kitchen: TRV climate.trv_kitchen decoded TRV target temp changed from 21.0 to 16.0
2022-12-09 21:59:50.089 DEBUG (MainThread) [custom_components.better_thermostat.events.temperature] better_thermostat Living room: external_temperature changed from 22.6 to 22.5
2022-12-09 21:59:53.317 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Living room: trigger_trv_change / _old_heating_setpoint: 20.0 - _new_heating_setpoint: 16.0 - _last_temperature: 23.0
2022-12-09 21:59:53.320 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Living room: TRV climate.trv_living_room decoded TRV target temp changed from 20.0 to 16.0
2022-12-09 22:00:25.251 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Bedroom: trigger_trv_change / _old_heating_setpoint: 21.0 - _new_heating_setpoint: 16.0 - _last_temperature: 21.0
2022-12-09 22:00:25.251 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Bedroom: TRV climate.trv_bedroom decoded TRV target temp changed from 21.0 to 16.0
wtom commented 1 year ago

Here are my logs with the temperature changed on his own

2022-12-09 21:59:04.058 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Kitchen: TRV climate.trv_kitchen decoded TRV target temp changed from 21.0 to 16.0
2022-12-09 21:59:50.089 DEBUG (MainThread) [custom_components.better_thermostat.events.temperature] better_thermostat Living room: external_temperature changed from 22.6 to 22.5
2022-12-09 21:59:53.317 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Living room: trigger_trv_change / _old_heating_setpoint: 20.0 - _new_heating_setpoint: 16.0 - _last_temperature: 23.0
2022-12-09 21:59:53.320 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Living room: TRV climate.trv_living_room decoded TRV target temp changed from 20.0 to 16.0
2022-12-09 22:00:25.251 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Bedroom: trigger_trv_change / _old_heating_setpoint: 21.0 - _new_heating_setpoint: 16.0 - _last_temperature: 21.0
2022-12-09 22:00:25.251 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Bedroom: TRV climate.trv_bedroom decoded TRV target temp changed from 21.0 to 16.0

Yes, but this is not coming from BT. Since they all change at 10pm, i think it's somehow set in the TRV. But this temperature changes are not coming from BT.

What happens is, the TRV target temperature is changed from whatever source and BT then takes that as a new target temperature. (This is a feature, not a bug.)

oleksii-kalinin commented 1 year ago

What happens is, the TRV target temperature is changed from whatever source and BT then takes that as a new target temperature. (This is a feature, not a bug.)

Copy. Looks like it's an issue with the RTX ZB‑RT1 (recommended one). It's set some timer/schedule/away/eco whatever mode with the clock led blinking after off-on due to the window sensor.

wtom commented 1 year ago

@Se7enair you also have the HVAC mode auto. Could that be the problem?

"name": "bad_heizung", "state": "auto",

Se7enair commented 1 year ago

@Se7enair you also have the HVAC mode auto. Could that be the problem?

"name": "bad_heizung", "state": "auto",

I don't think so. Without BT I cannot see these changes. I just reactivated it and wait for logfiles.

wtom commented 1 year ago

You could also try to turn this off. "heat_auto_swapped": true,

Se7enair commented 1 year ago

rwactivated BT at 08:20, temperature changed to 18°C, restartet homeassistant, temperature returned to 21°C as planned, BT comes active, temperature changes back to 18°C no logs before restart Auswahl_016

2022-12-10 08:23:45.130 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: waiting for sensor entity with id 'sensor.esszimmer_temperatursensor_temperature' to become fully available...
2022-12-10 08:23:55.134 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: Starting version 1.0.0-beta50. Waiting for entity to be ready...
2022-12-10 08:23:55.134 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: Startup config, BT hvac mode is heat, Target temp 18.0
2022-12-10 08:23:55.135 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.esszimmer_heizung_rechts_local_temperature_calibration for climate.esszimmer_heizung_rechts
2022-12-10 08:23:55.135 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat esszimmer_heizung_rechts_bt: uses local calibration entity number.esszimmer_heizung_rechts_local_temperature_calibration
2022-12-10 08:23:55.136 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: TO TRV set_temperature: climate.esszimmer_heizung_rechts from: 21.0 to: 18.0
2022-12-10 08:23:55.169 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:23:56.170 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:23:57.172 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:23:58.169 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: get last avg outdoor temps...
2022-12-10 08:23:58.179 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:23:59.180 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:24:00.182 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 21.0
2022-12-10 08:24:01.183 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: climate.esszimmer_heizung_rechts / check_target_temp / _last: 18.0 - _current: 18.0
2022-12-10 08:24:03.172 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: startup completed.
Se7enair commented 1 year ago

You could also try to turn this off. "heat_auto_swapped": true,

will try this

Se7enair commented 1 year ago

You could also try to turn this off. "heat_auto_swapped": true,

will try this

this option turns the TRV to off. Beta51 does also very strange things... have to investigate

wtom commented 1 year ago

One more question, after the startup, why don't you set the target temperature on BT up and what happens? Because the logs are looking fine.

BT starts with config heat and target temp 18. and it's sending the target temp to your TRV. So everything as expected.

2022-12-10 08:23:55.134 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat esszimmer_heizung_rechts_bt: Startup config, BT hvac mode is heat, Target temp 18.0 2022-12-10 08:23:55.135 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat esszimmer_heizung_rechts_bt: uses local calibration entity number.esszimmer_heizung_rechts_local_temperature_calibration 2022-12-10 08:23:55.136 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat esszimmer_heizung_rechts_bt: TO TRV set_temperature: climate.esszimmer_heizung_rechts from: 21.0 to: 18.0

But the logs in your first post are also showing, that the change doesn't come from BT. Your TRV is reporting a target temperature change.

Se7enair commented 1 year ago

I control the TRV directly, because I had problems in the past controlling it via BT. But I will change to control the TRV via BT. Lets see what happens.

Se7enair commented 1 year ago

Automatic change of the BT entity, from 18 to 22 @ 09:53:41. TRv accepted change and a few seconds later reverted to 18 Also started to misconfigure the calibration.

Sorry, but at the moment this is to buggy for me. Change back to my old automation-calibration till this is finished. I dont have the time to help fight against these bugs and also need a relaiable heating.

2022-12-13 09:50:50.475 DEBUG (MainThread) [custom_components.better_thermostat.events.temperature] better_thermostat wohnzimmer_heizung_links_bt: external_temperature changed from 20.6 to 20.3
2022-12-13 09:50:50.475 DEBUG (MainThread) [custom_components.better_thermostat.events.temperature] better_thermostat wohnzimmer_heizung_links_bt: external_temperature changed from 20.6 to 20.3
2022-12-13 09:50:50.479 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat wohnzimmer_heizung_links_bt: calculate_heating_power / temp_diff: 0.0 - time: 1439.8 - degrees_time: 0.0 - heating_power: 0.0099 - heating_power_stats: [{'temp_diff': 0.0, 'time': 1429.9, 'degrees_time': 0.0, 'heating_power': 0.011}, {'temp_diff': 0.0, 'time': 1439.8, 'degrees_time': 0.0, 'heating_power': 0.0099}]
2022-12-13 09:50:50.480 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: -6.0
2022-12-13 09:50:50.481 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat wohnzimmer_heizung_links_bt: calculate_heating_power / temp_diff: -0.2 - time: 1439.5 - degrees_time: -0.0001 - heating_power: 0.009 - heating_power_stats: [{'temp_diff': -0.2, 'time': 1439.5, 'degrees_time': -0.0001, 'heating_power': 0.009}]
2022-12-13 09:50:50.482 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: 3.3
2022-12-13 09:53:43.236 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 23.5 to 23.0
2022-12-13 09:53:43.237 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 22.0
2022-12-13 09:53:43.237 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 23.5 to 23.0
2022-12-13 09:53:43.237 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:53:43.238 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: -5.7
2022-12-13 09:53:43.238 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_local_temperature_calibration: climate.wohnzimmer_heizung_links from: -6.0 to: -5.7
2022-12-13 09:53:44.054 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_temperature: climate.wohnzimmer_heizung_links from: 18.0 to: 22.0
2022-12-13 09:53:44.057 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 18.0
2022-12-13 09:53:45.059 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 18.0
2022-12-13 09:53:46.060 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 18.0
2022-12-13 09:53:47.061 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 22.0
2022-12-13 09:53:47.920 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 23.0 to 14.0
2022-12-13 09:53:47.920 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:53:47.920 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 23.0 to 14.0
2022-12-13 09:53:47.920 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 22.0 - _last_temperature: 22.0
2022-12-13 09:53:47.923 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / heating_power_valve_position - temp diff: 1.7 - heating power: 0.009 - expected valve position: 100%
2022-12-13 09:53:47.923 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: -4.5
2022-12-13 09:53:47.923 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_local_temperature_calibration: climate.wohnzimmer_heizung_links from: 3.6 to: -4.5
2022-12-13 09:53:53.535 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 22.0 - _last_temperature: 22.0
2022-12-13 09:53:54.355 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 14.0 to 15.0
2022-12-13 09:53:54.355 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 22.0 - _last_temperature: 22.0
2022-12-13 09:53:54.356 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 14.0 to 15.0
2022-12-13 09:53:54.356 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:53:54.356 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 22.0 - _last_temperature: 22.0
2022-12-13 09:53:54.358 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: 2.8
2022-12-13 09:53:54.358 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_local_temperature_calibration: climate.wohnzimmer_heizung_links from: -5.7 to: 2.8
2022-12-13 09:53:54.499 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 22.0 - _last_temperature: 22.0
2022-12-13 09:53:57.378 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_temperature: climate.wohnzimmer_heizung_links from: 22.0 to: 18.0
2022-12-13 09:53:57.383 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 22.0
2022-12-13 09:53:58.384 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 22.0
2022-12-13 09:53:59.385 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 22.0
2022-12-13 09:54:00.386 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 22.0
2022-12-13 09:54:01.388 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 22.0
2022-12-13 09:54:01.582 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0
2022-12-13 09:54:01.582 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 22.0 - _new_heating_setpoint: 18.0 - _last_temperature: 22.0
2022-12-13 09:54:01.582 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links decoded TRV target temp changed from 22.0 to 18.0
2022-12-13 09:54:02.389 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 18.0 - _current: 18.0
2022-12-13 09:54:02.456 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 15.0 to 22.5
2022-12-13 09:54:02.456 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:54:02.456 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0
2022-12-13 09:54:02.456 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 15.0 to 22.5
2022-12-13 09:54:02.997 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0
2022-12-13 09:55:44.357 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 22.5 to 22.0
2022-12-13 09:55:44.357 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0
2022-12-13 09:55:44.357 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 22.5 to 22.0
2022-12-13 09:55:44.357 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 22.0
2022-12-13 09:55:44.361 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: 4.3
2022-12-13 09:55:44.361 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_local_temperature_calibration: climate.wohnzimmer_heizung_links from: 2.8 to: 4.3
2022-12-13 09:55:44.361 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links - output calib: -3.2
2022-12-13 09:55:44.361 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_local_temperature_calibration: climate.wohnzimmer_heizung_links from: -4.5 to: -3.2
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 22.0 to 16.0
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 18.0
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links sends new internal temperature from 22.0 to 16.0
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: calibration accepted by TRV climate.wohnzimmer_heizung_links
2022-12-13 09:55:52.927 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 18.0 - _last_temperature: 22.0
2022-12-13 09:56:28.407 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: TO TRV set_temperature: climate.wohnzimmer_heizung_links from: 22.0 to: 22.0
2022-12-13 09:56:28.415 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 18.0
2022-12-13 09:56:29.205 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: trigger_trv_change / _old_heating_setpoint: 18.0 - _new_heating_setpoint: 22.0 - _last_temperature: 18.0
2022-12-13 09:56:29.205 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat wohnzimmer_heizung_links_bt: TRV climate.wohnzimmer_heizung_links decoded TRV target temp changed from 18.0 to 22.0
2022-12-13 09:56:29.416 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat wohnzimmer_heizung_links_bt: climate.wohnzimmer_heizung_links / check_target_temp / _last: 22.0 - _current: 22.0
g-work commented 1 year ago

Same issue with TS0601 and target temperate calibration

Same here, most of the time the TRV is turning off / to 7°C. Since the changes seem to come from the TRV I suspect the window detection or valve detection feature. I'm using ZHA, so these features aren't controllable. Could anyone check if turning them off does help?