Condition and trigger help again.. :(


#1

1) Give a description of the problem
Mode change is not happening. I know this must have something to do with button being pushed as a trigger and the time as a condition but I thought I could get around that by changing the time condition to ALWAYS subscribed but apparently I’m still missing something in the trigger vs condition.

2) What is the expected behavior?
Change mode to night

3) What is happening/not happening?
Nothing happening

**4)

**5) Attach any logs +1ms
╔Received event [Home].time = 1512745800000 with a delay of -698ms
+103ms
║RunTime Analysis CS > 36ms > PS > 43ms > PE > 25ms > CE
+161ms
║Runtime (37994 bytes) successfully initialized in 43ms (v0.2.0ff.20171129) (159ms)
+162ms
║╔Execution stage started
+180ms
║║Condition #7 evaluated false (9ms)
+193ms
║║Comparison (time) 32999484 is_between (time) 33000000 … (time) 33120000 = true (9ms)
+195ms
║║Time restriction check passed
+197ms
║║Cancelling condition #10’s schedules…
+197ms
║║Condition #10 evaluated true (16ms)
+199ms
║║Cancelling statement #10’s schedules…
+205ms
║║Requesting time schedule wake up at Fri, Dec 8 2017 @ 9:12:00 AM CST
+207ms
║║Cancelling condition #1’s schedules…
+208ms
║║Condition group #1 evaluated true (state changed) (37ms)
+211ms
║║Cancelling statement #4’s schedules…
+290ms
║║Executed virtual command setLocationMode (75ms)
+294ms
║║Condition group #6 evaluated true (state did not change) (1ms)
+298ms
║║Condition group #9 evaluated true (state did not change) (1ms)
+301ms
║╚Execution stage complete. (139ms)
+303ms
║Setting up scheduled job for Fri, Dec 8 2017 @ 9:12:00 AM CST (in 120.395s)
+322ms
╚Event processed successfully (321ms))`


#2

It just doesn’t look right to me.
Shouldn’t it be.
IF
Blah blah.
THEN
Using location.
DO
Set location mode to night.

Also can you post the piston using the green camera with trace on.
This way the logs statement numbers will make sense.
EDIT:I use Time > happens daily at instead of time is between. Don’t think it will make much difference though.
EDIT 2:Looking at it again the location set mode is right as what I have said is how you do it not how it appears. Change to happens daily at and see what happens.


#3


#4

When in edit mode, click on the IF and delete it. That shouldn’t be there.
Both IFS
Edit. Also change to happens daily at.


#5

Cleaned it up and this works fine… very odd… I tried many different ways and couldn’t get it to work. Thanks so much!


#6

No problem.