I just installed successfully my new raspberry pi 4 with the openhabian image from here:
I can access the openhab from my browser and can access the openhabian from ssh.
I turned off the simple mode on item linking.
I added some things including door sensor.
Than I created new files on /etc/openhab2/items :
I created new file - /etc/openhab2/things/home.things
I created new file - /etc/openhab2/sitemaps/home.sitemap
I created an item called Main_door and linked it to the sensor.
Then I created a rule:
rule "Log open door" when Item Main_door changed to OPEN then logInfo("Lobi", "door is open") end
But I am getting this error on the log:
[WARN ] [me.core.service.AbstractWatchService] - Error while opening file during update: /etc/openhab2/rules/home.rules
What am I doing wrong?