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
71.03k stars 29.69k forks source link

Somfy light entity can’t be controlled (local API) #109183

Closed sddgit closed 3 days ago

sddgit commented 7 months ago

The problem

I have a Connexoon hub and can successfully connect to it using the local API. All my Somfy blinds and one Somfy-controlled light appear in HA. The light behaves strangely. I can turn it on, and that works, but the entity goes back to off after a couple of seconds all by itself. I then can’t turn the light off. Strangely, there is nothing at all in the Logbook when I do this. Even more strangely, I have the light exposed to Homekit via Homekit Bridge, and the light works perfectly in the Home app. Even then, there are no Logbook entries for the entity in HA.

EDIT: I should add that the light also works in the Connexoon app, and I have tried deleting the integration, restarting HA, and re-adding the integration from scratch.

What version of Home Assistant Core has the issue?

2024.1.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

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?

Nothing visible

Additional information

No response

home-assistant[bot] commented 7 months ago

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. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

iMicknl commented 6 months ago

Most likely related to #105162.

sddgit commented 6 months ago

Possibly. Although for me I turn the switch on and it turns straight back off again, and never changes from there. Also, changes in the Connexoon app are not reflected in HA at all.

iMicknl commented 6 months ago

Can you please add your diagnostics? Can you also turn on debug mode and check if your log contains any events.

  1. If your device already shows up in Home Assistant, go to your integrations page and select Overkiz, your hub and the device. Press the 3 dots and select "Download diagnostics. Otherwise, go to your integrations page and select Overkiz. Next to your hub, click the 3 dots and select "Download diagnostics".

  2. Attach your diagnostics (JSON file) to this issue by uploading the file in a new comment (drag and drop supported).

sddgit commented 6 months ago

OK, I turned the light on via its switch in HA. It turned on, but the switch went back to off after a couple of seconds (but the physical light stayed on). No messages in the HA core log, even with debug logging turned on. Diagnostics attached. Thanks for the help. overkiz-2d330c25f3d3913bc687c2317c306f82-Light-a832b84fe248a4994781e837bc52afbc.json

issue-triage-workflows[bot] commented 3 months 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.

iMicknl commented 3 months ago

@sddgit are you sure debug mode is turned on? You should see the Overkiz event logging in your log, which is used to determine the state.

If you see this for your roller shutter, but not for your light, than most likely this is the issue...

sddgit commented 3 months ago

Thanks for the reply.

I moved on to using the Homebridge Tahoma integration for the light. It’s picked up by the HA Homekit Device integration, then I share it to Homekit using the Homekit Bridge integration. The light works fine in HA and HK.

What did you mean by “most likely this is the issue”? What would be the issue?

iMicknl commented 3 months ago

What did you mean by “most likely this is the issue”? What would be the issue?

That there are no events broadcasted for the light. The HomeBridge plugin doesn't use these events, they set the status to 'on' / 'off' directly after you execute a command.

sddgit commented 3 months ago

Right. So if that were the case and no light events were broadcast, what does that indicate? That the way this integration operates is incompatible with the light?

issue-triage-workflows[bot] commented 1 week 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.