Skip to content
AWTRIX FLOWS
Submit flow
Garage Door Open Alert shown on an AWTRIX display
Domoticz Smarthome AWTRIX 3

Garage Door Open Alert

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

Built by Galadril

Download flow

Published 16 January 2025 · 2 downloads

🔄 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:

  1. Garage Door State Check:

    • The script checks if the 'Garage door' device state is 'Open'.
  2. 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.
      • 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:

More like this Domoticz Smarthome AWTRIX 3