Skip to content

Instantly share code, notes, and snippets.

@funkfinger
Last active January 10, 2018 04:50
Show Gist options
  • Save funkfinger/e8f296a2064b64049905 to your computer and use it in GitHub Desktop.
Save funkfinger/e8f296a2064b64049905 to your computer and use it in GitHub Desktop.
REST post to configure amazon-echo-ha-bridge Java app
{
"name": "master bedroom",
"deviceType": "switch",
"onUrl": "http://<<VERA IP ADDRESS>>:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<<VERA ON SCENE ID>>",
"offUrl": "http://<<VERA IP ADDRESS>>/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<<VERA OFF SCENE ID>>"
}
@ammamoore
Copy link

How can I use this code in android?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment