Danielhiversen / flux_led

A utility for controlling Flux WiFi Smart LED Light Bulbs
GNU Lesser General Public License v3.0
155 stars 143 forks source link

Only on-off is working #398

Open bebach8 opened 9 months ago

bebach8 commented 9 months ago

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.

mirraj2 commented 8 months ago

same here

eutervogel commented 8 months ago

Same here. Here's a debug log from an attempt to change the color:

DEBUG: flux_led.aioprotocol: ('192.168.178.73', 5577) => 0x81 0x8A 0x8B 0x96 (4) DEBUG: flux_led.aioprotocol: ('192.168.178.73', 5577) <= 0x81 0x35 0x23 0x61 0x30 0x50 0x00 0xFF 0x00 0x00 0x0A 0x00 0xF0 0xB3 (14) DEBUG: flux_led.base_device: 192.168.178.73: set_available: Received message 81352361305000ff00000a00f0b3 DEBUG: flux_led.base_device: 192.168.178.73: State: LEDENETRawState(head=129, model_num=53, power_state=35, preset_pattern=97, mode=48, speed=80, red=0, green=255, blue=0, warm_white=0, version_number=10, cool_white=0, color_mode=240, check_sum=179) DEBUG: flux_led.base_device: 192.168.178.73: unmapped raw state: 129,53,35,97,48,80,0,255,0,0,10,0,240,179, DEBUG: flux_led.base_device: 192.168.178.73: Mapped State: LEDENETRawState(head=129, model_num=53, power_state=35, preset_pattern=97, mode=48, speed=80, red=0, green=255, blue=0, warm_white=0, version_number=10, cool_white=0, color_mode=240, check_sum=179) DEBUG: flux_led.aiodevice: 192.168.178.73: device_config: wiring=None operating_mode=None DEBUG: flux_led.base_device: 192.168.178.73: Transition time is 2.07, set _transition_complete_time to 338692.66676329 DEBUG: flux_led.base_device: 192.168.178.73: _replace_raw_state: {'red': 255, 'green': 0, 'blue': 0, 'warm_white': 0, 'cool_white': 0} DEBUG: flux_led.aioprotocol: ('192.168.178.73', 5577) => 0x31 0xFF 0x00 0x00 0x00 0x00 0xF0 0x0F 0x2F (9) Setting color RGB: (255, 0, 0) [red] DEBUG: flux_led.base_device: 192.168.178.73: set_unavailable: Connection closed DEBUG: flux_led.aioprotocol: ('192.168.178.73', 5577): Connection lost: None DEBUG: flux_led.base_device: 192.168.178.73: set_unavailable: Connection lost

maybe it helps

3of9 commented 5 months ago

From comments on issues raised in the Magic Home integration of Home Assistant, it looks like the protocol was changed.

Unfortunately, this has rendered a large number of lights useless for me. I hope this project isn't abandoned.

AlmostInteractive commented 4 days ago

I have the same hardware/firmware. It looks like this project has been abandoned, only the on-off works anymore. If anyone knows anything about reverse engineering from packets, here's a .pcap I captured toggling the bulb red, green, red, green. Hopefully it helps: https://file.io/SUx14YiaUMPt