I have several Rule Machine rules for the master bathroom dimmer to try to not blind myself at night. Basically I want, between sunrise+30 and sunset-30 (daytime), go to level 40 when button 1 (top) is pressed. Between sunset-30 and sunrise+30 (night time), go to level 1 when button 1 is pressed. When button 2 is pressed, go to level 1 and then go to off (just in case the dimmer remembers its setting and turns on before talking to HE). Go to 99 when button 1 is double tapped.
The double tap and the button 2 presses seem to work well. The problem today (and today is really my first day to test) is it only went to level 1 at 9am. Checking the rules it looks like it thinks it's still between sunset and sunrise (night)? The screen shot didn't capture the top of the screen, but the picture was taken at 9:17am -- definitely the sun is up, even here in MN.
You have shown the 'managed conditions' section.
Are you actually using these in your rule actions/triggers.
Consider Managed Conditions to be a repository where you can define/edit/delete conditions but you need to actually use these in your rule for them to do anything.
Maybe show a screen shot of all your rule to give a better idea of what is going on.
From what you are showing you are not actually using the managed conditions you defined in your action section as an expression so they will be totally ignored.
Maybe something like (I do not use RM anymore but here goes)......
TRIGGER
Button 1 pressed
ACTIONS
IF
Button 1 pressed
THEN
IF
Time is between aaa and bbb.
THEN
Set dimmer to xxxx
ELSE-IF
Time is between ccc and ddd.
THEN
Set dimmer to yyyy.
END-IF
END-IF
You can write 2 more rules for your other actions or try to integrate them into this rule.
Your choice.
I hope this all makes sense.
There is a tutorial about somewhere for RM which might be worth a read.
Good luck.
However, as you can see, it still thinks it's not daytime. Is there a "confused" emoji?
I'm going to add an else clause to consolidate the night time and day time rules into one, but I feel like this shows the real problem -- it think it's night time...
Between sunrise and sunset is daytime. It's currently daytime. Why does the expression result return false? Either this is a bug, or I've totally been programming wrong for the last 25 years, and I think I would have noticed that by now...
Maybe do a backup and then do a reboot in case something got screwed in your hub.
Not sure what else it could be. You've already confirmed your location settings are correct.
BTW I'm on the latest firmware so I don't think it could be a general bug.
A little aside from your question, but have you considered doing this simply using the Button Controller App instead of Rule Machine. I use Button Controller-5.1 to achieve similar functionality using mode-based dimming.
I had originally done it with the Button Controller, but I wasn't sure if that was the right place to do it and since I already had other Rule Machine rules I deleted it from BC and redid it in RM. I swear the times showed correctly as TRUE and FALSE when I was working with them yesterday in BC.
Six of one half-dozen of another? Or does Button Controller give some extra functionality?