[Feature request] URL Scheme parameters #67
Replies: 9 comments
-
Openhab already has URL schemes for setting/getting item states. Don't really understand this request. |
Beta Was this translation helpful? Give feedback.
-
Didn't know that. Are they documented somewhere? |
Beta Was this translation helpful? Give feedback.
-
Under the rest wiki, they are described. Basic format is http://openhaburl:port/rest/items/itemname you can get, post or put depending on what you want to do (get/set state or post update value). Works on groups also. So to get the setting for SwitchLight you would use http://openhaburl:port/rest/items/SwitchLight/state which would return On/OFF or a value if it's a dimmer. You can use this in rules to get the state from a string. You can use this externally, or from within rules. If you can only GET (i.e. From a browser) you can use http://openhaburl:port/classicuiCMD?item=state to set a value. So in your example above it would be http://openhaburl:port/classicui/CMD?SwitchLight=ON. Is that what you were looking for? |
Beta Was this translation helpful? Give feedback.
-
Ah, ok. No :) I am talking about deep linking in mobile devices (iOS & Android). |
Beta Was this translation helpful? Give feedback.
-
Ok, I see, you want to get the value from the Openhab app, To use in another app. That does kind of make you two steps removed from the actual value. Probably better to get it direct from Openhab via rest if you can (I'm assuming that you can't though). What would be an example use for this? Maybe there is another way round it, but apple is pretty tight on passing data from one app to another. |
Beta Was this translation helpful? Give feedback.
-
No, there's no issue with deeplinking on iOS. I've actually started to write it on a fork of the iOS app a few months ago, but didn't have the time to finish it. A nice usecase: use a widget that allows launching of apps, like Launcher. In launcher you can create a launcher like |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is an old thread... but what about implementing a simpler URL scheme? A basic one would allow openHAB to be launched by third party iOS launcher apps. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
It would be lovely for OH to support url schemes for items. I know they can't extend more than ON/OFF, but it would be nice to be able to create a shortcut to a specific item state, like
openhab://SwitchLight:ON
Beta Was this translation helpful? Give feedback.
All reactions