Without having any devices registered you are not able to receive messages. Did you connect remotely to your cloud? For example, turn wifi off and connect via mobile data connection. Then your phone gets registered and you should be able to receive messages …
Yes I connected remotely to the cloud.
When opening a window-contact, I see the changes directly on my phone while WLAN is off and I’m connected to the cloud.
But still no device appears in the device section…
notifications and remote access is enabled.
I got notifications while it was configured to use myopenhab, but while using my self hosted instance I got no notifications on the phone. But I can see the notifications on the website of the cloud instance.
Anyone using successfull notifications with a self hosted cloud instance?
I got it!
After changing the mentioned lines (OpenHABMainActivity.java line 145 and 1201 I think) in the source code of Habdroid, deploying the newly compiled app to my phone and changing the gcm-key in json.conf of the openHAB-Cloud instance, my phone gets registered in the cloud instance and I can receive messages.
So for those looking to set up OpenHAB-Cloud notifications, here is a quick summary of what needs to be done.
Jid = Your_Sender_Key@googleapis.com
Password = server key
I don’t know if the legacy server key will work, I used the server key from Firebase console, also make sure you use the keys on the “Cloud Messaging” tab!
Before compiling habdroid"
Change OpenHABMainActivity.java line 145 and 1201 to match your system.