core icon indicating copy to clipboard operation
core copied to clipboard

TimedOnOffLight (io:LightMicroModuleSomfyIOComponent) does not support state refresh in Overkiz

Open laurentftech opened this issue 2 years ago • 9 comments
trafficstars

The problem

Home assistant light status got out of sync from Eugenie. See below: IMG_0032

image

What version of Home Assistant Core has the issue?

core-2023.10.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

Overkiz

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

laurentftech avatar Nov 01 '23 17:11 laurentftech

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

Code owner commands

Code owners of overkiz can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign overkiz Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

home-assistant[bot] avatar Nov 01 '23 17:11 home-assistant[bot]

@Gandulf78 do you face this issue more often, or is this just a one-time issue? If you reload the integration or restart Home Assistant, it should be in sync again.

In order to debug this further, you would need to turn on debug logging for the integration. When the issue occurs, it helps to have a copy of your diagnostics and your system log.

iMicknl avatar Nov 02 '23 08:11 iMicknl

Hi. Thank you for looking at that. It is almost all the time out of sync. I have installed the latest release of Home Assistant last night and it is out of sync right now. I have activated the logging of the integration. I will share.

laurentftech avatar Nov 02 '23 10:11 laurentftech

Hello. I found out that one reproducible scenario to get out of sync is to simply use the use manually the switch. Here are the logs and diagnostics. The Cuisine light was get out of sync and then the Séjour light. To be fair, it has to be noted that the Eugenie app is also getting out of sync after a manual press on the light switch. But if you kill and reopen the app on iOS, it get synced few seconds after. On the contrary, HA is never synced. A sync or update process seems to be missing or broken.

home-assistant.log overkiz-4a15674817b294265e9e9f6213a1f31b-Séjour-b2545710894c720e710340db1887342b.json.txt.json overkiz-4a15674817b294265e9e9f6213a1f31b-Cuisine-dbf2d4290478c89f37db05454a12b182.json.txt.json

laurentftech avatar Nov 05 '23 07:11 laurentftech

@Gandulf78 ah, this could be the culprit. So your lights are out of sync when you use the physical controls? Looking at your log, these events are probably not broadcasted through the event mechanism. This is a limitation on the side of Overkiz.

This is related to https://github.com/home-assistant/core/issues/95533 and https://github.com/home-assistant/core/pull/99499 most likely. How the official app 'solves' it, is by requesting a state update of all devices during start-up. In Home Assistant we would need to call this periodically.

iMicknl avatar Nov 05 '23 13:11 iMicknl

Yes, it makes perfect sense.

laurentftech avatar Nov 05 '23 16:11 laurentftech

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.

Hi there. The issue is still present with Home Assistant 2024.1.6. Thank you.

laurentftech avatar Feb 05 '24 20:02 laurentftech

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.