Right now, if a garage is left open, I get a generic message. What I’m attempting to accomplish is for the message to be dynamic and tell me via the push notification, WHICH garage door was left open. I know there are $device, $currentDevice but I’m not sure which, if any, are dynamic that will list the name of the sensor which is causing the piston to be true.
Put devices into one statement and choose any of the devices.
When you are in the window to select the devices go into settings and click on save matching devices to a variable.
You can then specify the variable in your push notification.
Do you need an example or do you want to try yourself.
Posted one anyway.
When you look at the dashboard you can see all your pistons listed.
You will see that they are either true or false.
That line changes it to display what you want.
At the top of the piston you will see Disable Automatic Piston State.
This has to be done for it to work.
If both doors are open then both get written into the variable.
What I would do is change the piston from an IF to a WHILE. Then delete the last task.
That way while the piston is true it will just keep cycling round.
Just a bit cleaner in my opinion.
Shouldn’t matter though.
EDIT : This is what I was talking about for automatic piston state.