I have a Magic Home WiFi LED Controller which works fine with the Magic Home app. The Home Assistant documentation says to select “Magic Home” in “Add Integration” and follow the on screen instructions. The instructions are to supply a host or leave host empty and submit. If I leave the host empty it returns with “No devices found on the network” and if I supply the ip address of the device it returns with “Failed to connect”. This should just work or am I missing something?
Which model device is it? (Magic Home - Home Assistant)
You should be able to see in Device Settings in the Magic Home app. The first two characters of the firmware version is the model.
Try adding the below to your configuration.yaml
(Logger - Home Assistant)
logger:
default: info
logs:
flux_led: debug
homeassistant.components.flux_led: debug
Then restart, and try re-adding the device in the UI. Check the log for more details about why its failing to add.
The model is 06. Here is the logs when I try to add the device, first with empty host, then with supplying the IP address:
2022-02-24 10:13:11 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:13:11 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'HF-A11ASSISTHREAD'
2022-02-24 10:13:12 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+LVER\r'
2022-02-24 10:13:12 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+LVER\r'
2022-02-24 10:13:12 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+SOCKB\r'
2022-02-24 10:13:12 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+SOCKB\r'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'HF-A11ASSISTHREAD'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+LVER\r'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+LVER\r'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+SOCKB\r'
2022-02-24 10:13:14 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+SOCKB\r'
2022-02-24 10:13:16 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:13:16 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'HF-A11ASSISTHREAD'
2022-02-24 10:13:17 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+LVER\r'
2022-02-24 10:13:17 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+LVER\r'
2022-02-24 10:13:17 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+SOCKB\r'
2022-02-24 10:13:17 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+SOCKB\r'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'HF-A11ASSISTHREAD'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+LVER\r'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+LVER\r'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+SOCKB\r'
2022-02-24 10:13:19 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+SOCKB\r'
2022-02-24 10:13:21 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:13:21 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'HF-A11ASSISTHREAD'
2022-02-24 10:13:22 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+LVER\r'
2022-02-24 10:13:22 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+LVER\r'
2022-02-24 10:13:22 DEBUG (MainThread) [flux_led.scanner] udp: ('255.255.255.255', 48899) => b'AT+SOCKB\r'
2022-02-24 10:13:22 DEBUG (MainThread) [flux_led.aioscanner] discover: ('192.168.1.6', 48899) <= b'AT+SOCKB\r'
2022-02-24 10:18:21 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:18:21 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+LVER\r'
2022-02-24 10:18:22 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+SOCKB\r'
2022-02-24 10:18:24 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:18:25 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+LVER\r'
2022-02-24 10:18:25 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+SOCKB\r'
2022-02-24 10:18:27 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:18:28 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+LVER\r'
2022-02-24 10:18:28 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+SOCKB\r'
2022-02-24 10:18:31 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:18:31 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+LVER\r'
2022-02-24 10:18:32 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+SOCKB\r'
2022-02-24 10:18:34 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'HF-A11ASSISTHREAD'
2022-02-24 10:18:35 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+LVER\r'
2022-02-24 10:18:35 DEBUG (MainThread) [flux_led.scanner] udp: ('192.168.1.10', 48899) => b'AT+SOCKB\r'
In the Device Information of the Magic Home app it has:
Cloud Online
Local Network Offline
I this the problem? I have tried the troubleshooting steps to resolve this to no avail.
Can I use Bluetooth instead?
Looks like it’s not on your wifi network and only be controller via Bluetooth
The integration requires the device to be on wifi for it to work.
You might try resetting the device by during it on and off 3 times quickly and trying to connect it to your wifi again.
I just noticed you posted the cloud is online so it’s likely it is on the wifi but it’s not responding because your subnet is too large for the device to handle or broadcast traffic is being blocked.
Can you ping it?
I could not ping it. So I changed the settings in the router and that has fixed it (after resetting etc).
Thank you very much for your help!
I have the same issue… what are the setting that you changed in your router? I can see the device in the router clients list and I reserved and IP for the controller but still no connection from HomeAssistant
I had to disable “Wi-Fi privacy separation” for the network.