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
Rules fail to fire with conditions on DDF devices #6169
Comments
Another example of a rule which is not triggered on motion: https://gist.github.com/Thomas-Vos/c8d9029aee793cc43926ffba8696e818 |
Here's the ZHALightLevel:
Both with DDF and legacy code, the web socket notification includes the change to
|
What's remarkable that I previsouly also had issues with the rules (on the frient MOSZB-140), but haven't noticed since I had a double bottom in my automation system. The last fix in this regard made it work again, w/o double bottom. Below my rule
|
I think a |
Is this the same as #6149 ? A rule based on the |
I think it is. There seems to be a DDF for |
The last few months I had issues with rules not firing for my Aqara multi sensor ( Today I tried changing the DDF status to Draft, just like Erik did in the issue. Now they work again! So it looks like this issue does also affect other types of DDF devices. |
It would be nice to see this fixed. Just created a rule in hue essentials to have a Philips sensor switch on lights when movement is detected while it is dark, and the rule does not work. |
Also my rules created in Hue Essentials coming from aqara motion sensor doesn't fire. Also after recreation of the rules. Looking forward to an fix. |
I Have the same issue, solution for now is to set the DDF status of the motion sensor to draft. |
What I did: Copied the file for my sensor from /usr/share/deCONZ/devices/philips to /home/pi/.local/share/dresden-elektronik/deCONZ/devices. Renamed the copied file (added suffix _DRAFT). Opened the file (right click sensor in deCONZ, edit DDF, File -> Open). Edited the file, changing the status to draft, and then save it using File -> Save. Then chose File -> Hot reload. Had an involuntary reboot a few days ago, due to a short power blackout, and my settings survived the reboot. HTH See here: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet
|
Yes seems like the same issue, do note that it was working in 2.15.02, after my upgrade to 2.17.00 I tried reverting to each minor version until everything was working again. However I cannot confirm if this error is also caused by the "dx" condition. Updating the DDF status to Draft does not resolve the issue in my setup. |
Will this be fixed in the next release? I tried the latest beta but the problem still persists. |
Asked @manup to check in. |
Assigned to v2.18.1-beta, I'm looking at it in the debugger it's a bit fiddly. |
The events where fired fine, but Event::num() wasn't set which is used by some operators. The change uses the Event constructor which extracts the `num` value from the ResourceItem. Fixes: dresden-elektronik#6169
Describe the bug
Some rules don't fire, when conditions are based on attributes of devices exposed through DDFs. After changing the DDF status from Gold to Draft, the rules fire again.
Steps to reproduce the behavior
I noticed this for the Hue motion sensor, where I have a rule with:
It seems like the
dx
condition onpresence
isn't firing.Expected behavior
Rules should work independent of how device is exposed (through legacy C++ code or through DDF).
Screenshots
n/a
Environment
deCONZ Logs
Additional context
I'm not exactly sure what's going on. I think some rules that should be triggered by
daylight
ordark
are failing as well (also Hue motion sensor). It would seem the web socket events are issued alright.The text was updated successfully, but these errors were encountered: