All,
I've got a Litter robot rule based on one I found here. My code is:
set triggerTime to now() in seconds
Wait for event: Sully's LR Contact Sensor closed
set elapsedTime to now() in seconds
Set elapsedTime to (elapsedTime - triggerTime)
IF (Variable elapsedTime(89.184) >= 20.0(T) [TRUE]) THEN
Notify BPhone and Speak on Master Room Smart Clock: 'Sully's Litter Robot has been cleaned.'
resetDrawerGauge() on Sully’s LR
Delay 0:00:05
refresh() on Sully’s LR
Delay 0:00:05
Run Actions: Sully Litter Robot Full
ELSE
Notify BPhone and Speak on Master Room Smart Clock: 'Someone peeked at Sully's Litter Robot, but didn't clean it.'
END-IF
My question is, for the custom action to be the equivalent of clicking the "resetDrawerGauge" button on the device page, as well as the "refresh" button on same, I'm not sure what I need to select for the "Select capability of action device."
Would it be a button? A switch? I had it as an actuator and it didn't fire. The code itself doesn't seem to change.
If that’s not clear, post back and I’ll try to walk you through it. Rule Machine’s interface is a bit confusing the first few times. Just remember that you have to properly end each of the editing steps, Update Rule, and “Done” out of everything rather than closing the browser tab or hitting the back button in the browser.
Otherwise, it’s easy to end up with a corrupted rule.
It wouldn't let me include a link or a screen shot.
I did have the type set to actuator and it still didn't actuate after my rule ran. I had to hit it manually. I've re-edited those two steps and will see if it triggers on my next shot...I don't know why it wouldn't be triggering, nor why it won't let me add screen shots to my posts...is it a newb account limitation?
Yes, it’s to prevent spammers from posting. @gopher.ny should be able to adjust your settings, hopefully, tagging him will get it done. Otherwise, you just need to spend some time reading in the forum.
Hard to tell why it’s not triggering. What do you have set as triggers? Perhaps you could PM me a screenshot showing the triggers and the rule, and I will post what you send. Use the curved arrow in upper left as you reply, but send as message, not reply to topic and not reply to linked topic.
This is looking sad. Seems that you can’t even attach screenshots in PMs. @gopher.ny, can you please adjust @Bear’s settings so he can post a screenshot so I can help him troubleshoot his rule?
Ok, @gopher.ny and @bobbyD, we have been troubleshooting this by email (@Bear can’t post screenshots or links to screenshots, not even in PMs, because he is a new user). Would really be nice if you could adjust his account privileges.