Thank you for these instructions. I have 3 hue color bulbs connected to a Sonoff zigbee stick via ZHA. However, I dont seem to be able to successfully issue the “set” command, e.g. subsequent calls to “get” return the old value (“None”). Any clues?
When you’re entering the value are you matching the case of “On” and “Off”? I seem to remember this mattered
It is really a shame that this isn’t possible without using the hue bridge.
By chance I got hold of the following lamps from a German “quality light manufacturer” (even though these lights seemed to be bought in / are made in China…)… But they have this feature out of the box that after power loss (in my case using “normal” light switches ) they restore to the last set value. This really is a game changer in real world scenarios.
BEGA LED-Leuchtmittel · BEGA
Bega 13557 LED-Leuchtmittel für E27 2700K-6500K . - Tandmore.de
I actually followed @bowler instructions to the letter and it worked for all my Hue Lights. I also did these for a TRADFRI bulb E14W and worked like a charm.
One important note, for those that had an issue, which i found after a bit of experimentation.
After choosing the OnOff endpoint and select the start_up_on_off attribute, just write “off” to the value and then Set Zibgee Attribute button. If you click on Get Zibgee Attribute, which returns a value “StartUpOnOff.on” and just change the on to off, StartUpOnOff.Off, and click on set this does not work for some reason.
You wrote this 8 hours ago and I’m already appreciating it! Thanks for the pro tip man!
Any idea how you would do this if you’re using zigbee2mqtt instead of zha?
I’ve not tested this, but in searching for an answer using ZHA, I came across this somewhere:
Topic: zigbee2mqtt/FRIENDLY_NAME/set
Payload:
{
“hue_power_on_behavior”: “recover”
}
I’m guessing you can change the recover to on/off as well. I suppose the way to test if that might work, would be to try using the “get” topic and see what it returns?
Thanks it works well!
Wow! I really glad to found your conversation, but it seems that my ‘Fair’ lamp can not accept the command.
The lamp is: Hue White ambiance Fair ceiling light | Philips Hue
I tried all the possible way. With off
, with Off
immediately after the control panel and after I push [GET ZIGBEE ATTRIBUTE] button, but when I check-back the current value with [GET] button at the end, the result is always None
.
The problem could be maybe an old firmware? But if I’m right I can not upgrade it through Home Assistant’s ZHA. Because I do not/wil not have Hue Bridge maybe I simply can not do it. Official specs. says, that the lamp has Hue - Bluetooth connectivity also, so maybe I could try with the official Android application, but I’m fear that it could broke my current Zigbee association, what was a litt bit hard to set.
Any opinions maybe?
This was my first time digging into the Zigbee2MQTT dev console, but I managed to figure it out with the help of @bowler’s ZHA instructions above as a reference. Here are my steps:
- Navigate to the Hue device.
- Click the “Dev console” tab.
- Select “11” under the Endpoint dropdown (this was already selected by default for my device).
- Select “OnOff” under the Cluster dropdown.
- Select “startUpOnOff” under the Attribute dropdown. A “startUpOnOff” field will appear below.
- Enter “0” into the startUpOnOff field and click the Write button.
Thank you works like a charm.
Please help me a little bit. I don’t have dev console… How can i activate it?
Solved. Very old Zigbee2MQTT version. I added again the repository and update from 1.18 to 1.28.
Breaking change, need to repair and change automation.