osram_remember_state not working - AC03641
Bug Report
What happened
the Osram bulb turn on everytime after a power cycle bulb type AC03641 - OSRAM LIGHTIFY LED Classic A60 clear
What did you expect to happen
the bulb should stay off, if it is set to "off" before the power cycle (and the "osram_remember_state" parameter is set to true)
How to reproduce it (minimal and precise)
send the following json the the device:
{
"state": "OFF",
"osram_remember_state": true
}
cut the power to the bulb and reconnect -> bulb is glowing
Debug Info
zigbee2mqtt version: 1.10.0
CC253X firmware version:
Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190619}}'
Could somebody please confirm or deny this behavior?
I have this too. I set my osram light to off. when actually removing power from it and turning it back on, it turns on with brightness of 1 instead of 0
@copystring : Thanks for your feedback! So this problem is related to the bulb (AC03641) or it's firmware? I wonder if it's working for anyone, cause if not, it should be mentioned on the "supported devices page"...
Same for me with AC03642
I doubt if all Osram devices support this (it seems not)
https://www.zigbee2mqtt.io/devices/4052899926158.html is mine. It does seem to support it. However it remembers brightness of 1 instead of 0 which makes the light turn on after powering it. Setting it to 255/on is remembered correctly
@copystring isn't brightness 0 mapped to off in most firmwares? I remmeber my trΓ₯dfri bulbs doing that atleast.
This is what I think. brightness 0 = off. So setting it to 0 and removing power from the bulb and then powering it again makes it have brightness 1.
So maybe "osram_remember_brightness" would be a better name for the parameter...
If somebody is interested, i have a workaround (using tradfri gu10 spots):
They also remember the transition time. So if you set the transition time to min. 3 seconds before cutting the power, it is possible to turn them off before they shine, if power is restored. I had to enable "availability" in zigbee2mqtt and made a simple node-red flow, which sends the turn off command, as soon as a light goes "online".
Maybe this could also be done directly in zigbee2mqtt with some configuration settings?
So I created this log and filtered it by the lamp with the issue described above. First I made sure the light is in the OFF state with brightness of 0. Then removed power of it for 5 seconds and returned power. Light is then in the ON state with brightness of 1.
Making the light have a brightness of 250 is remembered correctly.
Here is the log. I added two lines where I turned the lights off and on after 5 seconds.
https://pastebin.com/N2w8vgJX
@Koenkk would it be possible for you to have a look at this? Do you need more info? It seems osram remember state works but not the on/off state.
Edit: It also does not seem to remeber color_temp.
@copystring I cannot contribute much here ATM as I don't have Osram bulbs. To fix this sniffing should be done with the original gateway.
@qosmio since you originally implemented this, could you maybe help with this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Same here, AC03641 always turns back on after a power loss.
Sorry all, I've been away from my development machine for a while. I'll take a look at this in the next coming days.
On May 31, 2020, at 9:51 AM, Nephiel [email protected] wrote:
ο»Ώ Same here, AC03641 always turns back on after a power loss.
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
OK, just read the bug report a little more closely. I'm not sure I actually ever tested with a brightness setting of "0" and have it retain that after power loss. Are you able to confirm if this is capable with the Osram supplied gateway?
A little difficult to test right now as I don't have a spare Osram bulb to tinker with (all being used in groups and linked with HA). As others have stated, I do believe it's the default behavior of the Osram bulbs and many other bulbs to return to their brightness states only if > 0.
So maybe "osram_remember_brightness" would be a better name for the parameter...
@M0ebiu5 : My RGBW BR30 and RGBW A19 bulbs both remember brightness, color_temp, and xy color attributes. I know "STATE" in regards to Z2M and lightbulbs is ON/OFF, but it's a pretty general term to encompass all the attributes (minus being ON/OFF in this instance).
Edit: It also does not seem to remeber color_temp.
@copystring I'm not sure that applies, you said your lightbulb was this one? https://www.zigbee2mqtt.io/devices/4052899926158.html it's brightness and on/off only.
@qosmio I have that one too but have not tried it with this one (like you said it does not support it) I tried it with this one just now to confirm the problem: https://www.zigbee2mqtt.io/devices/AC03645.html The problem persists.
@copystring ah ok that bulb wasn't mentioned. I'm not sure what I could do there, don't have that bulb and sadly isn't sold in the states (at least US Amazon). I will say though, I DO remember before moving these bulbs to Z2M I had to update the firmware of my A19s to utilize the "remember" feature.
Have you already made sure you've updated all your Osram devices through the vendor gateway? I know Z2M supports OTA but it isn't 100% coverage ATM. And again, before confirming if it is in fact a bug, we'd need to know if the capability for it exists with vendor's gateway.
Not sure if it is related to the bulb. None of my Osram bulbs remember the brightness. Yes. I was one of the first people to try the new OTA feature and updated all my bulbs to the latest firmware.