How to figure out how to do something in openHAB 3

It’s inevitable that some content is repeated between a user and a reference guide. And the real value is to achieve integration, that’s why I’ve requested some teaming / comments in my earlier post. If github is the way to go I’ll go.

Thanks again.

1 Like

yes

Thanks Andrew. :slight_smile:
I am a bit busy next week, so please be aware that ther may be some delay.

I am also open for any help for the “How to contribute to the docs” FAQ.
I am still neglecting this FAQ due to time reasons and i think it will give some important guidance for beginners with questions.

I also had a quick look on the pdf some hours ago and it already looks really promising. :slight_smile:

2 Likes

OK, I’ll give them a look

Rich… sorry for hijacking your thread

No worries. I’m way less strict about that sort of thing than most.

BTW, I reloaded my avatar pic. Hopefully it’s back now.

3 Likes

The Cat in the Hat has returned, uncancelled.

Same kind of thing, merciless violence in a metal can :wink:

3 Likes

Hi @rlkoshak

I’m new to OH3 and perhaps one of the new type of user the GUI approach is designed to attract, because I don’t write code at all. And realistically, I don’t intend to try to learn how to either - it’s not such a high priority to me to commit that much time.

Saying that, I’ve installed OH3 under Docker on my Synology NAS and got a kiosk mode HABpanel working (mostly) the way I intended on an android tablet relatively painlessly by just configuring through GUI interfaces. So it can be done. Just by giving it a go, just like you urge folks to.

The getting started tutorials are great, but once you get to the end of them, things get much tougher. Searching for answers in the documentation or community rarely turns up anything useful because I haven’t found a way yet to filter out answers that assume I’m working textually, which are are largely incomprehensible to me.

Let me give you an example: I want to use a standard widget to trigger a script created using Blockly. Maybe I’ve missed something obvious, but I can’t find an answer or hint anywhere. Lots of discussion of much more complex questions, but I’m lost usually by the end of the first line. It might have something to do with the Exec binding, and whilst I understand how I might add commands “to the misc/exec.whitelist file in the configuration directory”, I don’t understand whether Linux shell commands are relevant to causing openHAB scripts to run, for example.

So two questions: can someone help me with my specific question? And is there a way of supporting people like me when we’re searching for answers that don’t involve working textually?

Many thanks. And thanks for the huge investment of time in the OH3 update - I’m amazed by what I’ve been able to achieve already with almost no skills!

Your specific question is a common one and, fortunately completely divorced from textual configuration (and nothing at all to do with the exec binding or linux commands). The only concept you likely need to add to your toolbox for this is that items do not have to be linked to channels (IMHO this is really the leap from beginner user to intermediate user). Most items are linked to binding channels so that the item corresponds to a device or service, but an item can also just be a standalone object that helps control how OH operates (I’d estimate the 10% of my items that aren’t group represent this class of item). Items can be used to trigger rules, display custom information, or store information that’s accessible to all other facets of OH. So, if you just want a script that can be turned on, create a switch item, if the script is supposed to enumerate something then create a number item, if you want to have several options, make it a string item. Then you just need to create a rule that triggers when that item changes and the only way that item will change (because it’s not connected to the outside world) is when you change it via OH, usually the UI.

As for your second question about finding help for no textual configuration: there are two different things going on here.

  1. This still has to develop with time. This new version of OH is only a few months old. While previous versions did have some configuration through a different UI, the bulk of the work was done with files and so that remains the majority of the historical discussions on these boards (and continues to accrue as many users are still waiting to move over from the older version to the newer). The OH3 (and therefore MainUI) help just can’t match in a few months the volume of information from many years of OH2.
    Your best bet when searching the forum is to use the Advanced Search sidebar and restrict your search to posts from just this year (OH3 was officially released in January) or late 2020 (there are a lot of posts from testing versions prior to the release). There are definitely still posts focusing on textual configs in that timeframe and posts about OH2 but the proportion of OH3 UI focused posts is much more in your favor at that point. There are also OH3 and openhab3 tags that could help filter down results further but these are not applied consistently and will also remove some results you may find helpful.
  2. Because of the ability in this new UI to create custom widgets through YAML definitions many of the forums topics and posts right now are about this new feature which is essentially textual configuration just separate from channel-thing-item configuration. So even when you’re looking for UI help it’s going to be hard to filter out many of these posts because this version of the UI itself depends so much on these configurations.
2 Likes

Thanks for such a helpful post.

Brilliant! I’ve read through the Tutorials but I don’t remember seeing this anywhere. That sorted it. So my widget is linked to this Item, and a change in state of the item triggers a rule containing some Blockly scripts. Great.

And I’m using your tips on searching for OH3 GUI-based discussion too. Very helpful.

Thanks again