-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support phillips hue power on behaviour #746
Comments
I think I've managed to get part of the way there. Looks like it requires changes in https://github.com/zigbeer/zcl-id/blob/master/definitions/cluster_defs.json to add the following to 'genOnOff' to 'genLevelControl' then in zigbee-shepherd-converters something like
To all hue bulbs. Unfortunately after doing this I get an error that z2mqtt failed to configure the lights, and I cant see any more debug information, even when running with debug log level and the DEBUG environment variable |
Instead of adding it to Please checkout https://github.com/Koenkk/zigbee-shepherd-converters/tree/hue_power_behaviour You should be able to control the power on by sending to
Let me know if this works, if so, I can refactor zigbee-shepherd-converters so that you only have to send |
Didnt appear to work
|
I don't understand why this error is thrown, are you on the latest (clean) dev branch? |
I'll try again with the entire branch , I just replaced the two files in
that branch that we're changed from the master branch
…On Fri, 28 Dec. 2018, 5:33 am Koen Kanters ***@***.*** wrote:
I don't understand why this error is thrown, are you on the latest (clean)
dev branch?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#746 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDKbdEISV13wVZwADj0j1DIb1fK1KbHks5u9SBtgaJpZM4ZfYuf>
.
|
@Koenkk Tried it again on a clean rapsberry pi with the full dev branch
I also manually modified the package.json to change the following
Taking a quick look at toZigbee.js in converts it appeared to have the power on change so I assume this was correct |
Just figured it out! It was the comment in the json that was causing the issue, will test it now |
@Koenkk success, tested with recover and off and both worked as expected |
Great! Do you also have color or color temperature bulbs? If yes, can you check if that is also recovered? |
I'll give it a go
…On Fri, 28 Dec. 2018, 6:29 pm Koen Kanters ***@***.*** wrote:
Great! Do you also have color or color temperature bulbs? If yes, can you
check if that is also recovered?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#746 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDKbTjcBhJQ0kqbZrP8ITzwoFr7Sk8eks5u9dZNgaJpZM4ZfYuf>
.
|
Brightness if maintained but not colour, I'll have to pull out the sniffer again and see if something different is sent for the colour retention |
Also just a note along with comments it doesnt like a trailing comma on the final attribute |
And what is send for the normal behaviour? |
This worked for me to set the power-on behavior.
|
@Chrischi- great, could you make a pr? |
@Koenkk if you switch on the behavior, you should have the possibility to set |
I don't think that these converters should be merged together, they each serve a different purpose. Could you prefix the keys with Ofcourse all the attributes can be set using 1 MQTT message: {
"hue_power_on_behavior": "on",
"hue_power_on_level": 200,
"hue_power_on_color_temperature": 300
} |
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. |
Also work right in Tuya, Tadfradi or Sonoff lights???? |
Hi, I'm trying to set this option and it'is not working, these are the details:
When I cut the power to the bulb and I restore it again it turns on. |
recover - lamps on after power loss with last state |
I want to recover or power off the bulbs when the power is restored but I when I send the command I can't see nothing on the log and it is not activating the option on the bulb |
@victoriano95 after upgrading my bulb yesterday with the experimental hue update support. And indeed, there is no logging for the command. |
Can you explain me what commands are you sending and what is the correct mqtt toppic? I have tried to leave the bulb a few minutes unplugged and it's still on when the power is recovered. |
In my case it was {
"hue_power_on_behavior": "recover"
} to But also pay attemtion to
|
When you send this command the bulb turns off? it's ok the comma?
I'm sending the same command at the correct toppic, when I send it without comma it's not any output at the log and when I send it with the comma this is the output: |
The comma was an error, I correct it above. When I sent it there was no response in the logs. That is normal. I then turned off the bulb, cut the power to the bulb for 15sec and when I restored the power the bulb remained of. I then turned on the bulb, cut the power to the bulb for 15sec and when I restored the power the bulb turned on again... so I think it is working. |
@sjorge Thanks, the problem was my zigbee2mqtt version, I have updated it and it works fine. |
Is there a way to set this using the web interface ? If not it's not very clear how to inject messages in the MQTT ? ('m using home assistant with the embedded mosquitto) |
Just went through this myself. I'm using Home Assistant in a docker container, so apologies if anything is different for HA OS or others, but you should be able to go to your Integrations page in Home Assistant and click on Configure for the MQTT integration. Then there are only a few things on the screen including "Publish a packet." Put in the topic as discussed above zigbee2mqtt/FRIENDLYNAME/set. And then put in the payload below that (see above for options). There isn't any feedback once you click Publish, so to confirm your command reached zigbee2mqtt, you might go to your Zigbee2MQTT interface and open the log and choose debug as log level before publishing the command. If you did it right, the command will appear in the log under debug (and only under debug). |
In the latest hue light firmware (SW 1.46.13_r26312) support has been added for allowing the bulb to return to its previous state after a power outage.
I've capture the zigbee traffic when setting a bulb to have the option and the following is the dump.
Can we add support for specifying this.
Setting it to Power loss recovery (last used colour and brightness) generates the following two packets
Setting it to off (light always powers on with warm white full brightness) generates the following two packets
The text was updated successfully, but these errors were encountered: