Piston will not set Location Mode to Movie


#1

1) Give a description of the problem
Piston is based off of Robin’s “Setting Modes based on time of day and Presence” Piston and has been modified to remove some unneeded items and added my alarms switches to help determine modes. Currently I have six location modes: Home Day, Home Night, Away Day, Away Night, Asleep, and Movie. All modes appear to be working as expected except for movie. It appears my harmony activities do not refresh frequently enough causing the missed trigger for my “changes to” trigger for the movie mode portion of the piston.

I had to create a secondary piston to supplement this piston that refreshes my alarm switch status based off of the garage door opening or presence status. Once that piston was created all location modes except move function correctly.

My thought is that I will have to add a motion sensor and have any motion trigger a refresh of the harmony activities.

2) What is the expected behavior?
for location to be in movie mode when a harmony activity is started.

3) What is happening/not happening?
location mode is not being set to0 “movie”

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Because you continually add your next IF under an “Else” statement, every single IF enclosed in red needs to evaluate False for your piston to reach the condition for setting Movie mode.

Without knowing what these switches are, it’s hard for me to tell if it’s reasonable for all of them to do that.

Is that how you want it to run?


#3

That makes sense. It won’t ever run because the first if block should always evaluate true when I want the mode to switch to movie. Switch 11 is “alarm disarmed” status from my alarm.

Switch 9 is "armed away"
switch 10 is "armed stay"
All the switches in line 75 are harmony activities that i want to trigger location mode to movie. My end goal is to use this to deactivate motion sensors that turn on lights while watching a movie.

How can I have the mode change to movie while the first if block is always true when watching a movie?


#4

Anything you want to run independent of “alarm disarmed” status, just drag it outside that IF statement. You can have all your IF statements independent, they don’t have to be within each other.

When you’re in the edit screen, you’ll see

IF
THEN
ELSE

Click to add new statement

Drag any of your nested IF statements down to where the bold statement is, and you’ll see it become an independent statement.

If this isn’t clear, let me know and I’ll post an example. On my phone now and it’s hard to do.