Alert with Rule Machine

I'm trying to replicate an alert in RM that I had in ST with Webcore.

Send an alert if the Contact is Opened and the Variable is False, then set the Variable to True, so no more alerts are sent until the variable is reset to False at 2am.

  • Set variable to True when contact is opened
  • Set variable to False at 2am each night

I think Private Boolean will work, but it appears I can only set it as True based on a delay of minutes, not the time of day.

Here's what I have:

Any ideas how I can do this?

How about making another rule (define it as a trigger for 'certain time' set to 2:00AM); when you configure it (set rule boolean) make it 'Set private boolean' of 'other rule' and choose your original rule which is monitoring the contact.

The alert isn't working, looking for help. I'm sure it's something simple since this is about as easy as a routine could be. I want an alert when the door is opened for the first time after 2am and then not alert again if it's opened again.

This resets the boolean each night at 2am.
Untitled1

You didn't say it so I have to ask: Did you try triggering the rule with the boolean set to true (i.e, after 2:00AM?)
The alert rule in the screenshot you posted won't trigger since the boolean is false.

The screenshots were taken this evening after everything was setup on Saturday. So, it's had two 2am's for the reset rule and today the mail was delivered early afternoon and then I opened it again to get the mail around 6pm.

I'm guessing that I have the boolean setup wrong, but after reading the RM guide several times I just don't get it.

We need a RM sample thread, so I can copy other people rules. :grin:

When you look at the rule, it shows you in brackets the current state of the private boolean as it relates to the true/false condition you specify. Since (as I recall) the private boolean initially is set to true when you create a rule, your rule must have triggered and properly executed the 'set boolean false' action since the screen shot is showing its current state is false. I think your rule is triggering ok; the only issue to be solved is why you're not getting the text message. You can add some other action (like turning on a light or whatever) to verify this.

I didn't even know how to tell the state of the boolean, thanks for that info! I'll see if I can get it to do something other than send SMS.

The rule is setup right and it worked today. I think yesterday the HE was in a weird state because of a very brief power outage in the morning. The power outage turned on the Hue bulbs to 100% in both nightstand lamps, awesome way to wake up at 4:30am!! :slight_smile:

Those bulbs are getting replaced with Caseta Lamp dimmers soon! Anyone want a deal on some Hue bulbs?! :grin:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.