Hi John, I have never tried any integration with Alexa, and I’m not really an Alexa user.
I remember some months ago certain discussions about a (then) new action to integrate with Google Home, but I have not followed up on that afterwards so I’m not sure what the status on this is.
On the Eclipse SmartHome framework, there is some new development regarding a OAuth2 client, but I haven’t checked that yet as I am currently working on other topics. I plan to eventually go back to openhab-cloud, but that will probably still take some months.
I have my own instance of openhab-cloud running, and integrated with Alexa and IFTTT.
Not sure it is the last updated version from GitHub, as I set it up a couple of months ago, but I do not dare touching it, as I had to tweak it “a bit” to make it work.
I could not find too much documentation on it (at all) so I had to hack and go through the code…
I have no time to document it, but if there is interest I can share what I did. Maybe somebody with more time than I could document a how-to then…
I created a couple of JS scrips to make me “superuser” in my own openhab-cloud (no, the admin created one is not), and to define the keys and IDs for oauth. I will share these, but will take some time.
For IFTTT I had to create my own service (unpublished) creating manually the API call definitions. Takes some time, and trial and error.
For Alexa, there is a script that creates a bundle, and more or less it can be done, but it took me some time (I had no experience with AWS and lambdas), and you need to create an AWS account.
If you do not have experience on this, without a proper step by step guide it is not for newbies…
You need to create a developer account in IFTTT (without paying I think I remember you could only use 4-5 “test” users)
Are you interested in the oh-cloud setup (setting up the oauth tokens, etc), the IFTTT part, or both? I need to document it and it may take some time. Will give it a try in the coming days in this post, but just to prioritize.
Does this allow, once setup, your Android phone to setup a HTTPS connection to your OH2 instance? by setting up the URL of your machine under the ‘REMOTE’ part of the App?
I cant connect but can open a web browser session to https://serverurl from the internet which takes me to the openhab cloud login page.
Yes. You will need a fix IP or some other means (i.e. dynamic DNS) to resolve the name of your server. I would also strongly recommend you to use a real certificate (if you are security-aware).
You do not need anything from my previous post for this to work, anyway: it is related to integrating the custom instance with third party services through OAUTH.
But if you just want to connect remotely, and do not have a reason to run your own instance, I would also recommend you to use the openhab-cloud instance from openhab.org
Ive got an ip and dns name, if i use it with port 443 as the remote server in the OH2 app, it doesn’t connect.
By using this instance, in my Android client do I configure https://url
And then in nginx, i forward to 3000? Its not very clear and this is driving me insane
If the cloud instance is running on the same computer or network as the openhab instance, you can address it by the local address as in the image you sent.
If the cloud instance is on Internet, you need to point to the public address (i.e. https://myhomedomain/)
Answering your previous question: yes, you need to secure your cloud server behind a proxy. I use a highly customized Apache, so I cannot help you on nginx, but there are some how-to’s and tutorials already around.
Just make sure you enable proxying of websockets requests, to avoid having your openhab instance constantly polling your cloud instance
Not sure what you mean, OpenHab Cloud & OpenHab2 run locally on the same machine.
In any case, I cant remotely access the UI’s using the Local instance of OpenHab Cloud nor can I use the Android Apps to access OpenHab by configuring ‘REMOTE’ and pointing it to my https://domain, which in NGINX points towards Port 3000 of my Local OpenHab Cloud
:./
I’m at a loss and this is incredibly frustrating because theres no logs at all!
Hi Pedro, yes it works and I can login. I also get cloud notifications however when I click the link ‘CLICK HERE TO ACCESS YOUR DASHBOARD’ it does nothing.Thanks
What does “does nothing” mean? Also, could you please try these to see if we can find some clues on what the issue is?
To what URL is the link “Click here to…” pointing to? Can you access the same URL directly on the OH instance?
Is the rest api responding through the OH-cloud instance? (i.e. ask for ‘/rest/sitemaps’ or ‘/rest/this-is-an-error’)
What is the contents of your “system” section in the “config.json” file? Host, port and protocol should match the URL you plan to reach your oh-cloud instance with.
I made changes to config.json, the dashboard link now works. However I still cannot connect using the Android App. It pops up the list of sitemaps, but it wont display their contents