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
74.04k stars 31.07k forks source link

[Overkiz] Unsupported value 60001 has been returned for <enum 'FailureType'> #124006

Closed tata2 closed 2 months ago

tata2 commented 3 months ago

The problem

I have two Velux covers (with blinds) at home and they are not working as expected. I can control it but it does not get any status update of the position which makes my automation failing.

I have the connectivity kit and using the cloud API.

I tried to reload it and also to remove and redo the integration but it does not work better.

The warning message below begin to appear since my automations are failing. The issue appears for the first time in the evening of when I upgraded to core-2024.8.1.

Warning message in HA:

Unsupported value 60001 has been returned for <enum 'FailureType'>

If you tell to me that it is safe to downgrade to 2024.7 without major changes into my system, I can try to downgrade if you want to test. (I have also some backups which works but I would like to avoid to use it because I did some changes since that time)

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

core-2024.7.2

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

config_entry-overkiz-01J5BRB9FATKW4NMG7BSR45PYH.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, @tronix117, @alexfp14, 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 3 months ago

Can you turn on debug mode and share your log after an (unsuccessful) execution?

tata2 commented 3 months ago

Here it is. home-assistant_overkiz_2024-08-16T16-44-32.738Z.log

I opened and closed my Velux blinds. The status (percentage) is not updating at all + at least, one warning message like above popped while the debugging was on.

Hope it helps.

tata2 commented 3 months ago

Hello,

I tried to downgrade HA to 2024.7.4/2024.7.0 and still does not work.

But I saw that during my holidays Somfy made an update. As I did not use the integration between being back from holidays and updating it, it might not come from an update of overkiz in fact but more from the update of the Somfy device. (a connectivity box)

iMicknl commented 2 months ago

@tata2 I am not sure what goes wrong based on your log. Unsupported value 60001 has been returned for <enum 'FailureType'> is just a warning, but it is caused by a command execution that fails. We haven't seen this specific status code before.

Based on your errors, it seems to be a device timeout. Are your devices in range?

2024-08-16 16:43:55.942 DEBUG (MainThread) [homeassistant.components.overkiz] Event(name=<EventName.COMMAND_EXECUTION_STATE_CHANGE: 'CommandExecutionStateChangedEvent'>, timestamp=1723826635820, setupoid=_CountingAttr(counter=478, _default=None, repr=<function obfuscate_id at 0xffff74f51e40>, eq=True, order=True, hash=None, init=True, on_setattr=None, alias=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=<FailureType.UNKNOWN: -1>, failure_type='INTERNAL', condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='5c1271ab-0a19-0483-48ab-6395713cf9e6', device_url=ogp://****-****-3443/4134326, device_states=[], old_state=None, new_state=<ExecutionState.FAILED: 'FAILED'>)
2024-08-16 16:43:55.942 DEBUG (MainThread) [homeassistant.components.overkiz] Event(name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, timestamp=1723826635821, setupoid=_CountingAttr(counter=478, _default=None, repr=<function obfuscate_id at 0xffff74f51e40>, eq=True, order=True, hash=None, init=True, on_setattr=None, alias=None, metadata={}), owner_key=4f3d****-5ef****-40b****-965d-9a9a2d5f2482, type=1, sub_type=1, time_to_next_state=-1, failed_commands=[{'device_url': 'ogp://2111-8361-3443/4134326', 'detailed_status': {'message': 'Timeout', 'error': True}, 'rank': 0, 'failure_type': 'INTERNAL'}], failure_type_code=<FailureType.UNKNOWN: -1>, failure_type='INTERNAL', condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='5c1271ab-0a19-0483-48ab-6395713cf9e6', device_url=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.FAILED: 'FAILED'>)

Unfortunately this is an internal device error, and not something we can fix in the Overkiz integration.

tata2 commented 2 months ago

My devices are in range because I can control it. It is just that I have no return in the state of the devices.

Based on what you said, I went to the somfy mobile app and I saw multiple error messages (internal error) each time I do an action. And same issue from there, I can control my devices but no update of its state. So I restarted the somfy connectivity box and everything is back to normal. (Why I did not think about trying this before?)