Garage Door Open Alert
Use with Domoticz
This script monitors the state of the garage door and alerts the user if it remains open for more than 10 minutes. Notifications are sent to the AWTRIX3 smart pixel clock and optionally through the Domoticz app or email for immediate awareness, enhancing
- Topic
- Smarthome
- Includes
- Flow
Runs on
- Does not run on 32×8 (TC001 & DIY) Made for AWTRIX 3.
- Does not run on 52×16 (TC002) Made for AWTRIX 3.
- Runs on 32×8 with AWTRIX 3 (TC001 & DIY)
Flow description
🔄 Activation and Scope:
- The script is active, as indicated by
active = true. - It runs every minute, as specified by the timer configuration (
timer = { 'every minute' }). - The script specifically monitors the device named 'Garage door' for its state and last update time.
📝 Logging:
- The script logs informational and warning messages with a marker labeled
"AWTRIX3_GARAGE_DOOR". - Logging level is set to
domoticz.LOG_INFO, ensuring relevant actions and checks are recorded for troubleshooting or monitoring.
⚙️ Execution Logic:
-
Garage Door State Check:
- The script checks if the 'Garage door' device state is
'Open'.
- The script checks if the 'Garage door' device state is
-
Time Condition:
-
If the garage door has been open for more than 10 minutes (
garageDoor.lastUpdate.minutesAgo > 10), the following actions are triggered:-
Log a Warning: A warning message is logged, indicating the garage door has been open for over 10 minutes.
-
AWTRIX3 Notification:
- A JSON payload is created with the text "Garage OPEN!" and an associated icon (
50087). - The payload is sent to the 'AWTRIX3 - Send Notification' device to display the alert on the AWTRIX3 smart pixel clock.
- If the AWTRIX3 notification device is not found, an error message is logged.
- A JSON payload is created with the text "Garage OPEN!" and an associated icon (
-
Optional Domoticz Notification:
- A high-priority notification is sent via the Domoticz app or email, informing the user that the garage door has been open for more than 10 minutes.
-
-
🔌 Purpose:
This script is designed to enhance home security by notifying the user when the garage door has been left open for an extended period. It integrates with the AWTRIX3 display for a visual alert and optionally uses Domoticz notifications for immediate awareness. This ensures timely action can be taken to secure the property.
More information:
- Domoticz: www.domoticz.com
- Domoticz AWTRIX3 Plugin: GitHub Repository
Sign in to view and copy the code of this flow.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.