Scene 'Off Action'

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Jzjr
Posts: 14
Joined: Monday 05 October 2015 15:00
Target OS: Linux
Domoticz version: 4.10717
Location: UK
Contact:

Scene 'Off Action'

Post by Jzjr »

Hello,

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>
Many Thanks,
Fred.
-
Fred Boniface

- Dell Optiplex 390 - Ubuntu Linux 18.04.01 LTS - Aeotec Z-Wave USB - RFXtrx433 - Hue Hub 2 - LGTV Plugin -
Hue Bulbs in every room, Temp Sensors on each floor, Temp-Monitoring Fridge, LightWaveRF 'Mood Switches'
georgesattali
Posts: 84
Joined: Saturday 05 March 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Scene 'Off Action'

Post by georgesattali »

Hello,
I don't understand your script, but maybe the problem is using a scene : they cannot be turned Off (but only "On").

If you want to turn it on and off you have to change it to a Group.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest