I have installed the my.openHAB bundle, restarted openHAB, created an account and logged into my.openhab.org. The web page shows my openHAB installation is online, and everything seems OK - except that there are no devices, applications, items, etc.
It’s a bit embarrassing but I am at a loss regarding what to do next. Anyone?
my.Openhab only shows items which you have persisted.
Make a myOpenhab.persist in your configurations \ persistence subdirectory
Depends on what do you want to do next? Remotely connect to you openHAB? Send notifications to your mobile devices? Connect with IFTTT?
Thanks for quick responses!
So, I get the part about persistence (I was wondering whether that was the “problem”), but what about the other parts, e.g. remotely connect to my openHAB, sending notifications to mobile devices, etc.
How do I proceed with this?
You only need persistence if you plan to use IFTTT. Otherwise you will be sending a bunch of data to the cloud without any use (unless you want to browse your items and their status changes through my.openHAB web interface).
To remotely connect to you openHAB just set remote URL in the app (iOS or Android) to https://my.openhab.org/ and username and password to your my.openHAB ones (everything is described in my.openHAB Documentation section: https://my.openhab.org/docs)
You can also find notifications and etc in Documentation section too
Ah, now I am really embarrassed! I was actually reading the docs, but for some reason the information about the remote URL++ did not register,
Sorry about asking questions where the answer can actually be found in the manual, and thanks for providing answers anyway,
I think I differ with @belovictor
I actually think you need persistence if you expect to access myOpenHab using your (iPhone for example) when out of range of your home router.
When you don’t have local access via your Wi-Fi NAT’ed addresses and you have not tunneled your router, myOpenHab via the remote connection lets you see and control devices/data you persisted.
[quote=“bob_dickenson, post:7, topic:2539, full:true”]
I actually think you need persistence if you expect to access myOpenHab using your (iPhone for example) when out of range of your home router.[/quote]
No, sorry, that statement is wrong.
[quote=“bob_dickenson, post:7, topic:2539, full:true”]
When you don’t have local access via your Wi-Fi NAT’ed addresses and you have not tunneled your router, myOpenHab via the remote connection lets you see and control devices/data you persisted.[/quote]
One reason my.openhab was invented is that you don’t need port forwarding on your router to access your OH remotely.
I had OH running without persistence for my.openhab for the first weeks and without any port forwarding in my router, just putting username and password in habdroid worked fine to remotely access OH.
I can confirm that HABdroid is working very well through my.openhab.org - without using persistence.
Thanks for all help!
I don’t have my router tunneled either. Before myOpenHab I would have had to do that.
This page from myOpenHab
States that if you persist items you will be able to see event and items via myOpenHab.
When you configure the iPhone OpenHab app, you have both local and remote urls. The remote is my.OpenHab and requires the uuid and secret keys.
When I first installed myOpenHab, I did not have persistence and both the web portal and my iPhone (when connected to the remote url myOpenhab) had no data. Local url connection worked.
When I made a change to the persistence, it broke the connection , ie no data (design issue w/myOpenHab). Changed persistence back to what I had before and everything was back. Others reported the same behavior.
So, I think I might not be wrong, despite your assertion.
Under 1.7.0 and current code of myOpenHab, I am unable to replicate this issue of persistence and remote access.
Looking back at various timestamps, I upgraded to 1.7.0 on July 1. On July 13 I activated myOpenhab. The issue of persistence/remote access was immediately obvious at that time – +/- a day. It was annoying to have to configure a persistence to get what I had previously working. Annoying enough that I replied to someone’s post about the whole persistence issue, although not remote access per se.
Guessing I somehow got caught in a release seam somewhere, but cannot definitively prove.
So, I’m calling this a closed problem.
@sihui is correct as of today
You don’t need persistence unless you want to either look at this data in my.openhab.org web interface or use IFTTT integration. Persistence is not required or needed for remote access. When you use my.openhab.org for remote access to your openHAB what my.openHAB does is just proxying your HTTP requests back to your openHAB through a secure websockets tunnel, that’s it. The response your apps get through my.openHAB (or your browser, if you point it to https://my.openhab.org/openhab.app?sitemap=) is generated by your openHAB, not by my.openHAB.
Believe me, I’m the author of both bundle, my.openHAB and Android and iOS apps
I believe you. So either release seam of some sort or Stupid User Error. Are the security things (“secret key” et al) required if all you want is remote access (not access or manipulation of things through my.openHAB web interface ?
Yes. UUID and Secret are used by openHAB to connect to my.openHAB cloud service.
Thanks for clearing that up.
How can i use the my. Openhab service? I use openhab with Ports 8443 for ssl Web Interface and 8448 for http without ssl.
Which Port needs to be redirected though my Firewall? If I want to use the https Port (it’s configured in openhab.cfg) openhab is not Connected to the service
The purpose of me.openhab is that you do not need to punch a hole through your firewall.
To use the service you need to create an account, put the my.openhab jar file in your addons, and configure the service in openhab.cfg with your secret and token (which you get when you create the account).
Then you point your clients (web browsers, HABdroid, etc) at https://my.openhab.org and use your username and password created above.