home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.73k stars 30.85k forks source link

Bticino Smarther2 settings do not stick #88417

Closed RyuzakiKK closed 1 year ago

RyuzakiKK commented 1 year ago

The problem

Steps to reproduce

Expected behavior

The chosen temperature should be applied to the thermostat and immediately displayed in HA

Actual behavior

The chosen temp is correctly applied to the thermostat. However in HA the temperature reverts to its previous value.

You have to wait several minutes (probably for the polling interval to kick in) before your chosen temperature gets updated correctly in HA.

This is a gif to show what happens. Please check the mouse to notice when the gif ends. Kooha-2023-02-18-22-37-49


Steps to reproduce

I noticed a second bug, that could be related to the first one. If you prefer a separate bug report, just let me know.

Expected behavior

The chosen preset should be applied to the thermostat and immediately displayed in HA

Actual behavior

As for the temperature, the chosen preset is correctly applied to the thermostat, but in HA the entry gets reset to its previous value.

Differently to the temperature though, if you choose the preset "Boost" or "Frost Guard" or "Away", even after waiting for the polling to kick in, the preset in HA will always stay either unset or at "Schedule". It seems like "Schedule" is the only preset that the integration is able to handle.

Kooha-2023-02-18-22-38-19

Additional info

My HA installation is not reachable from the Internet, and this is causing a warning at startup:

2023-02-18 22:26:14.398 WARNING (MainThread) [homeassistant.components.netatmo] Webhook not registered - https and port 443 is required to register the webhook

AFAICT the Smarther integration should just revert to polling to retrieve the latest status. And in fact, this seems to be the case for the temperature value.

But even in polling, it doesn't seem right that your chosen value would immediately revert and then you would have to wait for the next polling to get the correct value.

What version of Home Assistant Core has the issue?

2023.2.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Smarther

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smarther/

Diagnostics information

config_entry-netatmo-0465447465dcfa9667dfda6bb9823750.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

This is what I get in the logs when I change the preset

home-assistant  | 2023-02-18 20:47:37.175 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [139994724795536] Received {'type': 'call_service', 'domain': 'climate', 'service': 'set_preset_mode', 'service_data': {'preset_mode': 'away', 'entity_id': 'climate.living_room'}, 'id': 63}
home-assistant  | 2023-02-18 20:47:37.175 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=climate, service=set_preset_mode, service_data=preset_mode=away, entity_id=climate.living_room>
home-assistant  | 2023-02-18 20:47:37.176 DEBUG (MainThread) [pyatmo.home] Setting home (**REDACTED**) mode to away (None)
home-assistant  | 2023-02-18 20:47:37.176 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event call_service[L]: domain=climate, service=set_preset_mode, service_data=preset_mode=away, entity_id=climate.living_room>)
home-assistant  | 2023-02-18 20:47:37.177 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5396b40440> checked out from pool
home-assistant  | 2023-02-18 20:47:37.432 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [139994724795536] Sending {"id":63,"type":"result","success":true,"result":{"context":{"id":"**REDACTED**","parent_id":null,"user_id":"**REDACTED**"}}}
home-assistant  | 2023-02-18 20:47:40.467 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: CommitTask()
home-assistant  | 2023-02-18 20:47:40.468 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5396b40440> being returned to pool
home-assistant  | 2023-02-18 20:47:40.468 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5396b40440> rollback-on-return

Additional information

No response

RyuzakiKK commented 1 year ago

/cc @cgtobi

Please let me know if you need more info or logs.

home-assistant[bot] commented 1 year ago

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `netatmo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign netatmo` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.