Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

FlowAWTRIX 3

Set Overlay on Weather

On an AWTRIX display
Set Overlay on Weather shown on an AWTRIX display
Set Overlay on Weather · by Galadril

Use with Domoticz

Automate setting the overlay based on the weather.

Which AWTRIX do you have? See below where it runs, or choose your device.
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)
Download flow

Follow the author’s setup instructions below.

Flow description

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