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.57k stars 29.91k forks source link

EZVIZ: "message":"Invalid flow specified" #100803

Closed VikeDragon closed 4 months ago

VikeDragon commented 12 months ago

The problem

EZVIZ integration: When registering the cloud part of the RTSP connection, the error "message" is issued:"Invalid flow specified"

What version of Home Assistant Core has the issue?

core-2023.9.2

What was the last working version of Home Assistant Core?

core-2023.8.x

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Ezviz integration

Link to integration documentation on our website

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

Diagnostics information

2023-09-24 18:10:48.915 INFO (MainThread) [homeassistant.components.alarm_control_panel] Setting up alarm_control_panel.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.button] Setting up button.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.camera] Setting up camera.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.image] Setting up image.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.light] Setting up light.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.number] Setting up number.ezviz 2023-09-24 18:10:48.916 INFO (MainThread) [homeassistant.components.select] Setting up select.ezviz 2023-09-24 18:10:48.917 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ezviz 2023-09-24 18:10:48.917 INFO (MainThread) [homeassistant.components.siren] Setting up siren.ezviz 2023-09-24 18:10:48.917 INFO (MainThread) [homeassistant.components.switch] Setting up switch.ezviz 2023-09-24 18:10:48.917 INFO (MainThread) [homeassistant.components.update] Setting up update.ezviz 2023-09-24 18:10:48.917 WARNING (MainThread) [homeassistant.components.ezviz.camera] Found camera with serial J63891080 without configuration. Please go to integration to complete setup 2023-09-24 18:10:48.920 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new alarm_control_panel.ezviz entity: alarm_control_panel.ezviz_alarm 2023-09-24 18:10:48.921 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.ezviz entity: binary_sensor.dp2c_j63891080_alarm_schedules_enabled 2023-09-24 18:10:48.921 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.ezviz entity: binary_sensor.dp2c_j63891080_encryption 2023-09-24 18:10:48.921 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.ezviz entity: binary_sensor.dp2c_j63891080_motion 2023-09-24 18:10:48.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new camera.ezviz entity: camera.dp2c_j63891080 2023-09-24 18:10:48.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new image.ezviz entity: image.dp2c_j63891080_last_motion_image 2023-09-24 18:10:48.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.ezviz entity: select.dp2c_j63891080_warning_sound 2023-09-24 18:10:48.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_alarm_sound_level 2023-09-24 18:10:48.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_local_ip 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_wan_ip 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_supported_channels 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_battery 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_pir_status 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_seconds_since_last_trigger 2023-09-24 18:10:48.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_last_alarm_time 2023-09-24 18:10:48.924 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_last_alarm_picture_url 2023-09-24 18:10:48.924 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_last_alarm_type_code 2023-09-24 18:10:48.924 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ezviz entity: sensor.dp2c_j63891080_last_alarm_type_name 2023-09-24 18:10:48.925 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ezviz entity: switch.dp2c_j63891080_status_light 2023-09-24 18:10:48.925 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ezviz entity: switch.dp2c_j63891080_infrared_light 2023-09-24 18:10:48.925 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ezviz entity: switch.dp2c_j63891080_audio 2023-09-24 18:10:48.925 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new update.ezviz entity: update.dp2c_j63891080_firmware 2023-09-24 18:11:50.115 ERROR (MainThread) [homeassistant.components.ezviz.config_flow] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/ezviz/config_flow.py", line 286, in async_step_confirm return await self._validate_and_create_camera_rtsp(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/ezviz/config_flow.py", line 129, in _validate_and_create_camera_rtsp await self.hass.async_add_executor_job(_test_camera_rtsp_creds, data) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/ezviz/config_flow.py", line 85, in _test_camera_rtsp_creds test_rtsp.main() File "/usr/local/lib/python3.11/site-packages/pyezviz/test_cam_rtsp.py", line 68, in main session.connect( OSError: [Errno 113] Host is unreachable

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 12 months ago

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

Code owner commands Code owners of `ezviz` 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 ezviz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


ezviz documentation ezviz source (message by IssueLinks)

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

VikeDragon commented 9 months ago

This is still relevant, it is necessary to correct the integration.

krahabb commented 7 months ago

I'm the developer of a custom integration (https://github.com/krahabb/meross_lan) and I see the same UI error ("Invalid flow specified") when trying to configure a discovering flow which should have been removed from UI since it was actually already configured (the entry is in place) This happens when the user completes the configuration steps (entries have unique_id(s) to identify configurations for the same device) and the HA core should then cleanup any pending flow with the same unique_id. In my debugging looks like the config flows associated with that unique_id are correctly removed when the flow finishes but somehow the UI doesn't get refreshed and you get the error when you lately try to configure that same same discovery flow again

It looks to me it's a problem in UI refreshing Sometimes, the notified (and already configured) discovery flow gets removed after a while from the UI (like minutes). Every time, reloading the UI will correctly remove the discovery flow No errors/warnings are reported HA core 2024.1.0

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