Set Overlay on Weather
Use with Domoticz
Automate setting the overlay based on the weather.
- 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 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'}.
-
📝 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.
-
-
☁️ 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.
-
-
⚙️ 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.
-
-
🎚️ 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
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.