I'm using rule machine to make a conditional trigger on a local endpoint. If the door is locked, unlock the door. If the rule is set to work with an unconditional trigger hitting the end point unlocks the door as expected. If I set a condition on the door being locked it doesn't seem like the end point is even responsive. Either I don't understand something or there is a bug.
My ultimate goal is to make two triggers one to unlock the door and one to unlock the door, but have it conditionally trigger on the state of the door. The two endpoints for the two cases are triggered by a fingerprint reader and then depending on the state of the door would be locked or unlocked.
Does your lock accurately report states, as seen in "Current States" on the device detail page? That's a likely culprit, and necessary to rule out as a problem, for any automation you write that depends on these states.
If that all looks good, enable all logging for the rule. Then, look at the output of Logs, filtered to just this rule and perhaps the lock too, to find clues.
Sharing a screenshot of your rule and the above logs here may also help others get ideas if nothing stands out to you.
2 Likes
Conditional triggers don't work for endpoint triggers. You would need to test the condition in the rule's actions. Either the UI should be fixed to disallow a Condition for an endpoint trigger, or the Condition should be tested as you expect. In the meantime, the condition is ignored.
Looking at the code for this, I suspect the trigger may just fail when there is a Condition.
This problem will be fixed in the next release, currently in beta.
6 Likes
Thanks bertabcd1234 and bravenel. I appreciate your help looking into this!
Just so I understand, in the next release a local endpoint trigger will work with a condition? or the ui will not allow it?
Is there somewhere I can subscribe to new updates news?
thanks again!
Yes, as it should. UI stays as is. You can join our beta if you want this fix sooner. The next beta release will come out early this week.
1 Like