RaspberryPi: No permissions to create items on Raspberry 4

Hi,
I’m writing this after investigating my problem for 2 days.

I bought a RaspberryPi4 Model B and I wanted to use and discovery the possibilities of OpenHab2.

No google page and no Youtube video can answer my question: How can I add items/bindings/etc. (not via GUI) via VS Code?

What I did:

Install dir:
openhab ist located in /etc/openhab2. User and group openhab own this folder.

What I tried so far:

  • create files via user pi (of course not possible)
  • (desperate) root access to this folder let me create files, but I cant create them in VS Code
  • connect via ssh from macOS as openhab user (not possible)
  • login as openhab user (not possible)

In the end
I just want to add files in directory /etc/openhab2/items/example.items

I don’t know how all the openHAB videos on YT show this (easy?) step and they create items via VS Code and everything is working. I can’t do that.

I am thankful for every help!

You add the binding name to the addons.cfg in the services directory.

Here is the starting page for the openHAB documentation. I am surprised it did not turn up on Google.

Have you watched this video?

I would also recommend you install openhabian-config tool or start over and use the openhabian image as this will make setup much easier unless your knowledgeable about linux OS’s.

To add openhabian:

# install git
sudo apt-get update
sudo apt-get install git

# download and link
sudo git clone https://github.com/openhab/openhabian.git /opt/openhabian
sudo ln -s /opt/openhabian/openhabian-setup.sh /usr/local/bin/openhabian-config

# execute
sudo openhabian-config

There is no video official documentation. Reading is a requirement to using openHAB.

I read it, thanks :slight_smile:

I tried openhabianpi, but I want to have raspianpi with openhab installed.
And I saw the video. But he is using windows and as it seems, it is easier than with macOS

You read this? It tells how to set up VS Code like you asked.

1 Like

Oh yes, thank you, thank you, thank you. How did I miss that? :thinking:

The openHABian image is Raspbian lite plus openHABian scripts plus some extra magic to bootstrap openHAB out of nothing automagically :wink:

2 Likes