Page 1 of 1
How to enable or disable a scene using URL
Posted: 29 Nov 2014 21:15
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!
Re: How to enable or disable a scene using URL
Posted: 01 Dec 2014 09:00
by etrust
Hi Guys,
Is it possible or not to enable or disable a scene using an url and internet explorer?
Re: How to enable or disable a scene using URL
Posted: 01 Dec 2014 15:52
by n0ahg
You can trigger a scene like this
http://RAZBERRY_IP/ZAutomation/api/v1/devices/LightScene_8/command/on
Re: How to enable or disable a scene using URL
Posted: 02 Dec 2014 21:25
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}
Re: How to enable or disable a scene using URL
Posted: 06 Dec 2014 02:26
by n0ahg
You can find the deviceId via Preferences -> Widgets or via http://razberry_ip/ZAutomation/api/v1/devices