Valentine’s Heart Animation
Use with Domoticz
This script creates an animated heart sequence on the AWTRIX3 display, perfectly timed to bring Valentine’s Day cheer!
- 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)
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!
⚙️ 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:
- 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. - 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:
- A sequence of five animated heart frames is prepared as JSON payloads.
- Each frame contains a precise arrangement of pixel data (
"dp") with colors (e.g.,"#971B23"for deep red and"#FFFF00"for yellow accents). - 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:
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.
More flows for Domoticz or Miscellaneous
Something wrong with this flow? Report it.
Have an idea?
Sign in to ask questions and join the conversation.