[Resolved] Determining if button is pushed
-
MSR latest-23010-7dd2c9e9 in a Docker image
HE C7 hub on 2.3.4.130I'm trying to determine how to sense that a button has actually been pushed. I added a ThirdReality button to my hub and the current states don't release or reset after a function has been done. I/E: when I push the button, it sets the "pushed" state to 1. Same for all the other functions, double tap, hold, release. Nothing ever goes back to 0 or cleared out.
If I write my trigger as when "button.pushed" == 1, the current value is already one and the rule stays true all the time. What I'm after is when the button is pushed, the action will toggle the light I want to control.
I feel like I am missing something or maybe the States of the button are the issue. I can use Rule Machine in my HE and it sees the button as pushed, or held. But I would prefer to have all my logic in MSR.
And for some reason, I cannot post images. The server keeps giving me a parsing error.
-
Image of Trigger:
https://www.mediafire.com/view/5t8ow66b7df1qqn/trigger.jpg/fileImage of Entity:
https://www.mediafire.com/view/b8q0a6aconesm27/entity.jpg/file -
Image of Trigger:
https://www.mediafire.com/view/5t8ow66b7df1qqn/trigger.jpg/fileImage of Entity:
https://www.mediafire.com/view/b8q0a6aconesm27/entity.jpg/file@3rdStng I do not have the same device but I had to overcome this with my minimotes. Have you tried to set the x_hubitat_pushableButton.push back to 0 after your intended reaction. I cannot post images either for some reason or I would post an image of my Rule.
-
Image of Trigger:
https://www.mediafire.com/view/5t8ow66b7df1qqn/trigger.jpg/fileImage of Entity:
https://www.mediafire.com/view/b8q0a6aconesm27/entity.jpg/file@3rdStng the button capability has a 'since' value. You add a condition to sense when it changes.
-
@3rdStng I do not have the same device but I had to overcome this with my minimotes. Have you tried to set the x_hubitat_pushableButton.push back to 0 after your intended reaction. I cannot post images either for some reason or I would post an image of my Rule.
@SweetGenius Thank you for the screenshot. I was trying to see if there was a way to "set" the value back to zero. I didn't even think about pushing button zero in my actions.
-
T toggledbits locked this topic on