BamBamF16 Posted February 9, 2023 Posted February 9, 2023 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
shbatm Posted February 10, 2023 Posted February 10, 2023 Can't help much, but here's a couple links to get you in the right direction: https://companion.home-assistant.io/docs/notifications/actionable-notifications/#building-notification-action-scripts https://community.home-assistant.io/t/actionable-notifications-howto-and-examples/416738/4
BamBamF16 Posted February 12, 2023 Author Posted February 12, 2023 Thank you for the ideas. I have the creation of actionable notifications working. It's more the variables and scripting I need a hand with.
Recommended Posts