Open ffedee7 opened 1 year ago
Hey there @icemanch, @bdraco, 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!
(message by CodeOwnersMention)
flux_led documentation flux_led source (message by IssueLinks)
It's likely the 0xEA message is a state update but we don't know how to decode it so this one won't be a quick fix since someone with the device will have to run all the possible combinations and figure out what each byte means to add support for it.
If I’m not mistaken it looks like a state messages with some extra bytes, majority being 0x00 (I may be wrong I just read a bit of the code you sent) But I can see for instance 0x23 that means ON, which makes sense because it’s what I’m waiting for 🤔.
It looks like some type of extended state message. Some of them are obvious since it's the same as a normal one but no idea what the rest are
Can’t we just ignore them? And map the ones that we need/know? After all, the bulb itself works fine, I can set colors, status, etc correctly.
I'm having the same issue FYI
@bdraco I think this is what your looking for in mapping this response, happy to provide more detail if needed...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
| | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | Count down timer
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | Uk
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | Suplife Delay Flag
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | UK
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | White Brightness, 0x64 max
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | White Temp Cool 0x64, Warm 0x00
| | | | | | | | | | | | | |
| | | | | | | | | | | | | Color Bightness 0x64 max
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | colors map?
| | | | | | | | | | |
| | | | | | | | | | 0x0F white lights, 0xF0 colors (both banks can be active this may be a "bug"
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | UK
| | | | | | | | |
| | | | | | | | Pattern? 0x27 none/normal, 0x0B count down,
| | | | | | | | 0x2A Scheduled event, 0x0D xmass, 0x1E lightning
| | | | | | | | Suplife custom patterns not a code here?
| | | | | | | |
| | | | | | | 0x61 light, 0x71 cust patern, 0x70 built in pattern
| | | | | | Power 0x23 on 0x24 OFF
| | |
Source 0x01 wifi(ha)/suplife, 0x04 ir remote
6500k full bright
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x00
Remote shut off after 1 min button pressed, first 3 are light flashing, last one seems to be timer
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0x0F 0x00 0x00 0x00 0x64 0x00 0x00 0x00 0x00 0x00
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x00
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x00
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x3C
then the light goes off
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x00
6500k 49%
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0x0F 0x00 0x00 0x00 0x64 0x31 0x00 0x00 0x00 0x00
HA RED 100%
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0xF0 0x04 0xC3 0x64 0x00 0x00 0x00 0x00 0x00 0x00
remote full red
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0xF0 0xB4 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Remote Full red Power off
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0xF0 0xB4 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Remote Full green
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Remote Green Power OFF
0xEA 0x81 0x04 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x
SupLife Full Green
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
SupLife DELAY OFF 2 min, 120 sec
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x01 0x00 0x78
..
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x01 0x00 0x31
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Slowly turn off over 10 seconds (up to 1 hour?) Suplife app
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x5A 0x00 0x00 0x00 0x01 0x00 0x09
... v chatty, also fades uout green
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x46 0x00 0x00 0x00 0x01 0x00 0x07
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x28 0x00 0x00 0x00 0x01 0x00 0x04
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x1F 0x00 0x00 0x00 0x01 0x00 0x03
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x0A 0x00 0x00 0x00 0x01 0x00 0x01
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x24 0x61 0x0B 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Suplife 50% Green
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x27 0x40 0xF0 0x3C 0x64 0x3A 0x00 0x00 0x00 0x00 0x00 0x00
Suplife Flame custom
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x71 0x24 0x40 0xF0 0x07 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Suplife Heartbeat custom
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x71 0x24 0x40 0x0F 0x00 0x00 0x00 0xFF 0x64 0x00 0x00 0x00 0x00
Suplife Heartbeat (light was red heart beat red?)
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x70 0x24 0x40 0x0F 0x00 0x00 0x00 0xFF 0x64 0x00 0x00 0x00 0x00
Suplife christmass (More...)
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x70 0x0D 0x40 0xF0 0x78 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x70 0x0D 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Suplife lightning:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x70 0x1E 0x40 0x0F 0x00 0x00 0x00 0xFF 0x64 0x00 0x00 0x00 0x00
HA
Red:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0xF0 0x04 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Green:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Suplife
Red:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0xF0 0x00 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Green:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0xF0 0x3C 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Blue:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0xF0 0x78 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
Blue 50:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0xF0 0x78 0x64 0x32 0x00 0x00 0x00 0x00 0x00 0x00
Cool White 50:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0x0F 0x00 0x00 0x00 0x64 0x32 0x00 0x00 0x00 0x00
Cool White:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0x0F 0x00 0x00 0x00 0x64 0x64 0x00 0x00 0x00 0x00
Warm White:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0x0F 0x00 0x00 0x00 0x00 0x64 0x00 0x00 0x00 0x00
Warm White 50
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x24 0x40 0x0F 0x00 0x00 0x00 0x00 0x32 0x00 0x00 0x00 0x00
Time Based Event (alarm?) Turn on:
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0x0F 0x00 0x00 0x00 0x64 0x02 0x00 0x00 0x00 0x00
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0x0F 0x00 0x00 0x00 0x64 0x06 0x00 0x00 0x00 0x00
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x71 0x0D 0x40 0xF0 0xB4 0x64 0x64 0x00 0x00 0x00 0x00 0x00 0x00
0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x70 0x0D 0x40 0xF0 0x78 0x64 0x64 0x00 0x00 0x00 0x00 0x00
call to set rgb ...
2024-01-09 02:13:31.368 DEBUG (MainThread) [flux_led.base_device] 192.168.0.49: Transition time is 2.11, set _transition_complete_time to 54325.482182138
2024-01-09 02:13:31.368 DEBUG (MainThread) [flux_led.base_device] 192.168.0.49: _replace_raw_state: {'red': 245, 'green': 91, 'blue': 122, 'warm_white': 0, 'cool_white': 0}
2024-01-09 02:13:31.368 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.0.49', 5577) => 0x31 0xF5 0x5B 0x7A 0x00 0x00 0xF0 0x0F 0xFA (9)
2024-01-09 02:13:32.821 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.0.49', 5577) <= 0xB0 0xB1 0xB2 0xB3 0x00 0x02 0x02 0x7B 0x00 0x14 0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0xF0 0xAD 0xBE 0x60 0x00 0x00 0x00 0x00 0x00 0x00 0x86 (31)
2024-01-09 02:13:32.821 DEBUG (MainThread) [flux_led.base_device] 192.168.0.49: set_available: Received message b0b1b2b30002027b0014ea8101000e0a23612a40f0adbe6000000000000086
2024-01-09 02:13:32.821 DEBUG (MainThread) [flux_led.aiodevice] 192.168.0.49: Ignoring unknown message: 0xEA 0x81 0x01 0x00 0x0E 0x0A 0x23 0x61 0x2A 0x40 0xF0 0xAD 0xBE 0x60 0x00 0x00 0x00 0x00 0x00 0x00
2024-01-09 02:13:33.370 DEBUG (MainThread) :[homeassistant.components.flux_led.coordinator] Finished fetching 192.168.0.49 data in 0.000 seconds (success: True)
Great that you figured out it 👍
I'm no longer using any Magic home products so I'm no longer code owner for this integration.
However if you make a PR to flux_led, I can test and merge it for you.
I still use Magic Home and would really like this to be resolved, Thanks
The problem
There are some scenarios where the light status is not being reflected in Home Assistant (but it is being reflected on Surplife app). The scenarios, as far as I tested are:
flux_led -i 192.168.1.181
the status gets fixed.It seems like the integrations may be missing the light status when we change it. In the logs that I attach we see
Ignoring unknown message
. Also, a not-so-good fix may be usingrequires_turn_on
, but I didn't find how to easily turn it on.What version of Home Assistant Core has the issue?
core-2023.8.3
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
Example YAML snippet
No response
Anything in the logs that might be useful for us?