This seems like a real simple problem that I can’t get around. I have OH2 up and running fine. I installed the REST UI and this call works:
curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d "ON" "http://pi:8080/rest/items/BathroomLight_Switch"
My question is now how do I get alexa to run this command? I was able to install the latest (4.5.0) HA-Bridge. I get to this screen
So how Do I fill out this page? I have a Harmnony, so that one makes sense, But I don’t see one for OpenHab. Is that really a Vera? or something else I need to import? But then I see the Add/Edit button and that looks promising so I click on that:
Now the on and off Items look promising, but the woefull lack of documentation on git makes it hard, so here are my questions:
- What type do I use? (I thought it was a plain old switch, but that’s not listed.
- Target item. Is that my BathroomLight_Switch or the whole call like this: http://pi:8080/rest/items/BathroomLight_Switch
- Http Verb I assume is "POST:
- the Body I Assume is On
- the headders are “Accept: application/json” or should they be --header “Accept: application/json” like they are in the CURL call in OH2?
- The Content type should be text/plain – correct?
What else might I need to get alexa to call a simple REST call to trun my light on? I do want to get my harmony added to this so I want to do this right.,
Thanks for any help!