2016:ha:control_openhab_with_alexa
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2016:ha:control_openhab_with_alexa [2016/05/11 14:35] – 75.177.137.2 | 2016:ha:control_openhab_with_alexa [2016/05/11 16:45] (current) – [CONTROL OPENHAB ITEMS USING Alexa] 75.177.137.2 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== CONTROL OPENHAB ITEMS USING THE AMAZON ECHO ===== | + | ===== CONTROL OPENHAB ITEMS USING Alexa ===== |
+ | Original blog is here: | ||
+ | * {{: | ||
==== INTRODUCTION ==== | ==== INTRODUCTION ==== | ||
Having a digital personal assistant, like Jarvis from Iron Man, is the ultimate geek dream. | Having a digital personal assistant, like Jarvis from Iron Man, is the ultimate geek dream. | ||
Line 55: | Line 57: | ||
} | } | ||
</ | </ | ||
- | {{: | + | {{: |
- | When you are finished making your changes, click “Send” on Postman. | + | When you are finished making your changes, click “Send” on Postman. |
{{: | {{: | ||
- | When you’re finally done uploading devices, go to Chrome or your browser of choice and navigate to http://< | + | |
+ | When you’re finally done uploading devices, go to Chrome or your browser of choice and navigate to \\ | ||
+ | < | ||
+ | http://< | ||
+ | </ | ||
+ | You should see all of your loaded devices there.\\ | ||
{{: | {{: | ||
==== STEP 3: LOAD SETTINGS INTO YOUR AMAZON ECHO ==== | ==== STEP 3: LOAD SETTINGS INTO YOUR AMAZON ECHO ==== | ||
- | On your phone, launch the Echo app. Open the Settings page and scroll all the way down where it says “Connected Home”. | + | On your phone, launch the Echo app. Open the Settings page and scroll all the way down where it says “Connected Home”. |
==== Comments ==== | ==== Comments ==== | ||
Line 166: | Line 174: | ||
1) The only real way to do it is to open the Echo App, go to Settings–> | 1) The only real way to do it is to open the Echo App, go to Settings–> | ||
- | 2) Definitely fully-qualified *localhost* URLs (not on port 8080), with codes in place of special characters. | + | 2) Definitely fully-qualified *localhost* URLs (not on port 8080), with codes in place of special characters.\\ |
< | < | ||
Example: “onUrl” : “http:// | Example: “onUrl” : “http:// | ||
</ | </ | ||
+ | |||
Aaron, this is really nice!! thanks for the write-up!! | Aaron, this is really nice!! thanks for the write-up!! | ||
- | I now have my first insteon light switch working now with the echo and openhab.. | + | I now have my first insteon light switch working now with the echo and openhab..\\ |
I am not sure how to edit the device list. Is there an easy way to edit the api/ | I am not sure how to edit the device list. Is there an easy way to edit the api/ | ||
Line 180: | Line 190: | ||
Thanks again. | Thanks again. | ||
- | Reply | + | Reply\\ |
- | Aaron Tinsley says: | + | Aaron Tinsley says:\\ |
Jay, | Jay, | ||
Line 187: | Line 197: | ||
No problem! I’m glad it helped. As far as editing the device list for the Bridge, the honest answer is I don’t know. I did my initial setup and have mostly left it alone since then. I may pore over the source code and look for the answer. The only time I’ve spent in the source code thus far was to figure out how to change the listening port. | No problem! I’m glad it helped. As far as editing the device list for the Bridge, the honest answer is I don’t know. I did my initial setup and have mostly left it alone since then. I may pore over the source code and look for the answer. The only time I’ve spent in the source code thus far was to figure out how to change the listening port. | ||
- | All of the commenters have made one thing clear… I’m way behind some of you in home automation! Good luck with your sprinkler system! | + | All of the commenters have made one thing clear… I’m way behind some of you in home automation! Good luck with your sprinkler system!\\ |
- | + | Other people probably figured out how to have Alexa dim lights without needing it explained to them, but I thought I would comment and potentially save someone some time: | |
- | Spencer says: | + | |
- | + | ||
- | So getting | + | As of 0.1.3, the Echo-HA-Bridge supports dimming. In the Configurator page, use these URLs:\\ |
+ | < | ||
+ | On URL: http://: | ||
+ | Off URL: http://: | ||
+ | </ | ||
+ | I got it working tonight with 0.2.1 and OpenHAB 1.7.1, both running on Windows 10.\\ | ||
+ | **Controlling TV**\\ | ||
+ | I’m going bananas over this :) Probably to much fiddling around. I got Openhab to work with my LG TV. Wehn I try Armzilla to connect Echo it either gives me a blanc page while testing or XML error. In my items file in openhub I have:\\ | ||
+ | < | ||
+ | Group TV_Living “Tv Room” (LgTv) | ||
+ | Switch LgTvPower “Power Command” (GF_Living) {lgtv=”ON: | ||
+ | Switch LgTvMute “Mute” (GF_Living) {lgtv=”ON: | ||
+ | Number LgTvVolume “lgVolume [%.1f]” (GF_Living) {lgtv=”INIT: | ||
+ | Number LgTvChannel “Channel [%.1f]” (GF_Living) {lgtv=”INIT: | ||
+ | String LgTvChannelName “Channelname [%s]” (GF_Living) {lgtv=”INIT: | ||
+ | String LgTvGetChannels “getchannels [%s]” (GF_Living) {lgtv=”INIT: | ||
+ | String LgTvGetApps “getapps [%s]” (GF_Living) {lgtv=”INIT: | ||
+ | String LgTvAppExecute “excuteapp” (GF_Living) {lgtv=”*: | ||
+ | String LgTvAppTerminate “terminateapp” (GF_Living) {lgtv=”*: | ||
+ | Switch LgTvConnStatus “connstatus ” (GF_Living) {lgtv=”*: | ||
+ | </ | ||
+ | Can anyone please give me an example URL I should use to get this working? Openhab, Armzilla and Lovely Alexa so she will start Netflix | ||
- | 1) So let’s say you make a “boo boo” while entering a device…is there a way to “delete” it from the bridge? | + | I tried:\\ |
+ | < | ||
+ | { | ||
+ | “name” : “Netflix”, | ||
+ | “deviceType” : “switch”, | ||
+ | “onUrl” : “http:// | ||
+ | “offUrl” : “http:// | ||
+ | } | ||
+ | </ | ||
+ | But also: | ||
+ | < | ||
+ | http:// | ||
+ | </ | ||
+ | In my sitemap I have: (works great via webpage)\\ | ||
+ | < | ||
+ | Switch item=LgTvAppExecute label=”AppExecute” mappings=[Netflix=Netflix] | ||
+ | Switch item=LgTvAppTerminate label=”AppTerminate” mappings=[Netflix=Netflix] | ||
+ | </ | ||
+ | I must say, I have 0 coding experience :)\\ | ||
- | 2) Also, does Postman want fully-qualified URLs with codes, or will it accept quotes, spaces, etc. verbatim? | + | Kind regards,\\ |
+ | Frank\\ | ||
- | Thanks, | + | Aaron Tinsley says:\\ |
- | -S | + | Frank,\\ |
- | + | Your URL should directly address | |
- | Spencer says: | + | |
- | + | ||
- | Learned a lot in this process and am answering my own questions for those who may have similar questions: | + | |
- | + | ||
- | 1) The only real way to do it is to open the Echo App, go to Settings–> | + | |
- | + | ||
- | 2) Definitely fully-qualified *localhost* URLs (not on port 8080), with codes in place of special characters. | + | |
< | < | ||
- | Example: “onUrl” : “http:// | + | http:// |
</ | </ | ||
- | Aaron, this is really nice!! thanks for the write-up!! | + | [value] should be a URL-encoded string. To URL encode a string, go to this link, type your string in the “Plain” box, and then hit the button that says “URLEncode”. It will output |
- | I now have my first insteon light switch working now with the echo and openhab.. | + | |
- | + | ||
- | I am not sure how to edit the device list. Is there an easy way to edit the api/ | + | |
- | or is it easier to clear the data folder and start over? | + | |
- | + | ||
- | Now if I could just get my insteon sprinklers setup in openhab, I will be set to go!! | + | |
- | + | ||
- | Thanks again. | + | |
- | + | ||
- | + | ||
- | Aaron Tinsley says: | + | |
- | + | ||
- | Jay, | + | |
- | + | ||
- | No problem! I’m glad it helped. As far as editing | + | |
- | + | ||
- | All of the commenters have made one thing clear… I’m way behind some of you in home automation! Good luck with your sprinkler system! | + | |
- | + | ||
- | Spencer | + | |
- | + | ||
- | Hi Gang, | + | |
- | + | ||
- | So getting *some* progress here, but had a few questions about the mechanics of device entry: | + | |
- | + | ||
- | 1) So let’s say you make a “boo boo” while entering a device…is there a way to “delete” it from the bridge? | + | |
- | + | ||
- | 2) Also, does Postman want fully-qualified URLs with codes, or will it accept quotes, spaces, etc. verbatim? | + | |
- | + | ||
- | Thanks, | + | |
- | + | ||
- | Spencer says: | + | |
- | + | ||
- | Learned a lot in this process and am answering my own questions for those who may have similar questions: | + | |
- | + | ||
- | 1) The only real way to do it is to open the Echo App, go to Settings–> | + | |
- | + | ||
- | 2) Definitely fully-qualified *localhost* URLs (not on port 8080), with codes in place of special characters. | + | |
- | + | ||
- | Example: | + | |
- | + | ||
- | Thanks for the tutorial! | + | |
- | + | ||
- | Other people probably figured out how to have Alexa dim lights without needing it explained to them, but I thought I would comment and potentially save someone some time: | + | |
- | + | ||
- | As of 0.1.3, the Echo-HA-Bridge supports dimming. In the Configurator page, use these URLs: | + | |
- | + | ||
- | On URL: http://: | + | |
- | Off URL: http://: | + | |
- | I got it working tonight with 0.2.1 and OpenHAB 1.7.1, both running on Windows 10. | ||
2016/ha/control_openhab_with_alexa.1462991756.txt.gz · Last modified: 2016/05/11 14:35 by 75.177.137.2