Page 1 of 2
Enable/disable scene with http request
Posted: 29 May 2014 14:48
by alibab
Hi,
i've some sensors to manage the alarm from my house andd I want to activate/deactivate alarme with on button (eventually with openremote).
I've write on scene with logicalRule who activate alarme when one sensor have status" on".
Now , i want to enable this scene when i leave my house only.
Is any way to enable/disable scene with http request? .
Or where can I store this status? (variable?)
I've a benext tag reader, with no configuration for the moment.
Thk in advance for your help.
Re: Enable/disable scene with http request
Posted: 31 May 2014 05:37
by PoltoS
Sure, you can do it:
http://192.168.0.32:8083/ZAutomation/ap ... command/on
A scene can not be "off". It is scene - you can only trigger it (do "on").
Making a dummy button is a good idea - we will du such a module.
Re: Enable/disable scene with http request
Posted: 31 May 2014 13:25
by alibab
Hi,
Thk for your response,but I want to enable/disable, not on/off the scene.
In the automation ui the therm is "status".
any way?
thk in advance.
Re: Enable/disable scene with http request
Posted: 31 May 2014 20:23
by n0ahg
alibab wrote:Hi,
Thk for your response,but I want to enable/disable, not on/off the scene.
In the automation ui the therm is "status".
any way?
thk in advance.
As a scene is a 'one shot trigger' simply don't call it when you don't want to set your devices up as specified via the scene.
Re: Enable/disable scene with http request
Posted: 02 Jun 2014 23:20
by alibab
Hi, Thk for your response.
But actually i want to manage my scenario only with home automation UI.
I've 2 scenes:
first=> send "on" command to alarm ( i use light scene for this).
second => when a door is open ( sensor have value "on") ,it trigger the first scene ( I use logical rule for this).
BUT, i don"t want to trigger the first scene when I'm in the house ( of course)...
how can i do this?
It seem the UI don't offer the possibility to do this.
Thk in advance.
Re: Enable/disable scene with http request
Posted: 02 Jun 2014 23:46
by PoltoS
We are planing to make "dummy" switch device module (it is easy - you can also do such) and it will allow to switch modes home/away. Then use it in logical rules.
Re: Enable/disable scene with http request
Posted: 03 Jun 2014 01:26
by n0ahg
I have attached a quick hack derived from GroupDevices if you want to try it
Re: Enable/disable scene with http request
Posted: 03 Jun 2014 19:50
by alibab
Hi thk all for reply.
I'll test dummyDevice.
thk a lot

Re: Enable/disable scene with http request
Posted: 04 Jun 2014 02:53
by n0ahg
Here's a slightly tweaked version which uses a drop down so more device types can be added in the future
Re: Enable/disable scene with http request
Posted: 04 Jun 2014 19:01
by PoltoS
Great! can you do a fork on github, add it to your repo and make a pull request? So it will be mentioned that you added it.
I can include it myself, but we love to keep user contribution metioned
