core: Failed to turn on/off Magic Home Ceiling Light CCT model 0x09 through HA
The problem
I bought a CCT bulb and this is my first time to config a Magic House device in HA. I followed the tips to connect it to my router and HA discovered it autometically. It works fine with the Magic Home App, but I failed to change the power status or brightness in HA. When I click the switch button on the dashboard it slides to the other side, with nothing happen to the bulb, holding on for a while and slides back again. This corresponds to the log. However, when I turn it on/off in Magic Home App, the on/off status changes exactly on the HA dashboard(but cannot see the change of brightness and color temp).
Then, if I stop playing with the adjustment of the bulb for a few minutes, the entity status in HA turns to unavailable. Any time I play with it again or just come back to the Magic App, the status turns back to available. I am pretty sure that the device had never lost the WiFi connection when I looked into my router logs.
I have also found that another entity within this bulb, which is ‘remote access’ and is alive when the entity light goes away, could be turned on/off successfully without such time limit(I can see the changes in Magic App). In addition, I can link it to Alexa without any trouble and I have control over it through Alexa properly even when it’s grey(unavailable) on HA. After Alexa change the status of light, the bulb go back on dashboard available as well. I can use it with Alexa, But I want more feasibility by using HA.
I feel so confused. The model of this device is 0x09, among the supported list in documentation. So I thought it should work just fine with HA but I am doubting if I have got anything wrong.
What version of Home Assistant Core has the issue?
core-2022.7.7
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
flux_led
Link to integration documentation on our website
https://www.home-assistant.io/integrations/flux_led
Diagnostics information
config_entry-flux_led-1ae4218444ae964bdd55b089edb05c58.json.txt
Example YAML snippet
I haven't add anything to *.yaml yet.
Anything in the logs that might be useful for us?
This is how it looks like when I try to turn it off over HA:
2022-07-28 01:52:39 INFO (MainThread) [homeassistant.components.flux_led.coordinator] Fetching 192.168.50.26 data recovered
2022-07-28 01:52:39 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 01:52:42 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x06 0x00 0x04 0x71 0x24 0x0F 0xA4 0x1A (15)
2022-07-28 01:52:42 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:42 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:42 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x07 0x00 0x04 0x81 0x8A 0x8B 0x96 0xFF (15)
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (1/6)
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x08 0x00 0x04 0x71 0x24 0x0F 0xA4 0x1C (15)
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:43 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x09 0x00 0x04 0x81 0x8A 0x8B 0x96 0x01 (15)
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (2/6)
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0A 0x00 0x04 0x71 0x24 0x0F 0xA4 0x1E (15)
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:44 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0B 0x00 0x04 0x81 0x8A 0x8B 0x96 0x03 (15)
2022-07-28 01:52:45 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:45 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (3/6)
2022-07-28 01:52:45 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0C 0x00 0x04 0x71 0x24 0x0F 0xA4 0x20 (15)
2022-07-28 01:52:45 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0D 0x00 0x04 0x81 0x8A 0x8B 0x96 0x05 (15)
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (4/6)
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0E 0x00 0x04 0x71 0x24 0x0F 0xA4 0x22 (15)
2022-07-28 01:52:46 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:47 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:47 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x0F 0x00 0x04 0x81 0x8A 0x8B 0x96 0x07 (15)
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (5/6)
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x10 0x00 0x04 0x71 0x24 0x0F 0xA4 0x24 (15)
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Waiting for power state response
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Bulb failed to respond, sending state query
2022-07-28 01:52:48 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577) => 0xB0 0xB1 0xB2 0xB3 0x00 0x01 0x01 0x11 0x00 0x04 0x81 0x8A 0x8B 0x96 0x09 (15)
2022-07-28 01:52:49 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 01:52:49 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: State query did not return expected power state of False
2022-07-28 01:52:49 DEBUG (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to set power state to False (6/6)
2022-07-28 01:52:49 ERROR (MainThread) [flux_led.aiodevice] 192.168.50.26: Failed to change power state to False after 6 attempts; Try rebooting the device
2022-07-28 01:52:51 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
This might be what happened after it turns to be unavailable:
2022-07-28 02:02:36 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 02:02:46 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 02:02:56 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 02:03:06 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: True)
2022-07-28 02:03:16 ERROR (MainThread) [homeassistant.components.flux_led.coordinator] Error fetching 192.168.50.26 data: 192.168.50.26: Bulb stopped responding
2022-07-28 02:03:16 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.001 seconds (success: False)
2022-07-28 02:03:16 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.50.26', 5577): Connection lost: None
2022-07-28 02:03:26 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.50.26 data in 0.000 seconds (success: False)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (14 by maintainers)
Commits related to this issue
- Create tests for 0x09 model Once access is provided, this test will support https://github.com/home-assistant/core/issues/75832 — committed to Danielhiversen/flux_led by bdraco 2 years ago
- Bump flux_led to 0.28.33 fixes #75832 changelog: https://github.com/Danielhiversen/flux_led/compare/0.28.32...0.28.33 — committed to bdraco/home-assistant by bdraco 2 years ago
- Bump flux_led to 0.28.34 (#82347) * Bump flux_led to 0.28.33 fixes #75832 changelog: https://github.com/Danielhiversen/flux_led/compare/0.28.32...0.28.33 * more more bump for legacy turn on — committed to home-assistant/core by bdraco 2 years ago
- Bump flux_led to 0.28.34 (#82347) * Bump flux_led to 0.28.33 fixes #75832 changelog: https://github.com/Danielhiversen/flux_led/compare/0.28.32...0.28.33 * more more bump for legacy turn on — committed to home-assistant/core by bdraco 2 years ago
- Bump flux_led to 0.28.34 (#82347) * Bump flux_led to 0.28.33 fixes #75832 changelog: https://github.com/Danielhiversen/flux_led/compare/0.28.32...0.28.33 * more more bump for legacy turn on — committed to aidengindin/core by bdraco 2 years ago
Finally got cleared by customs and is now en-route. I’m hoping it shows up before the holiday.
Thanks. I think it’s the one labeled Bedroom Lamp (I have about 150 test devices in there)
I’m traveling today, but I’ll do some testing with it when I get home later this week so you may see it turn on/off a few times.
Thanks a lot I will let you know as soon as I get things ready. Currently the device is not online. I unplugged it before I left.