jfarmer08/ha-sengledapi

W21-N13 is not reporting status accurately

Closed this issue · 11 comments

I have 4 sengled bulbs W21-N13 on wi-fi. Home Assistant sees them all as purple but they are currently some color temp around daylight. I am not sure what data I can provide to assist, but let me know if I can. I have attempted changing the color to blue via alexa to see if the reported color changes and it does but slowly. If I change them from Home Assistant they update pretty quickly. It seems as though whatever the color temp is doesn't seem to be reported, but only what the last colors were. Even changing the color temp in home assistant does not update the state, but the bulb does indeed physically change to the colors/color temps and brightness I am selecting. The icon still shows red as well as reported values.

Edit: I am adding in the debug commands and trying to get more information. Sengled v0.2.1. RPi4 8GB / HA core-2021.9.6 / supervisor-2021.09.0 / OS 6.3. I see there are updates to OS 6.4 and core-2021.9.7 which I can do soon.

Additional info, in developer tools, the color_mode so far always reads hs never color_temp. Additionally, the color_temp value hasn't changed from 10. If I manually set the color_temp mode as shown below the lights do change, but the state in HA doesn't change:

target:
  entity_id:
    - light.bulb_1
    - light.bulb_2
    - light.bulb_3
    - light.bulb_4
data:
  color_temp: 288
  brightness: 204

Even after setting the above code state, this is the result in the states section, unchanged from the last time I changed using an actual color using hs and not color_temp.

min_mireds: 153
max_mireds: 500
supported_color_modes:
  - color_temp
  - hs
color_mode: hs
brightness: 204
hs_color:
  - 240
  - 99.608
rgb_color:
  - 0
  - 0
  - 255
xy_color:
  - 0.136
  - 0.04
color_temp: 10
attribution: Data provided by Sengled
state: true
available: true
device model: W21-N13
rssi: -60
mac: xx:xx:xx:xx:xx:xx
friendly_name: Bulb 3
supported_features: 19

Crickets... Help please.

I can maybe take a look in the next few weeks. I have moved away from using HA and started using Homekit. I know the integration needs alot of updates.

Any chance you've gotten to look into this issue?

Any update?

Can you turn Debug on and give me the output of that. It will show me the color that you have set. You can turn the color to something and then turn it back.

Hi guys! I have a similar problem. This integration works great with my W21-N11 (soft white bulb, no RGB, no temp control, just brightness control). There is a script I made to first turn turn it on at 50% brightness and then turn off slowly (12 minutes) and works great, but the bulb state does not update properly. The light actually turns on and do it's transition until is off, but in HA the entity always shows as off. If I turn the switch on in my dashboard, it now shows the real state (on).

I also noticed that the brightness control always is at 100% when I turn on the light even if the last state (and the real state) of the bulb is different.

As a conclution, the integration works great and the bulb does everything I need from Home Assistant, but the actual state not always is shown right.

If I can help with any info to solve this, just let me know and I'll post it as soon as I can. Thanks!

What version are you using?

What version are you using?

Latest version 0.2.4, I've been updating the integration as soon as it comes out.

Edit: I just rechecked everything, and is working now, not sure what the solution is but the state is updating properly. Thanks for this integration 😄

Sorry with the lack of movement originally I changed out the bulbs and don’t have them in place to try and run the debug. Maybe someone else does. Apologies for not updating before as it slipped my mind after I read the request.