Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IKEA TRADFRI lights turning on when sending {"state": "OFF"} #19797

Closed
pbek opened this issue Nov 21, 2023 · 9 comments
Closed

IKEA TRADFRI lights turning on when sending {"state": "OFF"} #19797

pbek opened this issue Nov 21, 2023 · 9 comments
Labels
problem Something isn't working stale Stale issues

Comments

@pbek
Copy link

pbek commented Nov 21, 2023

What happened?

Thanks a lot for this wonderful bridge!

I just found out that my IKEA TRADFRI lights are turning on when I send a {"state": "OFF"}. And they're still sending a state OFF when I do so.

I tried these two:

What did you expect to happen?

I expect that the lights stay off when I send {"state": "OFF"}.

How to reproduce it (minimal and precise)

  • Send {"state": "OFF"} via MQTT (I used Node-RED) to an IKEA TRADFRI light while it is off.
  • See that it turns on and not showing via state that it is on
  • Send {"state": "OFF"} again
  • See that it turns off
  • Send {"state": "OFF"} again
  • See that it turns on again

Zigbee2MQTT version

1.33.2 commit: 9996c93 (docker)

Adapter firmware version

20221226

Adapter

SONOFF Zigbee 3.0 USB Dongle

Debug log

info 2023-11-21 08:49:13MQTT publish: topic 'zigbee2mqtt/ikea-tradfri-light/05/dressing-room', payload '{"brightness":55,"color_mode":"color_temp","color_options":{"execute_if_off":false},"color_temp":403,"level_config":{"on_level":"previous"},"linkquality":72,"power_on_behavior":"off","state":"OFF","update":{"installed_version":50331664,"latest_version":50331664,"state":"idle"}}'
info 2023-11-21 08:49:14MQTT publish: topic 'zigbee2mqtt/ikea-tradfri-light/05/dressing-room', payload '{"brightness":55,"color_mode":"color_temp","color_options":{"execute_if_off":false},"color_temp":403,"level_config":{"on_level":"previous"},"linkquality":72,"power_on_behavior":"off","state":"OFF","update":{"installed_version":50331664,"latest_version":50331664,"state":"idle"}}'
info 2023-11-21 08:49:16MQTT publish: topic 'zigbee2mqtt/ikea-tradfri-light/05/dressing-room', payload '{"brightness":55,"color_mode":"color_temp","color_options":{"execute_if_off":false},"color_temp":403,"level_config":{"on_level":"previous"},"linkquality":72,"power_on_behavior":"off","state":"OFF","update":{"installed_version":50331664,"latest_version":50331664,"state":"idle"}}'
@pbek pbek added the problem Something isn't working label Nov 21, 2023
@pbek
Copy link
Author

pbek commented Nov 21, 2023

After finding a bulb where I couldn't reproduce this issue, I removed the two devices where I had the issue from zigbee2mqtt and joined them again. Afterward, I didn't have the issue anymore!

Should I close this issue, or is this something that still needs to be addressed?

@happosade
Copy link

happosade commented Feb 16, 2024

I'm having the same issue. I have LED2201G8 with firmware 3.0.10

I could try to get more logs if that's helpful, but if not, I'll try to remove and add bulbs again to see if that fixes the issue. I don't remember having the issue with previous firmware and I did upgrade the firmware with z2m, if that helps at all to figure out what might cause this bug.

E: I was able to find a difference with home assistant. If I just

service: light.turn_off
metadata: {}
data: {}
target:
  area_id: room

it works as expected, but having

service: light.turn_off
metadata: {}
data:
  transition: 5
target:
  area_id: room

makes the lights to be left on. Z2M still says that the bulbs are off

@whcrg
Copy link

whcrg commented Apr 14, 2024

I seem to have same problem with IKEA LED2201G8.
Not turning fully off, transition involved.
Everything updated to newest stable (home assistant, z2m) and bulbs reset and rejoined etc.

Need to try what happens without transition.

@pbek
Copy link
Author

pbek commented Apr 14, 2024

Maybe just remove the device and reconnect it, like I did.

@whcrg
Copy link

whcrg commented Apr 14, 2024

As clearly stated above, reset and rejoin not helping.

When transition is 2 seconds or less the bulbs seem to go off normally, with 3 seconds there is random behavior between going off or remaining on, with 4 seconds or more bulbs consistently remain on low brightness.

Exactly same behavior for both of this model bulbs I have. Firmware 3.0.10 and did same on previous out-of-the-box, whatever number it was.

Somewhere is a bug (firmware or z2m? Workaround possible if in firmware?)

@pbek
Copy link
Author

pbek commented Apr 14, 2024

As clearly stated above, reset and rejoin not helping.

Ah, sorry. I wasn't sure what you meant by "reset", because I only have a "reconfigure" button, and that didn't help. I removed the device completely and started the pairing process again by turning on/off the bulb 5 times. Furthermore, I then had to set the old name manually again too...

Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale Stale issues label Oct 12, 2024
@djurny
Copy link

djurny commented Oct 12, 2024

Hi there,
I had something similar with IKEA LED1924G9 bulbs. Turning the bulb off twice - sending an "OFF" to a bulb that's already off, would turn the bulb back ON.
Have a look at these issues that show similar effects:

To work around this, I check if the bulbs are OFF before turning the off in HASS. (I use scripts for all light controls.)

What also caused some issues in my setup, is mixing HASS light groups with Zigbee groups, in particular addressing lights individually in light groups while they were still part of a Zigbee group. Reason for ending up in that situation is that I did not properly dissolve the Zigbee groups before adding the individual bulbs to a light group.
End result there was lights unexpectedly turning on/off due to light group behaviour turning entire group on if one light is ON. (Little more to it than that, but that's more or less the gist of it.)

Groetjes,

@github-actions github-actions bot removed the stale Stale issues label Oct 13, 2024
Copy link
Contributor

github-actions bot commented Jan 2, 2025

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale Stale issues label Jan 2, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

4 participants