core: Magic Home Integration cant connect to RGB Controller
The problem
The integration seems to discover the Wi-Fi controllers, but can never connect.
From the Integration UI “Retrying setup: [Errno 111] Connect call failed (‘192.168.1.217’, 5577)”
I have 2 controllers, same result with both. Magic Home Android App works fine to control them.
What version of Home Assistant Core has the issue?
2022.8.6
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
Magic Home
Link to integration documentation on our website
https://www.home-assistant.io/integrations/flux_led/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: config_entries.py:1067
First occurred: 15:02:43 (10 occurrences)
Last logged: 16:02:39
Config entry 'Controller RGB/WW/CW E6462E' for flux_led integration not ready yet: [Errno 111] Connect call failed ('192.168.1.193', 5577); Retrying in background
Config entry 'Controller RGB/WW/CW C8F170' for flux_led integration not ready yet: [Errno 111] Connect call failed ('192.168.1.217', 5577); Retrying in background
Additional information
Could the port number (5577) be wrong? It looks like the Magic Home App on my phone is using a different port to communicate with the controllers. If so, is there a way to override the port number?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (14 by maintainers)
Commits related to this issue
- Add support for Armacost flux_led devices These devices use port 34001 instead of 5577 and its hard coded into the app so we need to detect them in the model info and switch ports changelog: https:/... — committed to bdraco/home-assistant by bdraco 2 years ago
- Add tests based on log dumps in home-assistant/core#77005 — committed to Danielhiversen/flux_led by bdraco 2 years ago
- Add tests based on log dumps in home-assistant/core#77005 (#379) — committed to Danielhiversen/flux_led by bdraco 2 years ago
Awesome, sounds good! I might try to figure out how to patch the lib myself.
Also, to test that the connection works, I changed base_device.py to use
DEFAULT_PORT = 34001
and then I was able to use the commands to turn the LED strip on and off with no issue!Thanks again for your responsiveness and work on this 😃