Skip to content
AWTRIX Flows
Submit flow
Valentine’s Heart Animation shown on an AWTRIX display
Fig. 1 Valentine’s Heart Animation, as Galadril runs it.

Valentine’s Heart Animation

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

Specifications
System Domoticz
Firmware AWTRIX 3
Topic Miscellaneous
Built by Galadril
File XjzBOy0woQl7.json · 4.7 KB
Icons
Published 7 Jan 2025 · updated 7 Jan 2025
Downloads 9
Download flow

❤️ 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 flows for Domoticz or Miscellaneous

Something wrong with this flow? Report it.