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
74.04k stars 31.07k forks source link

Bulb status not being updated in certain scenarios #98665

Open ffedee7 opened 1 year ago

ffedee7 commented 1 year ago

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:

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 using requires_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

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.8.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "America/Montevideo",
    "os_name": "Linux",
    "os_version": "6.1.45",
    "supervisor": "2023.08.1",
    "host_os": "Home Assistant OS 10.5",
    "docker_version": "23.0.6",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "adaptive_lighting": {
      "version": "1.19.0",
      "requirements": [
        "ulid-transform"
      ]
    }
  },
  "integration_manifest": {
    "domain": "flux_led",
    "name": "Magic Home",
    "codeowners": [
      "@icemanch",
      "@bdraco"
    ],
    "config_flow": true,
    "dependencies": [
      "network"
    ],
    "dhcp": [
      {
        "registered_devices": true
      },
      {
        "macaddress": "18B905*",
        "hostname": "[ba][lk]*"
      },
      {
        "macaddress": "249494*",
        "hostname": "[ba][lk]*"
      },
      {
        "macaddress": "7CB94C*",
        "hostname": "[ba][lk]*"
      },
      {
        "macaddress": "ACCF23*",
        "hostname": "[hba][flk]*"
      },
      {
        "macaddress": "B4E842*",
        "hostname": "[ba][lk]*"
      },
      {
        "macaddress": "F0FE6B*",
        "hostname": "[hba][flk]*"
      },
      {
        "macaddress": "8CCE4E*",
        "hostname": "lwip*"
      },
      {
        "hostname": "hf-lpb100-zj*"
      },
      {
        "hostname": "zengge_[0-9a-f][0-9a-f]_*"
      },
      {
        "hostname": "zengge"
      },
      {
        "macaddress": "C82E47*",
        "hostname": "sta*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/flux_led",
    "iot_class": "local_push",
    "loggers": [
      "flux_led"
    ],
    "quality_scale": "platinum",
    "requirements": [
      "flux-led==1.0.2"
    ],
    "is_built_in": true
  },
  "data": {
    "entry": {
      "title": "Bulb RGBCW A95050",
      "data": {
        "host": "192.168.1.181",
        "remote_access_enabled": false,
        "remote_access_host": "sl8815us01.magichue.net",
        "remote_access_port": 8815,
        "minor_version": 532,
        "model": "AK001-ZJ21412",
        "model_num": 53,
        "model_info": "ZG-BL-BP101",
        "model_description": "Bulb RGBCW"
      }
    },
    "data": {
      "device_state": {
        "available": true,
        "brightness": 153,
        "cold_white": 0,
        "color_active": true,
        "color_is_white_only": false,
        "color_mode": "RGB",
        "color_modes": [
          "CCT",
          "RGB"
        ],
        "color_temp": 2700,
        "cool_white": 0,
        "device_type": 0,
        "dimmable_effects": true,
        "discovery": {
          "ipaddr": "192.168.1.181",
          "id": "B4E842A95050",
          "model": "AK001-ZJ21412",
          "model_num": 53,
          "version_num": 532,
          "firmware_date": {
            "__type": "<class 'datetime.date'>",
            "isoformat": "2023-06-14"
          },
          "model_info": "ZG-BL-BP101",
          "model_description": "Bulb RGBCW",
          "remote_access_enabled": true,
          "remote_access_host": "sl8815us01.magichue.net",
          "remote_access_port": 8815
        },
        "effect": null,
        "effect_list": [
          "blue_fade",
          "blue_strobe",
          "colorjump",
          "colorloop",
          "colorstrobe",
          "cyan_fade",
          "cyan_strobe",
          "cycle_rgb",
          "cycle_seven_colors",
          "gb_cross_fade",
          "green_fade",
          "green_strobe",
          "purple_fade",
          "purple_strobe",
          "rb_cross_fade",
          "red_fade",
          "red_strobe",
          "rg_cross_fade",
          "rgb_cross_fade",
          "white_fade",
          "white_strobe",
          "yellow_fade",
          "yellow_strobe",
          "random"
        ],
        "hardware": {
          "model": "AK001-ZJ21412",
          "chip": {
            "__type": "<enum 'LEDENETChip'>",
            "repr": "<LEDENETChip.BL602: 2>"
          },
          "remote_rf": true,
          "remote_24g": true,
          "remote_24g_controls": true,
          "auto_on": true,
          "dimmable_effects": true
        },
        "ic_type": null,
        "ic_type_num": null,
        "ic_types": null,
        "ipaddr": "192.168.1.181",
        "is_on": true,
        "max_temp": 6500,
        "microphone": false,
        "min_temp": 2700,
        "mode": "color",
        "model": "Bulb RGBCW (0x35)",
        "model_data": {
          "model_num": 53,
          "models": [
            "AK001-ZJ200",
            "AK001-ZJ2101",
            "AK001-ZJ2104",
            "AK001-ZJ2145",
            "AK001-ZJ2146",
            "AK001-ZJ2147",
            "AK001-ZJ21410"
          ],
          "description": "Bulb RGBCW",
          "always_writes_white_and_colors": false,
          "protocols": [
            {
              "min_version": 9,
              "protocol": "LEDENET_DIMMABLE_EFFECTS"
            },
            {
              "min_version": 7,
              "protocol": "LEDENET_AUTO_ON"
            },
            {
              "min_version": 0,
              "protocol": "LEDENET"
            }
          ],
          "mode_to_color_mode": {
            "1": [
              "CCT",
              "RGB"
            ],
            "23": [
              "CCT",
              "RGB"
            ]
          },
          "color_modes": [
            "CCT",
            "RGB"
          ],
          "channel_map": {},
          "microphone": false,
          "device_config": {
            "wiring": false,
            "num_to_wiring": {},
            "wiring_to_num": {},
            "operating_modes": false,
            "num_to_operating_mode": {},
            "operating_mode_to_num": {},
            "pixels": false,
            "segments": false,
            "music_pixels": false,
            "music_segments": false,
            "ic_type": false,
            "num_to_ic_type": {},
            "ic_type_to_num": {}
          }
        },
        "model_num": 53,
        "multi_color_mode": true,
        "music_pixels_per_segment": null,
        "music_segments": null,
        "operating_mode": null,
        "operating_mode_num": null,
        "operating_modes": null,
        "paired_remotes": 0,
        "pixels_per_segment": null,
        "port": 5577,
        "power_restore_states": null,
        "preset_pattern_num": 97,
        "protocol": "LEDENET_DIMMABLE_EFFECTS",
        "raw_state": [
          129,
          53,
          35,
          97,
          48,
          80,
          153,
          60,
          31,
          0,
          10,
          0,
          240,
          168
        ],
        "remote_config": 2,
        "requires_turn_on": false,
        "rgb": [
          153,
          60,
          31
        ],
        "rgb_unscaled": [
          255,
          100,
          52
        ],
        "rgbcw": [
          153,
          60,
          31,
          0,
          0
        ],
        "rgbw": [
          153,
          60,
          31,
          0
        ],
        "rgbwcapable": false,
        "rgbwprotocol": false,
        "rgbww": [
          153,
          60,
          31,
          0,
          0
        ],
        "segments": null,
        "speed": 0,
        "speed_adjust_off": true,
        "timeout": 7.5,
        "version_num": 10,
        "warm_white": 0,
        "white_active": false,
        "white_channel_channel_type": 2700,
        "wiring": null,
        "wiring_num": null,
        "wirings": null
      },
      "last_messages": {
        "state": "0x81 0x35 0x23 0x61 0x30 0x50 0x99 0x3C 0x1F 0x00 0x0A 0x00 0xF0 0xA8",
        "remote_config": "0x2B 0x02 0x00 0x00 0x00 0x00 0x3A 0x00 0x00 0x00 0x00 0x00 0x00 0x67",
        "unknown": "0xEA 0x81 0x01 0x00 0x35 0x0A 0x23 0x61 0x01 0x50 0xF0 0x07 0x4F 0x3C 0x00 0x00 0x00 0x00 0x00 0x00"
      }
    }
  }
}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The following logs represent the first scenario that I detailed above.

2023-08-19 04:58:00.144 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) => 0x71 0x24 0x0F 0xA4 (4)
2023-08-19 04:58:00.144 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.181: Waiting for power state response
2023-08-19 04:58:00.335 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.181 data in 0.000 seconds (success: True)
2023-08-19 04:58:00.596 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.181: Bulb failed to respond, sending state query
2023-08-19 04:58:00.597 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) => 0x81 0x8A 0x8B 0x96 (4)
2023-08-19 04:58:00.616 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) <= 0x81 0x35 0x24 0x61 0x30 0x50 0x00 0x00 0x00 0xF4 0x0A 0x00 0x0F 0xC8 (14)
2023-08-19 04:58:00.616 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: set_available: Received message 813524613050000000f40a000fc8
2023-08-19 04:58:00.616 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=80, red=0, green=0, blue=0, warm_white=244, version_number=10, cool_white=0, color_mode=15, check_sum=200)
2023-08-19 04:58:00.617 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: unmapped raw state: 129,53,36,97,48,80,0,0,0,244,10,0,15,200,
2023-08-19 04:58:00.617 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: Mapped State: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=80, red=0, green=0, blue=0, warm_white=244, version_number=10, cool_white=0, color_mode=15, check_sum=200)
2023-08-19 04:58:00.617 DEBUG (MainThread) [homeassistant.components.flux_led] 192.168.1.181: Device state updated: LEDENETRawState(head=129, model_num=53, power_state=36, preset_pattern=97, mode=48, speed=80, red=0, green=0, blue=0, warm_white=244, version_number=10, cool_white=0, color_mode=15, check_sum=200)
2023-08-19 04:58:00.622 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.181: Completed power state change to False (1/6)
2023-08-19 04:58:00.954 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) <= 0xB0 0xB1 0xB2 0xB3 0x00 0x02 0x02 0x4A 0x00 0x14 0xEA 0x81 0x01 0x00 0x35 0x0A 0x24 0x61 0x01 0x50 0x0F 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00 0x18 (31)
2023-08-19 04:58:00.954 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: set_available: Received message b0b1b2b30002024a0014ea810100350a246101500f00000000600000000018
2023-08-19 04:58:00.954 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.181: Ignoring unknown message: 0xEA 0x81 0x01 0x00 0x35 0x0A 0x24 0x61 0x01 0x50 0x0F 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00
2023-08-19 04:58:01.491 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: Transition time is 2.07, set _transition_complete_time to 64051.756321361
2023-08-19 04:58:01.492 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: _replace_raw_state: {'red': 0, 'green': 0, 'blue': 0, 'warm_white': 245, 'cool_white': 0}
2023-08-19 04:58:01.492 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) => 0x31 0x00 0x00 0x00 0xF5 0x00 0x0F 0x0F 0x44 (9)
2023-08-19 04:58:02.009 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) <= 0xB0 0xB1 0xB2 0xB3 0x00 0x02 0x02 0x4B 0x00 0x14 0xEA 0x81 0x01 0x00 0x35 0x0A 0x23 0x61 0x01 0x50 0x0F 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00 0x18 (31)
2023-08-19 04:58:02.009 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: set_available: Received message b0b1b2b30002024b0014ea810100350a236101500f00000000600000000018
2023-08-19 04:58:02.010 DEBUG (MainThread) [flux_led.aiodevice] 192.168.1.181: Ignoring unknown message: 0xEA 0x81 0x01 0x00 0x35 0x0A 0x23 0x61 0x01 0x50 0x0F 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00
2023-08-19 04:58:02.623 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.181 data in 0.000 seconds (success: True)
2023-08-19 04:58:03.070 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: Transition time is 2.07, set _transition_complete_time to 64053.334771818
2023-08-19 04:58:03.070 DEBUG (MainThread) [flux_led.base_device] 192.168.1.181: _replace_raw_state: {'red': 0, 'green': 0, 'blue': 0, 'warm_white': 245, 'cool_white': 0}
2023-08-19 04:58:03.071 DEBUG (MainThread) [flux_led.aioprotocol] ('192.168.1.181', 5577) => 0x31 0x00 0x00 0x00 0xF5 0x00 0x0F 0x0F 0x44 (9)
2023-08-19 04:58:04.625 DEBUG (MainThread) [homeassistant.components.flux_led.coordinator] Finished fetching 192.168.1.181 data in 0.000 seconds (success: True)


### Additional information

_No response_
home-assistant[bot] commented 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!

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)

bdraco commented 1 year ago

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.

bdraco commented 1 year ago

Here is what 0x81 means

https://github.com/Danielhiversen/flux_led/blob/7ec459ab3288c659a394b11f10dd0fbdf672a04d/flux_led/protocol.py#L246

ffedee7 commented 1 year ago

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 🤔.

bdraco commented 1 year ago

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

ffedee7 commented 1 year ago

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.

ironcrafter54 commented 1 year ago

I'm having the same issue FYI

jtriber commented 10 months ago

@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)
bdraco commented 10 months ago

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.

ironcrafter54 commented 10 months ago

I still use Magic Home and would really like this to be resolved, Thanks