Skip to content
AWTRIX FLOWS
Submit flow
Valentine’s Heart Animation shown on an AWTRIX display
Domoticz Miscellaneous AWTRIX 3

Valentine’s Heart Animation

This script creates an animated heart sequence on the AWTRIX3 display, perfectly timed to bring Valentine’s Day cheer!

Built by Galadril

Download flow

Published 7 January 2025 · updated 7 January 2025 · 2 downloads

❤️ AWTRIX3 Valentine’s Heart Animation Script ❤️

💡 Script Purpose:
This script creates an animated heart sequence on the AWTRIX3 display, perfectly timed to bring Valentine’s Day cheer!

heart_animation

⚙️ Script Activation:
The script is always active by default, as indicated by active = true.

🎛️ Trigger:
The animation is triggered by a device called 'SwithValentine', ensuring the heart animation starts only when manually activated.

📝 Logging:
Custom logging is used with a marker "AWTRIX_HEART" for easy identification of Valentine-specific log entries.

🔍 Conditions:

  1. The device "AWTRIX3 - Power" is checked to ensure the AWTRIX3 display is powered on:
    🛑 If "AWTRIX3 - Power" is not found or is Off, the script halts execution.
  2. The device "AWTRIX3 - Send Custom App" is verified:
    🛑 If this device is not found, an error is logged, and the script stops further actions.

🚀 Execution Flow:
Once the conditions are met:

  1. A sequence of five animated heart frames is prepared as JSON payloads.
  2. Each frame contains a precise arrangement of pixel data ("dp") with colors (e.g., "#971B23" for deep red and "#FFFF00" for yellow accents).
  3. These frames are explicitly sent to the AWTRIX3 device (AWTRIX3 - Send Custom App) with timed intervals using .afterSec() for smooth animation.

🎥 Animation Details:

  • The heart evolves frame by frame, starting as a small core and expanding into a detailed, glowing heart with outer yellow highlights.
  • The animation loops seamlessly with a dynamic flow and vibrant red hues, creating an engaging visual display.

Final Touch:
A log entry "Animation scheduling completed." confirms the animation setup is successfully scheduled.


🌹 Valentine’s Special:
This creative script ensures your AWTRIX3 display spreads love and warmth, making it a delightful centerpiece for Valentine’s Day celebrations!


🔗 More Information:

More like this Domoticz Miscellaneous AWTRIX 3