Can a scene be triggered externally via a HTTP request?

Folks,

I’m trying to find a way to trigger scenes without having a ‘proper’ client application and I’m looking for other methods. For example, that’d include initiating scenes on a Windows Phone device (because I’m too tight to buy the ?8 app I found in the store) or an any web browser on my LAN. I’ve seen reference to Vera support for methods such as the following…

http://IPaddress:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<num>

…is that meant to work when called from another device? Or is that meant only to work when employed by Vera itself? I tried and failed there, getting a 404 error…

The requested URL /“http://192.168.0.10:3480/data_request was not found on this server.
...I've no idea what the characters before http refer to there. I can't correspond them to my HTML making the request...

<a href=?http://192.168.0.10:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=44? target=?_blank?>Turn all lounge Hue lights ON: warm white</a>

Any ideas, clever folks?

there are free apps that run scenes. but yes you can run a scene with an html call like in the example you have.

try it in your browser. You can then bookmark the call and easily repeat the action.

http://IPaddress:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=

I get a 404 when I try that :frowning:

You did replace IPaddress with the actual IP address of your Vera and with the scene number you want to call didn’t you? It should look like this:

http://192.168.1.123:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=123

Yes, I did. My snippet above is real; the IP address is 192.168.0.10 and the scene in question is number 44.

Replace the “matched quotes” ([sup]\[/sup]) and ([sup]//[/sup]), with regular double-quotes (") and see how you go. Looks like it was authored in an editor first, and then pasted in, so the Matched-quotes might have come from there (this happens with the Mac TextEdit.app, for example)

You’ll see that the matched-quotes are coming through as ? in your pasted sample.

Good sleuthing there, that’s cracked it. Yes, it was the quotes causing my problem. And yes, indeed - I did author it in TextEdit and copy the text over. Thank you indeed, good people :slight_smile: