How to manage a Scene

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

How to manage a Scene

Post by SolarFlor »

Dears,
May I treat a Scene like a Device?

I have just built a scene that is turning on simultaneous more devices (Switches and Plugs). I would like now to manage it as I device for example using a comand like

http://IP:8083/ZAutomation/OpenRemote/S ... aryOff/5/0

Thanks for your help
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: How to manage a Scene

Post by PoltoS »

OpenRemote module uses Z-Way API and not Home Automotion API as basis.

But instead of OpenRemote module you can use irect API calls in the OpenRemote app. Like:
/ZAutomation/api/v1/devices/ZWayVDev_6:0:37/command/off
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: How to manage a Scene

Post by SolarFlor »

...but should I associate my Scene to a Device?

your call is working but only for devices but not for Scene
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: How to manage a Scene

Post by PoltoS »

You can do same for Scene - just use Scene Id and command "on". There are also Group Devices module, that allows to group several devices together in one. It acts as ordinary device (switchBinary or switchMultilevel).
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: How to manage a Scene

Post by SolarFlor »

PoltoS wrote:You can do same for Scene - just use Scene Id and command "on".
Sorry PoltoS, but could you please edit the following call to work with a LightScene4?

/ZAutomation/api/v1/devices/ZWayVDev_6:0:37/command/off

Thanks
Pipistrello77
Posts: 19
Joined: 13 Mar 2014 00:14

Re: How to manage a Scene

Post by Pipistrello77 »

I guess is ...../devices/LightScene_4/....
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: How to manage a Scene

Post by n0ahg »

SolarFlor wrote:
PoltoS wrote:You can do same for Scene - just use Scene Id and command "on".
Sorry PoltoS, but could you please edit the following call to work with a LightScene4?

/ZAutomation/api/v1/devices/ZWayVDev_6:0:37/command/off

Thanks
/ZAutomation/api/v1/devices/LightScene_4/command/on
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: How to manage a Scene

Post by SolarFlor »

Many Thanks
I will try soon
Post Reply