Openhab iOS app, iOS Shortcuts, iOS Home app - How to?

You need to remove always send credentials…

OK. I have changed that setting.
I only see my sitemap if the Remote URL field is correct (https://myopenhab.org:433). If I delete the Remote URL field I see no sitemap. Do I need to format my Local URL differently? I’m using ‘10.0.0.100’ which is the IP of my Pi running OpenHab. I also tried variations with http://, https://, and adding :8080 to the end. Same results each time.

Still no response from iOS Shortcuts app, just spins forever when trying to play ‘Get Item State’ for the first time to cache.

These are my settings :
Local URL : http://xxx.xxx.xxx.xxx:8080
Remote URL : https://home.myopenhab.org
Always send credential : OFF
Ignore SSL-Certificates : ON

OK, these settings work to show me the sitemap, and I see the pop up at the bottom saying that it is connecting to local network.
is this testing it locally now? I still see my Sitemap with the Remote URL deleted (auto filled to default).

I still get the forever spinning first play in iOS Shortcuts. Both when Remote URL is correct and when it is default.

So now it is using local connection, which is fine. Try to load yout items within shortcuts while connected locally. Id did not take long for me.
What you also could check is your API security settings. I have set “Allow Basic Authentication” to ON.

Still no joy.

I will run through every setting at this point:


*Remote URL = https://home.myopenhab.org/




Any more ideas on this?

A few more details on the versions of everything in case it helps -

iPhone and iPad iOS 14.4.2
OpenHab iOS app 2.4.20
OpenHab 3.1.0.M3
HomeKit Addon Bundle 3.1.0.M3
OpenHab Cloud Connector Bundle 3.1.0.M3

Not sure what this means, but when I try to use the “Send Switch State” Shortcut, it will fetch the options ON and OFF, but only if the Item field is left blank.



Hi, it’s an advanced thread but I think we can fix it. Let’s go in parts.

First, try with your local URL in your browser:

http://[IP]:[PORT]/rest/items/[ANY ITEM]

Can you see information about the item? Like this…

Captura de Pantalla

Thanks for helping.

Yes, I see item info when I do as you say.

Sorry for the delay, in Argentina we have 5 hours less :sweat_smile:

Perfect, I use an alternative to the iOS app in Shorcuts. For example, to get information about a item with the url you used before, use the following Shorcuts example

It is a fairly simple action but it serves to go testing and experimenting. As you will notice, this shortcut will not work outside of your local network but it has the advantage that it obtains the status of an item faster than with the help of the OpenHAB app in shortcuts (app that still does not work for you but we will fix it :wink: ).
To use this same shortcut outside of your local network, simply replace the above URL with the URL in the following format

https://{user of myopenhab.org}:{password of myopenhab.org}@myopenhab.org:443/rest/items/{item name}

and it will work anywhere (this usually takes a longer time than on a local network).
Finally, I have several shortcuts configured where first it verifies the name of my wifi network, if it matches it uses the local url, otherwise, it uses the external url.

Great. This works for me.

Is this a final solution for you? Or can we keep going to get the OpenHAB app talking to Shortcuts?

It’s not as simple, requires me to know the name of an item, etc.
Can this method send commands as well as read?

We can! In my case if I have the openhab items in shortcuts but with my wifi I prefer this method shown above, since with the app it takes more time to obtain data, or send it.

Of course, you only have to change the part of “Get contents of …” to this


*Content- Type

Remember, previously define the action in “Text”, example: “ON” without quotes.

If you need, I send you an example for shortcuts, tell me.

About your original problem, after reading the whole topic, I tried a few things…

  1. I changed a single letter of my user, with the wifi activated, obviously he could not login but the OpenHAB app was still working via the local url. When I disable wifi, openhab didn’t work at all.

  2. with the wifi disabled, I went to shortcuts and did not see my items (same as you).

  3. when activating the wifi I discovered that although the openhab app shows my items again, the shortcuts app does not, so I think it is an authentication problem, maybe some typo in the user or pass?

Ok.
I have checked my username a pw many times during this process. I don’t think there is a typo.

I can’t find any more authentication settings.
I’ve got the ‘allow basic authentication’ in the API security settings page of OpenHAB.
The private network setting of my iPhone in my WiFi setting of the phone.
Is there anything else?

Strange that no one else seems to be having this problem.

This is my configuration:

On myopenhab.org configuration, verify the openHAB UUID and in “Devices” check if show your iPhone
Captura de Pantalla 2021-04-22 a la(s) 18.25.11

I’m running out of ideas but … you could try to reconfigure openHAB UUID by uninstalling OpenHAB Cloud, clearing the cache and reinstalling.

When you use openhab or shortcuts, you have looked

tail -f -n 200 /var/log/openhab/openhab.log

? Let’s see if something appears.

I’m am going to try this at the weekend. How do I clean the cache?

I used this Clean cache

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.