Rotate Custom Apps
Use with Domoticz
This script is designed to automate the switching between different custom apps on AWTRIX3 every minute.
- 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
-
⚙️ Script Activation:
- The script is active by default, indicated by
active = true.
- The script is active by default, indicated by
-
⏰ Trigger:
- The script runs on a timed schedule, executing every 1 minute as specified by the trigger
timer = { 'every 1 minutes' }.
- The script runs on a timed schedule, executing every 1 minute as specified by the trigger
-
📝 Logging:
- Utilizes a custom logging level set to
domoticz.LOG_INFO, with entries marked by "AWTRIX_NEXT" for easy identification in logs.
- Utilizes a custom logging level set to
-
🚀 Execution:
- When triggered, the script executes a defined function to perform its task.
-
🔍 Condition Check:
- Examines the state of the device "AWTRIX3 - Power":
- 🛑 If "AWTRIX3 - Power" is not found or is not "On", the script stops further actions (
return).
- 🛑 If "AWTRIX3 - Power" is not found or is not "On", the script stops further actions (
- Examines the state of the device "AWTRIX3 - Power":
-
🔄 Action:
- ✅ If "AWTRIX3 - Power" is on, it proceeds to activate the 'AWTRIX3 - Next App' using
appNextDevice.switchOn().
- ✅ If "AWTRIX3 - Power" is on, it proceeds to activate the 'AWTRIX3 - Next App' using
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.