I am trying to setup some scripts which send an alert to my Philips Hue bulbs.
I have a simple script setup which uses the alert command however the script has a 490s sleep and I have noticed that I cannot run another script whilst this happens.
I am wondering if I could run a script once the scene has completed or whether I am stuck with being unable to use any other script for the 7 minutes and what the 'Off Action' field does in a scene, as far as I can tell it has the same functionality as the 'On Action'.
The scene is used to turn a baby bottle warmer on for 8 minutes, the script flashes a Hue bulb at the start and then flashes all Hue bulbs after the 8 minutes is up.
Code: Select all
curl -H "Accept: application/json" -X PUT --data '{"alert":"select"}' <API URL>
sleep 490
curl -H "Accept: application/json" -X PUT --data '{"alert":"lselect"}' <API URL>
sleep 2
curl -H "Accept: application/json" -X PUT --data '{"alert":"none"}' <API URL>
Fred.