Door left open piston needs help


#1

I’m trying to setup a simple piston that sends me a text message if a door has been left open for 5 minutes.

I’m not able to get two things working

  1. I’m not able to figure out how to add the time variable. So as it stands now, I get a text message saying the door has been open as soon as its open. I want to add the five minute variable but not sure how.
  2. I’m not able to get the specific door included in the text message so as of now, the text says “(DoorList) is open”

Below is my piston.


#2

Add a second device variable ‘openDoors’ with no value assigned. Then in your if, save matching values to ‘openDoors’ and use that in your message.


#3

guxdude, thanks for the response. The text message now says “openDoors is open”


#4

and for the time, I blieve you need to use $time.


#5

If you are using the value box to enter the string, you need to put {} (not in quotes) around the variables for them to be evaluated.

should look like this:

{openDoors} is open

And don’t forget to add the option to save matching devices into ‘openDoors’ on your if condition.


#6

as @guxdude recommended,
you need to SAVE open door list into your new variable.

i wrote a simple draft (haven’t tested though but it should work)


#7

Many thanks, it now shows the correct door.
For the second part, I want it to send the message when the door has been open for X number of minutes, not the timestamps of when the door was open.


#8

just change ‘is open’ to ‘stays open for X minutes’.


#9

Thanks for the help guys! Its working beautifully!