Hi!
Hopefully this was not already asked a thousand times, I found some stuff for the former Versions of openHAB, but nothing for a pure openHAB3 (at least it seema to me).
I started with openHAB3 from the scratch, coming from FHEM, cause OH3 looked easier.
Thats the Rule:
If I only “switch on” with “events.sendCommand(“HMSwitchx4KellerKanal1_State”, “ON”)” it works, but the createTimer throws an error:
2021-01-04 13:39:59.126 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘Treppenhausbeleuchtung’ failed: :2:32 Expected an operand but found |
createTimer(now.plusMinute(1), [| events.sendCommand(“HMSwitchx4KellerKanal1_State”, “OFF”)])
^ in at line number 2 at column number 32
That might be, but afaik it is suggested not to mix file-based Configuration and ui-based configuration with OH3?!?!?!
Like I already have written, i’m completely new to OH.
For a given type, and it’s only a recommendation. You could put all your rules in text files and everything else done through the UI and still be consistent.
But there will be times where you can’t do that. The recommendation is for consistency. It makes it easier for you to understand and find where stuff is configured. But there will be cases where being able to just copy and paste something to a .rules file is easier than trying to be consistent.