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
891 stars 131 forks source link

Off mode after closing the window #620

Closed iamkotu closed 2 years ago

iamkotu commented 2 years ago
{
  {
  "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/Warsaw",
    "os_name": "Linux",
    "os_version": "5.15.74",
    "supervisor": "2022.10.2",
    "host_os": "Home Assistant OS 9.3",
    "docker_version": "20.10.18",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.28.3",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "better_thermostat": {
      "version": "1.0.0-beta41",
      "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-beta41",
    "config_flow": true,
    "dependencies": [
      "climate",
      "recorder"
    ],
    "after_dependencies": [
      "climate"
    ],
    "codeowners": [
      "@kartoffeltoby",
      "@RubenKelevra"
    ],
    "requirements": [],
    "is_built_in": false
  },
  "data": {
    "info": {
      "name": "Du\u017cy pok\u00f3j",
      "temperature_sensor": "sensor.zhimi_airpurifier_mb3_temperature",
      "window_off_delay": 10,
      "off_temperature": 20,
      "humidity_sensor": "sensor.zhimi_airpurifier_mb3_humidity",
      "window_sensors": "binary_sensor.okna_duzy_pokoj",
      "outdoor_sensor": null,
      "weather": null,
      "model": "368308_2010"
    },
    "thermostat": {
      "climate.grzejnik_duzy_pokoj": {
        "name": "Grzejnik du\u017cy pok\u00f3j",
        "state": "heat",
        "attributes": {
          "hvac_modes": [
            "off",
            "heat",
            "auto"
          ],
          "min_temp": 0.5,
          "max_temp": 29.5,
          "target_temp_step": 0.5,
          "preset_modes": [
            "none",
            "schedule",
            "manual",
            "holiday",
            "boost"
          ],
          "current_temperature": 22.1,
          "temperature": 21.5,
          "preset_mode": "manual",
          "friendly_name": "Grzejnik du\u017cy pok\u00f3j",
          "supported_features": 17
        },
        "bt_config": {
          "calibration": "local_calibration_based",
          "heat_auto_swapped": false,
          "calibration_round": true,
          "child_lock": false,
          "homaticip": false
        },
        "bt_adapter": "mqtt",
        "bt_integration": "mqtt",
        "model": "368308_2010"
      }
    },
    "external_temperature_sensor": {
      "entity_id": "sensor.zhimi_airpurifier_mb3_temperature",
      "state": "22.2",
      "attributes": {
        "state_class": "measurement",
        "unit_of_measurement": "\u00b0C",
        "device_class": "temperature",
        "friendly_name": "Oczyszczacz du\u017cy pok\u00f3j Temperature"
      },
      "last_changed": "2022-11-15T12:32:37.477021+00:00",
      "last_updated": "2022-11-15T12:32:37.477021+00:00",
      "context": {
        "id": "01GHXMDW35B6SNJPNQGSVQECD2",
        "parent_id": null,
        "user_id": null
      }
    },
    "window_sensor": {
      "entity_id": "binary_sensor.okna_duzy_pokoj",
      "state": "off",
      "attributes": {
        "entity_id": [
          "binary_sensor.0x00158d000895e4af_contact",
          "binary_sensor.0x00158d0008939359_contact"
        ],
        "device_class": "window",
        "friendly_name": "Okna du\u017cy pok\u00f3j"
      },
      "last_changed": "2022-11-15T12:33:59.949306+00:00",
      "last_updated": "2022-11-15T12:33:59.949306+00:00",
      "context": {
        "id": "01GHXMGCMC559JP7KNC42QXP0Z",
        "parent_id": null,
        "user_id": "da5b583cf2f1492eb4d764b11c3c1f60"
      }
    }
  }
}
}

Logs

2022-11-15 13:32:29.778 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-11-15 13:32:29.778 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration better_thermostat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-11-15 13:32:35.209 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat Duży pokój: uses adapter mqtt for trv climate.grzejnik_duzy_pokoj 2022-11-15 13:32:35.209 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Waiting for entity to be ready... 2022-11-15 13:32:38.852 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta41. Waiting for entity to be ready... 2022-11-15 13:32:38.852 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for TRV/climate entity with id 'climate.grzejnik_duzy_pokoj' to become fully available... 2022-11-15 13:32:48.854 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for window sensor entity with id 'binary_sensor.okna_duzy_pokoj' to become fully available... 2022-11-15 13:32:58.855 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta41. Waiting for entity to be ready... 2022-11-15 13:32:58.855 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for TRV/climate entity with id 'climate.grzejnik_duzy_pokoj' to become fully available... 2022-11-15 13:33:08.856 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for window sensor entity with id 'binary_sensor.okna_duzy_pokoj' to become fully available... 2022-11-15 13:33:18.857 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta41. Waiting for entity to be ready... 2022-11-15 13:33:18.858 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: detected window state at startup: Closed 2022-11-15 13:33:18.858 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Startup config, BT hvac mode is heat, Target temp 21.5 2022-11-15 13:33:18.858 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj 2022-11-15 13:33:18.858 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat Duży pokój: uses local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration 2022-11-15 13:33:18.862 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: get last avg outdoor temps... 2022-11-15 13:33:18.862 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: startup completed. 2022-11-15 13:33:46.918 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is open or status of window is unknown, setting window open 2022-11-15 13:33:46.918 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_hvac_mode: from: heat to: off 2022-11-15 13:34:04.954 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is closed, setting window closed restoring mode: heat 2022-11-15 13:34:04.954 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_temperature: from: 21.5 to: 21.5

Description

After closing the window, the temperature on the thermostat returns to the correct one, but does not set the valve to heating mode. The temperature changes and the mode stays off

https://user-images.githubusercontent.com/68065179/201922997-97505143-4485-470a-8352-647f4fb34c68.mp4

Versions

Home Assistant 2022.11.2 Supervisor 2022.10.2 Operating System 9.3 Interfejs użytkownika: 20221108.0 - latest BT: beta 41

KartoffelToby commented 2 years ago

give beta 42 a try

iamkotu commented 2 years ago

Now the thermostat is set to heat mode, but it sets the wrong temperature. It should be 21.5 and it sets to 0.5. Beta 37 also had this error which was fixed in beta 38. Now it's the same again.

Additionally, the calibration does not work properly. The external temperature sensor shows 22, the BT calibrates the thermostat to 24.

2022-11-17 11:41:37.285 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-11-17 11:41:37.285 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration better_thermostat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-11-17 11:41:44.119 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat Duży pokój: uses adapter mqtt for trv climate.grzejnik_duzy_pokoj
2022-11-17 11:41:44.119 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Waiting for entity to be ready...
2022-11-17 11:41:46.266 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta42. Waiting for entity to be ready...
2022-11-17 11:41:46.267 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for TRV/climate entity with id 'climate.grzejnik_duzy_pokoj' to become fully available...
2022-11-17 11:41:56.267 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for window sensor entity with id 'binary_sensor.okna_duzy_pokoj' to become fully available...
2022-11-17 11:42:06.268 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta42. Waiting for entity to be ready...
2022-11-17 11:42:06.268 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for TRV/climate entity with id 'climate.grzejnik_duzy_pokoj' to become fully available...
2022-11-17 11:42:16.269 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: waiting for window sensor entity with id 'binary_sensor.okna_duzy_pokoj' to become fully available...
2022-11-17 11:42:26.271 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Starting version 1.0.0-beta42. Waiting for entity to be ready...
2022-11-17 11:42:26.271 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: detected window state at startup: Closed
2022-11-17 11:42:26.271 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: Startup config, BT hvac mode is heat, Target temp 21.5
2022-11-17 11:42:26.271 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj
2022-11-17 11:42:26.271 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat Duży pokój: uses local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration
2022-11-17 11:42:26.272 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: -1.0 to: -1.5
2022-11-17 11:42:28.279 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode heat
2022-11-17 11:42:31.284 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: get last avg outdoor temps...
2022-11-17 11:42:36.286 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój: startup completed.
2022-11-17 11:42:48.780 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is open or status of window is unknown, setting window open
2022-11-17 11:42:48.780 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 11:42:50.704 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój: TRV climate.grzejnik_duzy_pokoj sends new internal temperature from 23.0 to 22.5
2022-11-17 11:42:50.704 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój: calibration accepted by TRV climate.grzejnik_duzy_pokoj
2022-11-17 11:43:18.363 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is closed, setting window closed restoring mode: heat
2022-11-17 11:43:18.363 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: -1.5 to: -1.0
2022-11-17 11:43:20.367 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode heat
2022-11-17 11:43:20.369 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 21.5 to: 21.5
2022-11-17 11:43:50.905 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is open or status of window is unknown, setting window open
2022-11-17 11:43:50.905 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 11:44:15.661 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: control_trv: window is closed, setting window closed restoring mode: heat
2022-11-17 11:44:15.661 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 21.5 to: 21.5
2022-11-17 11:44:24.747 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój: New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 11:44:24.748 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój: TRV climate.grzejnik_duzy_pokoj decoded TRV target temp changed from 21.5 to 0.5
2022-11-17 11:44:24.751 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój: TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 21.5 to: 0.5
wtom commented 2 years ago
2022-11-17 14:34:28.416 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BT: control_trv: window is closed, setting window closed restoring mode: heat
2022-11-17 14:34:28.416 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat BT: TO TRV set_temperature: climate.dummy_real_trv from: 24.1 to: 25.0

Yes i have the same, the log says: setting TRV to heat, but it keeps "off". - Beta 42 (dev container)

Ecronika commented 2 years ago

The mode change in Beta 32-34 worked well for me, since then it's a gamble again, sometimes it works, sometimes it doesn't - every version is different...

Error messages are also generated stating that the TRV would not react - temperatures are nevertheless sent to the off state. I even have the feeling that the waiting time after sending the heat mode is simply too short and my TRVs reject the mode change when they receive the temperature ...

Beta 42 doesn't work for me, neither does Beta 41. Beta 40 wasn't able to start at all, now I've ended up with Beta 39, which works at least sometimes.

iamkotu commented 2 years ago

Beta 43, Still the same problem with calibration and temperature

2022-11-17 21:53:37.251 ERROR (MainThread) [frontend.js.latest.202211080] :0:0 Script error.
2022-11-17 21:53:39.190 ERROR (MainThread) [frontend.js.latest.202211080] :0:0 Script error.
2022-11-17 21:54:16.999 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat : found device:
2022-11-17 21:54:16.999 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] DeviceEntry(area_id=None, config_entries={'f1e1671b17a4c10bfb71481ea3ce95c9'}, configuration_url=None, connections=set(), disabled_by=None, entry_type=None, hw_version=None, id='7276162b0987f8859fb167a577df77c5', identifiers={('mqtt', 'zigbee2mqtt_0xb4e3f9fffec1e5c7')}, manufacturer='Lidl', model='Silvercrest radiator valve with thermostat (368308_2010)', name_by_user=None, name='Grzejnik duży pokój', suggested_area=None, sw_version=None, via_device_id=None, is_new=False)
2022-11-17 21:54:17.003 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat : uses adapter mqtt for trv climate.grzejnik_duzy_pokoj
2022-11-17 21:54:17.004 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj
2022-11-17 21:54:17.004 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Could not find valve position entity for climate.grzejnik_duzy_pokoj
2022-11-17 21:54:28.903 DEBUG (MainThread) [custom_components.better_thermostat.config_flow] Confirm: [{'trv': 'climate.grzejnik_duzy_pokoj', 'integration': 'mqtt', 'model': '368308_2010', 'adapter': None, 'advanced': {'calibration': 'local_calibration_based', 'heat_auto_swapped': False, 'calibration_round': True, 'child_lock': False, 'homaticip': False}}]
2022-11-17 21:54:28.922 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat Duży pokój : uses adapter mqtt for trv climate.grzejnik_duzy_pokoj
2022-11-17 21:54:28.922 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Waiting for entity to be ready...
2022-11-17 21:54:28.922 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Starting version 1.0.0-beta43. Waiting for entity to be ready...
2022-11-17 21:54:28.922 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : detected window state at startup: Closed
2022-11-17 21:54:28.922 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Startup config, BT hvac mode is heat, Target temp 21.5
2022-11-17 21:54:28.923 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj
2022-11-17 21:54:28.923 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat Duży pokój : uses local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration
2022-11-17 21:54:28.923 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: -1.0 to: -4.5
2022-11-17 21:54:30.937 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode: climate.grzejnik_duzy_pokoj heat
2022-11-17 21:54:33.942 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : get last avg outdoor temps...
2022-11-17 21:54:38.944 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : startup completed.
2022-11-17 21:55:18.430 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : control_trv: window is open or status of window is unknown, setting window open
2022-11-17 21:55:18.430 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 21:55:20.422 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj sends new internal temperature from 22.0 to 18.9
2022-11-17 21:55:20.422 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : calibration accepted by TRV climate.grzejnik_duzy_pokoj
2022-11-17 21:55:20.422 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj decoded TRV mode changed from heat to off - converted off
2022-11-17 21:55:20.422 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 21:55:20.425 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj decoded TRV target temp changed from 21.5 to 0.5
2022-11-17 21:56:03.003 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : control_trv: window is closed, setting window closed restoring mode: heat
2022-11-17 21:56:03.003 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: -4.5 to: 0.5
2022-11-17 21:56:05.007 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode: climate.grzejnik_duzy_pokoj heat
2022-11-17 21:56:05.010 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: off to: heat
2022-11-17 21:56:05.012 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 21.5 to: 0.5
2022-11-17 21:56:07.076 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj decoded TRV mode changed from off to heat - converted heat
2022-11-17 21:56:07.076 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 21:56:08.018 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5
2022-11-17 21:56:12.248 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj sends new internal temperature from 18.9 to 23.9
2022-11-17 21:56:12.248 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : calibration accepted by TRV climate.grzejnik_duzy_pokoj
2022-11-17 21:56:12.248 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 21:56:12.249 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5
KartoffelToby commented 2 years ago

@cezetino can you try, to enable childlock in the BT device config, and check if your problem still exsist?

iamkotu commented 2 years ago

Now the thermostat started to go crazy :P

2022-11-17 22:14:12.352 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat : found device:
2022-11-17 22:14:12.352 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] DeviceEntry(area_id=None, config_entries={'f1e1671b17a4c10bfb71481ea3ce95c9'}, configuration_url=None, connections=set(), disabled_by=None, entry_type=None, hw_version=None, id='7276162b0987f8859fb167a577df77c5', identifiers={('mqtt', 'zigbee2mqtt_0xb4e3f9fffec1e5c7')}, manufacturer='Lidl', model='Silvercrest radiator valve with thermostat (368308_2010)', name_by_user=None, name='Grzejnik duży pokój', suggested_area=None, sw_version=None, via_device_id=None, is_new=False)
2022-11-17 22:14:12.352 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat : uses adapter mqtt for trv climate.grzejnik_duzy_pokoj
2022-11-17 22:14:12.352 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj
2022-11-17 22:14:12.352 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Could not find valve position entity for climate.grzejnik_duzy_pokoj
2022-11-17 22:14:19.905 DEBUG (MainThread) [custom_components.better_thermostat.config_flow] Confirm: [{'trv': 'climate.grzejnik_duzy_pokoj', 'integration': 'mqtt', 'model': '368308_2010', 'adapter': None, 'advanced': {'calibration': 'local_calibration_based', 'heat_auto_swapped': False, 'calibration_round': True, 'child_lock': True, 'homaticip': False}}]
2022-11-17 22:14:19.909 DEBUG (MainThread) [custom_components.better_thermostat.utils.bridge] better_thermostat Duży pokój : uses adapter mqtt for trv climate.grzejnik_duzy_pokoj
2022-11-17 22:14:19.909 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Waiting for entity to be ready...
2022-11-17 22:14:19.910 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Starting version 1.0.0-beta43. Waiting for entity to be ready...
2022-11-17 22:14:19.910 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : detected window state at startup: Closed
2022-11-17 22:14:19.910 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : Startup config, BT hvac mode is heat, Target temp 0.5
2022-11-17 22:14:19.911 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better thermostat: Found local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration for climate.grzejnik_duzy_pokoj
2022-11-17 22:14:19.911 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] better_thermostat Duży pokój : uses local calibration entity number.grzejnik_duzy_pokoj_local_temperature_calibration
2022-11-17 22:14:19.911 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: 0.0 to: 0.5
2022-11-17 22:14:21.918 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode: climate.grzejnik_duzy_pokoj heat
2022-11-17 22:14:21.921 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 21.5 to: 0.5
2022-11-17 22:14:24.926 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : get last avg outdoor temps...
2022-11-17 22:14:29.928 INFO (MainThread) [custom_components.better_thermostat.climate] better_thermostat Duży pokój : startup completed.
2022-11-17 22:14:47.983 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj sends new internal temperature from 23.6 to 24.4
2022-11-17 22:14:47.984 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : calibration accepted by TRV climate.grzejnik_duzy_pokoj
2022-11-17 22:14:47.985 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_local_temperature_calibration: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.0
2022-11-17 22:14:49.988 DEBUG (MainThread) [custom_components.better_thermostat.adapters.mqtt] sending hvac_mode: climate.grzejnik_duzy_pokoj heat
2022-11-17 22:14:49.991 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5
2022-11-17 22:14:52.233 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : TRV climate.grzejnik_duzy_pokoj sends new internal temperature from 24.4 to 23.8
2022-11-17 22:14:52.233 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : calibration accepted by TRV climate.grzejnik_duzy_pokoj
2022-11-17 22:14:52.994 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5
2022-11-17 22:15:09.333 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : control_trv: window is open or status of window is unknown, setting window open
2022-11-17 22:15:09.333 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:12.337 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:14.914 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:15.146 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:15.340 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:16.142 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:18.345 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:21.349 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:21.947 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:24.353 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:32.915 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:32.916 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:33.036 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:33.391 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:33.516 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:33.645 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:33.769 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:33.895 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:35.920 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:38.925 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_hvac_mode: climate.grzejnik_duzy_pokoj from: heat to: off
2022-11-17 22:15:39.473 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:39.954 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:40.165 WARNING (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Duży pokój : New TRV climate.grzejnik_duzy_pokoj setpoint outside of range, overwriting it
2022-11-17 22:15:41.928 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : control_trv: window is closed, setting window closed restoring mode: heat
2022-11-17 22:15:41.928 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5
2022-11-17 22:15:44.932 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Duży pokój : TO TRV set_temperature: climate.grzejnik_duzy_pokoj from: 0.5 to: 0.5