unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
22 stars 0 forks source link

Integrations not working #185

Closed snapjack closed 8 months ago

snapjack commented 8 months ago

Is there an existing issue for this?

Description

I have a sonos system using 11 components and a hue system using 3 bridges and dozens of lights. Remote firmware 1.4.5, dock firmware 0.9.2 I use a FritzBox 7530 and a Fritz Repeater 3000 and a Fritz Repeater 6000. The remote is connected via WLAN to the repeater 6000, the dock is connected via LAN cable. When I try to integrate the sonos system I get the message image When trying to integrate Philips Hue I get image The log says: For Sonos: 2023-11-09 15:00:38.474391 +00:00 core NOTICE [uc_sonos_driver] Session state change: Disconnected 2023-11-09 15:00:38.445631 +00:00 core NOTICE [uc_sonos_driver] StopDriver msg 2023-11-09 15:00:38.442177 +00:00 core NOTICE Stopping driver 'uc_sonos_driver': no more instances 2023-11-09 14:59:43.579373 +00:00 core NOTICE Setting button backlight to: 0% 2023-11-09 14:59:39.045160 +00:00 core NOTICE Ok(DriverSetupChange { event_type: Setup, state: WaitUserAction, error: None, require_user_action: Some(Confirmation(ConfirmationPage { title: {"en": "No Sonos devices found"}, message1: Some({"en": "Please make sure that your Sonos devices are powered on and accessible from the same network as the remote. Click Next to try again."}), image: None, message2: None })) }) 2023-11-09 14:59:24.044129 +00:00 core NOTICE Ok(DriverSetupChange { event_type: Setup, state: Setup, error: None, require_user_action: None }) 2023-11-09 14:59:24.040445 +00:00 core NOTICE Ok(DriverSetupChange { event_type: Setup, state: Setup, error: None, require_user_action: None }) 2023-11-09 14:59:24.035001 +00:00 core NOTICE Removed standby inhibitor: Integration setup: uc_sonos_driver 2023-11-09 14:59:24.028395 +00:00 core NOTICE [uc_sonos_driver] Driver version changed or unknown, requesting driver metadata: IntegrationVersion { api: None, integration: None } 2023-11-09 14:59:24.020901 +00:00 core NOTICE [uc_sonos_driver] SessionAuthenticated msg 2023-11-09 14:59:24.019549 +00:00 core NOTICE [uc_sonos_driver] Session state change: Authenticated 2023-11-09 14:59:24.015077 +00:00 core NOTICE [uc_sonos_driver] Session became active: sending get_driver_version, connect, subscribe_events 2023-11-09 14:59:24.013097 +00:00 core NOTICE [uc_sonos_driver] SessionAuthenticated msg 2023-11-09 14:59:24.010677 +00:00 core NOTICE [uc_sonos_driver] Session state change: Authenticated 2023-11-09 14:59:23.995543 +00:00 core NOTICE [uc_sonos_driver] Connected to: ws://127.0.0.1:8093 2023-11-09 14:59:23.987748 +00:00 core WARN Driver not connected to start setup flow, starting driver. State: Some(Idle) 2023-11-09 14:59:23.986425 +00:00 core NOTICE Added standby inhibitor: Integration setup: uc_sonos_driver

For Hue: 2023-11-09 14:59:18.975946 +00:00 core NOTICE [uc_hue_driver] Session state change: Disconnected 2023-11-09 14:59:18.968069 +00:00 core NOTICE [uc_hue_driver] StopDriver msg 2023-11-09 14:59:18.966027 +00:00 core NOTICE Stopping driver 'uc_hue_driver': no more instances 2023-11-09 14:59:16.422930 +00:00 core NOTICE Ok(DriverSetupChange { event_type: Stop, state: Error, error: Some(Other), require_user_action: None }) 2023-11-09 14:59:12.575726 +00:00 core NOTICE Setting button backlight to: 0% 2023-11-09 14:59:06.419432 +00:00 core NOTICE Ok(DriverSetupChange { event_type: Setup, state: Setup, error: None, require_user_action: None }) 2023-11-09 14:59:06.416878 +00:00 core NOTICE Removed standby inhibitor: Integration setup: uc_hue_driver 2023-11-09 14:59:06.414479 +00:00 core NOTICE [uc_hue_driver] Driver version changed or unknown, requesting driver metadata: IntegrationVersion { api: None, integration: None } 2023-11-09 14:59:06.410645 +00:00 core NOTICE [uc_hue_driver] SessionAuthenticated msg 2023-11-09 14:59:06.408982 +00:00 core NOTICE [uc_hue_driver] Session state change: Authenticated 2023-11-09 14:59:06.402470 +00:00 core NOTICE [uc_hue_driver] Session became active: sending get_driver_version, connect, subscribe_events 2023-11-09 14:59:06.398692 +00:00 core NOTICE [uc_hue_driver] SessionAuthenticated msg 2023-11-09 14:59:06.397524 +00:00 core NOTICE [uc_hue_driver] Session state change: Authenticated 2023-11-09 14:59:06.379930 +00:00 core NOTICE [uc_hue_driver] Connected to: ws://127.0.0.1:8098

How to Reproduce

  1. go to integrations
  2. Select Sonos
  3. Select Philips hue

Expected behavior

The Sonos system and the hue bridges should be found

System version

remote 1.4.5, dock 0.9.2

What part of the system affected by the problem?

Integration

Additional context

No response

snapjack commented 8 months ago

OK, I found out the integrations work if the remote is directly connected to the router WLAN (fritz Box) it does not work if it is connected via Mesh extender (Fritz Repeater 6000). Anybody knows why and what to do? After the integration is configured the entities can be controlled also when the remote is connected via the mesh.

zehnm commented 8 months ago

This looks like an mDNS issue. Both Philips & Sonos integrations use mDNS service discovery to detect the devices. Make sure that your repeaters don't block mDNS, multicast or how the manufacturer calls it (UniFi fore example calls it "Multicast and Broadcast Control").

snapjack commented 8 months ago

Ok, if the repeater is connected to the router via WiFi it works, but not if the repeater is connected via LAN. So my solution is to connect the repeater via WiFi