I have an Amazon Dash button in my bedroom and I use it to trigger ON/OFF the alarm on the stairs in the evening.
I wake up with some yeelights with a long script.
I would like to use the button
- In the evening, arm/disarm the trigger
- In the morning, if the light script is running: stop the script and turn the lights off.
Is it possibile?
How can I test if the script is running?