Skip to content
AWTRIX Flows
Submit flow
Set Overlay on Weather shown on an AWTRIX display
Fig. 1 Set Overlay on Weather, as Galadril runs it.

Set Overlay on Weather

Automate setting the overlay based on the weather.

Specifications
System Domoticz
Firmware AWTRIX 3
Topic Smarthome
Built by Galadril
File RJM9ALL6ALzX.json · 3.7 KB
Icons
Published 2 Jan 2025 · updated 2 Jan 2025
Downloads 4
Download flow

🔄 Activation and Timing:

  • The script is marked as active by active = true.

  • It executes every 1 minute as specified in the trigger section timer = {'every 1 minutes'}.

  1. 📝 Logging:

    • Logs are generated with the marker "AWTRIX3_OVERLAY" to identify entries related to this script.

    • The logging level is set to domoticz.LOG_INFO, ensuring that informational messages are captured.

  2. ☁️ Weather Data Acquisition:

    • Checks if the "AWTRIX3 - Power" device is "On". If not, the script stops execution.

    • Retrieves weather information from the "Outside Weather" device.

    • Logs the current temperature and weather forecast if available. Logs an error if data is missing.

  3. ⚙️ Overlay Setting Logic:

    • Determines the overlay level based on weather forecast conditions:

      • Snow ❄️: Sets overlay level to 10.

      • Rain 🌧️: Sets overlay level to 20.

      • Drizzle 🌦️: Sets overlay level to 30.

      • Storm 🌩️: Sets overlay level to 40.

      • Thunder 🌩️: Sets overlay level to 50.

      • Frost ❄️ (Temperature < 0°C): Sets overlay level to 60.

      • Clear 🌞: Sets overlay level to 0.

    • Logs the determined condition and selected overlay level for informational purposes.

  4. 🎚️ Overlay Adjustment:

    • Fetches the "AWTRIX3 - Overlay" selector device.

    • Sets the overlay level on the device if it differs from the current setting.

    • Logs any changes made to the overlay level.

🏁 Purpose: This script synchronizes the AWTRIX3 clock overlay with real-time weather conditions, providing a visual indication of weather phenomena. This feature can enhance awareness in daily life by displaying current weather right on the device.

More information:

Domoticz:
www.domoticz.com

Domoticz AWTRIX3 Plugin:
https://github.com/galadril/Domoticz-AWTRIX3-Plugin

More flows for Domoticz or Smarthome

Something wrong with this flow? Report it.