I have a motion detector that controls lights with a simple script: when sensor senses motion, if time is between x and y hours, activate lighting scene.
I would also like to have the motion detector send me a push notification as follows: when motion sensor senses motion, if 'Out-of-House' is true, send push notification.
My problems are several fold:
I am not able to get action statements to nest. usually, these are indented under an if statement. I can drag the action statement to the if statement, get a yellow highlight, and get either a down arrow or right arrow. However, no indent.
Second, the support technicians don't support Composer (the one I talked to), and was unsure if multiple conditional statements are allowed in scripts.
I would expect something like this:
When sensor senses motion
if time is between x and y hours
activate lighting scene.
if 'Out-of-House' is true
send push notification.
Ignoring the inability to nest, would this operate such that it evaluates the first if statement and takes action if appropriate, and then go to the next if statement and take action if appropriate?
Or is it illegal to have multiple if statements?
Any ideas on the nesting issue? are there keyboard commands, like holding the option key, etc, that would make the nest?
Any recommendations are appreciated.