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

Valentine’s Heart Animation

On an AWTRIX display
Valentine’s Heart Animation shown on an AWTRIX display
Valentine’s Heart Animation · by Galadril

Use with Domoticz

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

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

❤️ 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.