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.13k stars 29.8k forks source link

MagicHome/flux_led Only on-off working #100589

Open bebach8 opened 11 months ago

bebach8 commented 11 months ago

The problem

Bulb RGBCW (0x35) by Zengge Firmware: 11.94 Hardware: AK001-ZJ21411

Home Assistant 2023.9.2 Supervisor 2023.09.2 Operating System 10.5 Frontend 20230911.0 - latest

Bulbs are initially paired with SurpLife android app. In app everything is working fine. In HomeAssistant, after adding Magic Home integration bulbs are detected OK, but only on-off is working. Nothing else. Can't set color temperature, single color, effect, brightness... When same is tried in SurpLife app - it works, but in HomeAssistant changes are not reflected in card.

What version of Home Assistant Core has the issue?

core-2023.9.2

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/MagicHome

Link to integration documentation on our website

No response

Diagnostics information

config_entry-flux_led-8e8272b7fe082e769de4629919adb576.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-09-19 11:25:32.251 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) <= 0xB0 0xB1 0xB2 0xB3 0x00 0x02 0x02 0x11 0x00 0x14 0xEA 0x81 0x01 0x00 0x35 0x0A 0x23 0x61 0x01 0x40 0x0F 0x00 0x00 0x00 0x15 0x23 0x00 0x00 0x00 0x00 0xA6 (31)
2023-09-19 11:25:32.252 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: set_available: Received message b0b1b2b3000202110014ea810100350a236101400f000000152300000000a6
2023-09-19 11:25:32.252 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Ignoring unknown message: 0xEA 0x81 0x01 0x00 0x35 0x0A 0x23 0x61 0x01 0x40 0x0F 0x00 0x00 0x00 0x15 0x23 0x00 0x00 0x00 0x00
2023-09-19 11:25:32.285 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Bulb failed to respond, sending state query
2023-09-19 11:25:32.285 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x81 0x8A 0x8B 0x96 (4)
2023-09-19 11:25:32.316 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) <= 0x81 0x35 0x23 0x61 0x30 0x40 0x00 0x00 0x00 0x46 0x0A 0x12 0x0F 0x1B (14)
2023-09-19 11:25:32.316 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: set_available: Received message 813523613040000000460a120f1b
2023-09-19 11:25:32.316 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: State: LEDENETRawState(head=129, model_num=53, power_state=35, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=27)
2023-09-19 11:25:32.317 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: unmapped raw state: 129,53,35,97,48,64,0,0,0,70,10,18,15,27,
2023-09-19 11:25:32.317 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: Mapped State: LEDENETRawState(head=129, model_num=53, power_state=35, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=27)
2023-09-19 11:25:32.317 DEBUG (MainThread) [homeassistant.components.flux_led] 192.168.1.160: Device state updated: LEDENETRawState(head=129, model_num=53, power_state=35, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=27)
2023-09-19 11:25:32.326 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Completed power state change to True (1/6)
2023-09-19 11:25:33.871 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: Transition time is 2.11, set _transition_complete_time to 527919.401296695
2023-09-19 11:25:33.871 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: _replace_raw_state: {'red': 0, 'green': 0, 'blue': 0, 'warm_white': 148, 'cool_white': 38}
2023-09-19 11:25:33.871 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x31 0x00 0x00 0x00 0x94 0x26 0x0F 0x0F 0x09 (9)
2023-09-19 11:25:34.329 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:25:36.885 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.171 data in 3.102 seconds (success: False)
2023-09-19 11:25:37.289 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: Transition time is 2.11, set _transition_complete_time to 527922.819450944
2023-09-19 11:25:37.290 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: _replace_raw_state: {'red': 68, 'green': 99, 'blue': 186, 'warm_white': 0, 'cool_white': 0}
2023-09-19 11:25:37.290 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x31 0x44 0x63 0xBA 0x00 0x00 0xF0 0x0F 0x91 (9)
2023-09-19 11:25:39.298 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:25:42.225 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x71 0x24 0x0F 0xA4 (4)
2023-09-19 11:25:42.226 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Waiting for power state response
2023-09-19 11:25:42.677 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Bulb failed to respond, sending state query
2023-09-19 11:25:42.677 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x81 0x8A 0x8B 0x96 (4)
2023-09-19 11:25:42.691 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) <= 0x81 0x35 0x24 0x61 0x30 0x40 0x00 0x00 0x00 0x46 0x0A 0x12 0x0F 0x1C (14)
2023-09-19 11:25:42.691 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: set_available: Received message 813524613040000000460a120f1c
2023-09-19 11:25:42.691 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=28)
2023-09-19 11:25:42.691 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: unmapped raw state: 129,53,36,97,48,64,0,0,0,70,10,18,15,28,
2023-09-19 11:25:42.692 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: Mapped State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=28)
2023-09-19 11:25:42.692 DEBUG (MainThread) [homeassistant.components.flux_led] 192.168.1.160: Device state updated: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=28)
2023-09-19 11:25:42.699 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Completed power state change to False (1/6)
2023-09-19 11:25:43.252 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) <= 0xB0 0xB1 0xB2 0xB3 0x00 0x02 0x02 0x12 0x00 0x14 0xEA 0x81 0x01 0x00 0x35 0x0A 0x24 0x61 0x01 0x40 0x0F 0x00 0x00 0x00 0x15 0x23 0x00 0x00 0x00 0x00 0xA8 (31)
2023-09-19 11:25:43.252 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: set_available: Received message b0b1b2b3000202120014ea810100350a246101400f000000152300000000a8
2023-09-19 11:25:43.253 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.160: Ignoring unknown message: 0xEA 0x81 0x01 0x00 0x35 0x0A 0x24 0x61 0x01 0x40 0x0F 0x00 0x00 0x00 0x15 0x23 0x00 0x00 0x00 0x00
2023-09-19 11:25:44.701 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:25:49.878 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.171 data in 3.093 seconds (success: False)
2023-09-19 11:25:54.756 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:26:02.869 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.171 data in 3.087 seconds (success: False)
2023-09-19 11:26:04.759 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:26:14.755 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:26:15.861 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.171 data in 3.079 seconds (success: False)
2023-09-19 11:26:24.755 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.000 seconds (success: True)
2023-09-19 11:26:28.862 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.171 data in 3.079 seconds (success: False)
2023-09-19 11:26:34.754 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) => 0x81 0x8A 0x8B 0x96 (4)
2023-09-19 11:26:34.756 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.160 data in 0.001 seconds (success: True)
2023-09-19 11:26:34.770 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.160', 5577) <= 0x81 0x35 0x24 0x61 0x30 0x40 0x00 0x00 0x00 0x46 0x0A 0x12 0x0F 0x1C (14)
2023-09-19 11:26:34.770 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: set_available: Received message 813524613040000000460a120f1c
2023-09-19 11:26:34.770 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=28)
2023-09-19 11:26:34.770 DEBUG (MainThread) [flux_led.base_device] 192.168.1.160: Mapped State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=64, red=0, green=0, blue=0, warm_white=70, version_number=10, cool_white=18, color_mode=15, check_sum=28)

Additional information

No response

home-assistant[bot] commented 11 months ago

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

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

(message by CodeOwnersMention)


flux_led documentation flux_led source (message by IssueLinks)

bebach8 commented 9 months ago

Bump

bbklopfer commented 9 months ago

Same issue for me (2023.12.1 via Docker).

Product link: https://www.amazon.com/dp/B00P6WAEHQ

innerspacepilot commented 8 months ago

Same here

jtriber commented 8 months ago

related to #98665 and likely related to #105843

See my comment in #98665 that breaks out data in "Ignoring unknown message: "

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

bbklopfer commented 5 months ago

Issue still present in 2024.4.0 --- on-off works, nothing else.

guillermoreyesv commented 4 months ago

I'm experiencing the same issue: lights function properly in the app but not in Home Assistant. They can only be turned on and off; adjusting brightness or changing colors isn't possible. Any guidance on resolving this would be appreciated. Thanks!

AlmostInteractive commented 2 months ago

The flux_led integration looks to have been abandoned.