Jump to content

HA Automation /Scripting Help Request


Recommended Posts

Posted

I know my question is not really ISY/HA integration related but this group of users is usually very helpful.  

Let me exain what I am trying to do and maybe someone can help me or point to the right location to ask the question. Hers is what I want to do:

1.  Send an actionable notification "Garage Door Open) with 2 options: a) Close the garage door and b) snooze for a predetermined period of time. 

2.  If the user selects close door, close the door and the script is done. 

3. I'd the user selects sleep then sleep the alert for a set period of time or until a set TOD. 

4.  If the user does nothing repeat the alert ever X minutes.  After 5 attempts change alert to a critical alert.  

This is for and iOS companion app. I have #1 complete. And I can wait for the response and evaluate it. What I am stuggli g with is the execution of said response and the counting/looping required to keep it going. My though was a variable that increments each time the alert is sent and after X alerts then change alert type. Similarly calculate the required snooze to time at initiation and store that. Then use that time if the user replies to snooze. 

I really don't understand variables in HA. So that is my major stumbling block. 

Hope this makes sense. Thank for any help anyone can provide.

 

Jeff

 

Guest
This topic is now closed to further replies.

×
×
  • Create New...