How to enable or disable a scene using URL

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
etrust
Posts: 27
Joined: 24 Feb 2014 20:27

How to enable or disable a scene using URL

Post by etrust »

Hi Guys,

I have setup an scene using the home ui with the name all lights off. How can I enable or disable this scene using an URL?

I can turn lights on and off using an URL but I do not know how to do that with scenes.

Can somebody show me the http request for scene?

Thanks!
etrust
Posts: 27
Joined: 24 Feb 2014 20:27

Re: How to enable or disable a scene using URL

Post by etrust »

Hi Guys,

Is it possible or not to enable or disable a scene using an url and internet explorer?
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: How to enable or disable a scene using URL

Post by n0ahg »

You can trigger a scene like this

http://RAZBERRY_IP/ZAutomation/api/v1/devices/LightScene_8/command/on
etrust
Posts: 27
Joined: 24 Feb 2014 20:27

Re: How to enable or disable a scene using URL

Post by etrust »

Hi,

this URL is working thank you.

http://192.168.0.16:8083/ZAutomation/ap ... command/on

BUT:

1) In my light scene all_lights_on I can not find the String LightScene_8. Where can I find that name for all my other scenes? Or how did you know that LightScene_8 will work???


2) It works fine but I see this error. Can I just ignore it?

{"data":null,"code":200,"message":"200 OK","error":null}
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: How to enable or disable a scene using URL

Post by n0ahg »

You can find the deviceId via Preferences -> Widgets or via http://razberry_ip/ZAutomation/api/v1/devices
Post Reply