Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperatuur changes without manual change #1532

Open
Btje1977 opened this issue Dec 21, 2024 · 13 comments
Open

Temperatuur changes without manual change #1532

Btje1977 opened this issue Dec 21, 2024 · 13 comments
Assignees
Labels

Comments

@Btje1977
Copy link

Prerequisites

  • Daiking Airconditioning

Description

Steps to Reproduce

After setting the temperature to 20 degrees is suddenly changes it to 31 without manual change

Versions

HA 2024.12.1
BT 1.6.1

Additional Information

@Btje1977 Btje1977 added the new bug incoming bug issue label Dec 21, 2024
@folfy
Copy link
Collaborator

folfy commented Dec 21, 2024

Without more information, we cannot analyze your issue.

debug log
Enable debug logging for BT, reproduce the issue, and then upload the logfile here.
https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

@xpunk303
Copy link

Hi, i have the same issues happening again and again. Will try to catch logs.

@Btje1977
Copy link
Author

For some reasomn I get an error while downloading the txt log. So I needed the debug logging line to the manifest.json. Then I get the following in the main log file:

2024-12-27 19:16:14.802 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Daikin_Better: HA set target temperature to 20.0 & None
2024-12-27 19:16:14.806 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat None: climate.daikin_airco / heating_power_valve_position - temp diff: 1.6 - heating power: 0.01 - expected valve position: 100%
2024-12-27 19:16:14.807 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat None: climate.daikin_airco - new setpoint calibration: 35.0 | external_temp: 18.4, target_temp: 20.0, trv_temp: 28.0``

@Btje1977
Copy link
Author

It does not recognize a daikin:

2024-12-27 19:14:35.174 INFO (MainThread) [custom_components.better_thermostat.adapters.delegate] better_thermostat None: integration: daikin isn't native supported, feel free to open an issue, fallback adapter generic

@mnul
Copy link

mnul commented Dec 29, 2024

I have the same bug on one of my TRVs. (others work fine).

BT-Version 1.7.0-beta1
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8

At some random time during noon, my target temperature drops to somwhere around 12°C. No manual intervention done.
And the worst part is, it doesn't change back. So I have a pretty cold room quite soon.

This is what's in my logs for this event.

2024-12-29 13:31:21.631 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 25.5 - _new_heating_setpoint: 25.5 - _last_temperature: 25.5
2024-12-29 13:31:21.635 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 25.5 - _new_heating_setpoint: 25.5 - _last_temperature: 25.5
2024-12-29 13:31:21.639 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 25.5 - _new_heating_setpoint: 12.0 - _last_temperature: 25.5
2024-12-29 13:31:21.642 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): TRV climate.thermostat_esszimmer decoded TRV target temp changed from 21.0 to 12.0
2024-12-29 13:31:21.657 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat Esszimmer (better): climate.thermostat_esszimmer - new setpoint calibration: 5.0 | external_temp: 21.6, target_temp: 12.0, trv_temp: 27.7
2024-12-29 13:31:21.657 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): TO TRV set_temperature: climate.thermostat_esszimmer from: 25.5 to: 5.0

This is the event of me changing the target temp back to 21°C

2024-12-29 13:36:38.210 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Esszimmer (better): HA set target temperature to 21.0 & None
2024-12-29 13:36:38.221 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat Esszimmer (better): climate.thermostat_esszimmer - new setpoint calibration: 24.5 | external_temp: 21.6, target_temp: 21.0, trv_temp: 25.9
2024-12-29 13:36:38.221 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): TO TRV set_temperature: climate.thermostat_esszimmer from: 5.0 to: 24.5
2024-12-29 13:36:38.765 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): climate.thermostat_esszimmer / check_target_temp / _last: 24.5 - _current: 24.5

This is BT changing it back again. But I cant'see why. Again, no manual intervention.

2024-12-29 13:39:16.090 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat WC (better): trigger_trv_change test / _old_heating_setpoint: 14.5 - _new_heating_setpoint: 14.5 - _last_temperature: 14.5
2024-12-29 13:39:21.638 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 24.5 - _last_temperature: 24.5
2024-12-29 13:39:21.643 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 24.5 - _last_temperature: 24.5
2024-12-29 13:39:21.650 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 12.0 - _last_temperature: 24.5
2024-12-29 13:39:21.650 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): TRV climate.thermostat_esszimmer decoded TRV target temp changed from 21.0 to 12.0
2024-12-29 13:39:21.665 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat Esszimmer (better): climate.thermostat_esszimmer - new setpoint calibration: 5.0 | external_temp: 21.6, target_temp: 12.0, trv_temp: 25.9
2024-12-29 13:39:21.665 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): TO TRV set_temperature: climate.thermostat_esszimmer from: 24.5 to: 5.0

This is an error I can find repeatedly in my log, maybe it helps.

Traceback (most recent call last):
  File "/config/custom_components/better_thermostat/adapters/delegate.py", line 17, in load_adapter
    self.hass, "custom_components.better_thermostat.adapters." + integration
    ^^^^^^^^^
AttributeError: 'HomeAssistant' object has no attribute 'hass'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/diagnostics/__init__.py", line 280, in get
    data = await info.config_entry_diagnostics(hass, config_entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/better_thermostat/diagnostics.py", line 22, in async_get_config_entry_diagnostics
    _adapter_name = await load_adapter(
                    ^^^^^^^^^^^^^^^^^^^
        hass, trv_id["integration"], trv_id["trv"], True
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/better_thermostat/adapters/delegate.py", line 27, in load_adapter
    self.hass, "custom_components.better_thermostat.adapters.generic"
    ^^^^^^^^^
AttributeError: 'HomeAssistant' object has no attribute 'hass'

Attached is a screenshot of the event from HA.
2024-12-29 14_02_01-History – Home Assistant

@folfy
Copy link
Collaborator

folfy commented Dec 29, 2024

It does not recognize a daikin:

2024-12-27 19:14:35.174 INFO (MainThread) [custom_components.better_thermostat.adapters.delegate] better_thermostat None: integration: daikin isn't native supported, feel free to open an issue, fallback adapter generic

That's ok and just means the "default" adapter mode is used, no specific configuration / adaption exists for your TRV (which is not even needed in most cases).

@folfy
Copy link
Collaborator

folfy commented Dec 29, 2024

For some reasomn I get an error while downloading the txt log. So I needed the debug logging line to the manifest.json. Then I get the following in the main log file:

Diagnosis data download is broken (#1469), PR for bugfixx is pending with maintainers

2024-12-27 19:16:14.802 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Daikin_Better: HA set target temperature to 20.0 & None 2024-12-27 19:16:14.806 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat None: climate.daikin_airco / heating_power_valve_position - temp diff: 1.6 - heating power: 0.01 - expected valve position: 100% 2024-12-27 19:16:14.807 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat None: climate.daikin_airco - new setpoint calibration: 35.0 | external_temp: 18.4, target_temp: 20.0, trv_temp: 28.0``

We need full logs - Your BT setpoint is 20°, so everything working normal, there's no change to a new BT target temperature as described in the bug report.

@folfy
Copy link
Collaborator

folfy commented Dec 29, 2024

This is the event of me changing the target temp back to 21°C

2024-12-29 13:36:38.210 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Esszimmer (better): HA set target temperature to 21.0 & None
2024-12-29 13:36:38.221 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat Esszimmer (better): climate.thermostat_esszimmer - new setpoint calibration: 24.5 | external_temp: 21.6, target_temp: 21.0, trv_temp: 25.9
2024-12-29 13:36:38.221 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): TO TRV set_temperature: climate.thermostat_esszimmer from: 5.0 to: 24.5
2024-12-29 13:36:38.765 DEBUG (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Esszimmer (better): climate.thermostat_esszimmer / check_target_temp / _last: 24.5 - _current: 24.5

This is BT changing it back again. But I cant'see why. Again, no manual intervention.

2024-12-29 13:39:16.090 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat WC (better): trigger_trv_change test / _old_heating_setpoint: 14.5 - _new_heating_setpoint: 14.5 - _last_temperature: 14.5
2024-12-29 13:39:21.638 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 24.5 - _last_temperature: 24.5
2024-12-29 13:39:21.643 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 24.5 - _last_temperature: 24.5
2024-12-29 13:39:21.650 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): trigger_trv_change test / _old_heating_setpoint: 24.5 - _new_heating_setpoint: 12.0 - _last_temperature: 24.5
2024-12-29 13:39:21.650 DEBUG (MainThread) [custom_components.better_thermostat.events.trv] better_thermostat Esszimmer (better): TRV climate.thermostat_esszimmer decoded TRV target temp changed from 21.0 to 12.0

This looks like multiple events are fired for BT changing the TRV 3min before, either because the TRV is sending changes/updates late and mutliple times now (trigger_trv_change), or something is going wrong in BT and the update event is handled multiple times. There's nothing in between 13:36:38 and 13:39:16 in the logs? Will probably extend debug messages, to rly figure out what's going wrong, but don't have time to check potential causes in the source rn.

As a temporary workaround, you can enable child lock in BT for the affected TRV(s), or disable target temperature calibration (calibration mode "no calibration").

This is an error I can find repeatedly in my log, maybe it helps.

Diagnosis data download is broken (#1469), PR #1526 for bugfix is pending with maintainers (this is unrelated, and why you have to use debug mode for getting any data out atm).

@Btje1977
Copy link
Author

For some reasomn I get an error while downloading the txt log. So I needed the debug logging line to the manifest.json. Then I get the following in the main log file:

Diagnosis data download is broken (#1469), PR for bugfixx is pending with maintainers

2024-12-27 19:16:14.802 DEBUG (MainThread) [custom_components.better_thermostat.climate] better_thermostat Daikin_Better: HA set target temperature to 20.0 & None 2024-12-27 19:16:14.806 DEBUG (MainThread) [custom_components.better_thermostat.utils.helpers] better_thermostat None: climate.daikin_airco / heating_power_valve_position - temp diff: 1.6 - heating power: 0.01 - expected valve position: 100% 2024-12-27 19:16:14.807 DEBUG (MainThread) [custom_components.better_thermostat.calibration] better_thermostat None: climate.daikin_airco - new setpoint calibration: 35.0 | external_temp: 18.4, target_temp: 20.0, trv_temp: 28.0``

We need full logs - Your BT setpoint is 20°, so everything working normal, there's no change to a new BT target temperature as described in the bug report.

But you do see the gui change to a higher value and when I check with the Daikin app it does set the temperature to this high value.

@folfy
Copy link
Collaborator

folfy commented Dec 29, 2024

But you do see the gui change to a higher value and when I check with the Daikin app it does set the temperature to this high value.

This is working as designed for the given compensation mode you activated in BT, this issue is about the BT target temparture changing, not the TRV/HVAC.

If you want BT to just set your HVAC target temperature to what you set in BT, you have to enable "no calibration" mode in the BT config of your TRV / HVAC, that's all.

@mueller-esch
Copy link

Diese plötzlichen Temperaturänderungen ohne mein Zutun erlebe ich in meiner Installation auch immer wieder. Sowohl in positiver als auch in negativer Richtung. Der Versuch die Logdateien herunter zu laden scheitern leider immer mit dem Hinweis, dass der Download der Logdatei abgebrochen wird.
image
Ein Fortsetzen des Downloads ist leider nicht möglich. Wer hat eine Idee, wie ich die Logfiles herunterladen kann?

@folfy
Copy link
Collaborator

folfy commented Jan 6, 2025

@mueller-esch "Diagnostic data" download is broken in v1.6.1 and v1.7.0b1, and also wouldn't provide enough information to analyze the issue. Please follow the instructions here on how to get proper debug logs:

Without more information, we cannot analyze your issue.

debug log Enable debug logging for BT, reproduce the issue, and then upload the logfile here. https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

Please create a new issue and follow the other directions there, i.e. provide the stated version numbers, TRV hardware, etc., and statistics graphs of your BT entity and the associated TRV entities during that time, or at least a proper description of what exactly happened when (and when what issue occured), since we don't have any information about your specific issue.

Further, if this is about the TRV target temperature changing, and not the target temperature in/of BT, then please read my previous comment - This is not a bug, and can be disabled as described.

@folfy
Copy link
Collaborator

folfy commented Jan 9, 2025

More information/data needed (like in #1552 for example), or we will have to close this issue. When providing debug logs, please make sure to provide a full log, including the full timeframe as well as before/after the problem occured. Working around TRV "changing on it's own" issues means, we need to fully understand what's happening / why the TRV might be reporting an unexpected change.

So far I can just recommend to enable the "ignore TRV settings like child lock" setting as a workaround.

diagnostic data
IMPORTANT:
Download and paste the diagnostic data from your Better Thermostat Entity(s) below. (not working in v1.6.1 and v1.7.0b1 - please update)
https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics

debug log
Depending on how complicated you issue is, it might be necessary to enable debug logging for BT,
reproduce the issue, and then upload this logfile here.
https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants