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!
How to enable or disable a scene using URL
Re: How to enable or disable a scene using URL
Hi Guys,
Is it possible or not to enable or disable a scene using an url and internet explorer?
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
You can trigger a scene like this
http://RAZBERRY_IP/ZAutomation/api/v1/devices/LightScene_8/command/on
http://RAZBERRY_IP/ZAutomation/api/v1/devices/LightScene_8/command/on
Re: How to enable or disable a scene using URL
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}
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
You can find the deviceId via Preferences -> Widgets or via http://razberry_ip/ZAutomation/api/v1/devices