Enable/disable scene with http request

Discussions about RaZberry - Z-Wave board for Raspberry computer
alibab
Posts: 11
Joined: 26 Mar 2014 15:01

Enable/disable scene with http request

Post 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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Enable/disable scene with http request

Post 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.
alibab
Posts: 11
Joined: 26 Mar 2014 15:01

Re: Enable/disable scene with http request

Post 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.
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: Enable/disable scene with http request

Post 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.
alibab
Posts: 11
Joined: 26 Mar 2014 15:01

Re: Enable/disable scene with http request

Post 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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Enable/disable scene with http request

Post 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.
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: Enable/disable scene with http request

Post by n0ahg »

I have attached a quick hack derived from GroupDevices if you want to try it
Attachments
DummyDevice.zip
(1.33 KiB) Downloaded 330 times
alibab
Posts: 11
Joined: 26 Mar 2014 15:01

Re: Enable/disable scene with http request

Post by alibab »

Hi thk all for reply.
I'll test dummyDevice.
thk a lot :)
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: Enable/disable scene with http request

Post by n0ahg »

Here's a slightly tweaked version which uses a drop down so more device types can be added in the future
Attachments
DummyDevice.zip
(1.44 KiB) Downloaded 343 times
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Enable/disable scene with http request

Post 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 ;)
Post Reply