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
Zbmini Power On mode #5901
Comments
I don't own the device, but we can try to see if it support the genOnoff startup state.... Update devices.js entry to this.
|
@sjorge thank you for the suggestion. I have a problem with my rpi at the moment. I am trying to get it replaced. Will try soon as I can. But really appreciate the prompt response and suggestion. Thank you! |
@sjorge - sorry about the delay. I tried this but got the error below and zigbee2mqtt would not start
|
What version are you running? I remember presets being switched to functions recently ish, so it might be that the version is too old. |
@sjorge : using the docker version - I presume it is the latest 1.17.1 PS: firmware version is CC2652R_20210120 (using zzh! stick) |
Are you sure you are on 1.17.1? That was release 2 days ago and should definitely be new enough. |
Yes. I set this up just yesterday to try what you suggested. This is what I see:
Let me try again to insert those lines. |
I tried again and this time I had no error! Sorry about that. Now what am I looking for to confirm this made it through @sjorge ? Also, how can I tell if it supports the genOnoff startup status? |
@sjorge does not seem to be supported:
|
Yeah if you get UNSUPPORTED_ATTRIBUTE, it's not support :( I double checked the post you linked, https://github.com/Koenkk/zigbee-herdsman/blob/32cbbcc0a299b81a3b3d2628c5563d9e64dcba0e/src/zcl/definition/cluster.ts#L446 is what power_on_behavior is writing. (16387 decima is 0x4003 in hex) |
@sjorge yes - it does look like it is implemented but it does not work. Does that mean that this is a bug? or is the original link I sent wrong? |
z2m is writing the correct attribute, but the device is saying, no, I don't do that. So the screenshot might be wrong, or it could be readonly instead of rw... hard to say. |
Ok - thanks @sjorge. Is there anyway I can write a nodered rule which picks up that a device booted up and set it to power on? Is there some way I can get the "powered up" status ? Again, thanks for the help and for explaining things. Much appreciate it. |
I think you can trigger a read of 'state' if z2m publishes to |
Ok - will check that. I just saw one more screenshot. Here also, 0x4003 shows as rw: |
@sjorge what topic(s) will these show up on? I am not able to spot any message (reliably) to detect device power-on |
They get published to Then I have a different node that subscribes to |
thanks for the detailed explanation @sjorge - much appreciate it! |
I am trying this, but it looks like there will be a delay to the extent of availability_timeout - is that correct? I thought this will generate too much traffic and limited it to 60s and the specific device. Is it ok to set a time of say 1s ? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Is your feature request related to a problem? Please describe
When the zbmini powers on, it is by default set to off. This is frustrating if there is a power cut. Or if you want to toggle the power state via a wall switch.
Describe the solution you'd like
Option to set the power state of switches when they boot-up / power on
Describe alternatives you've considered
Node Red rule to set the state. But this creates dependency on one more service and I would prefer that this be localised to the zigbee stack to cut out external dependencies
Additional context
I am not sure if zbmini supports PowerOn OnOff - as per this link it appears to but cant get it to work
The text was updated successfully, but these errors were encountered: