Hello,
I just built a new Openhab3 system (upgraded from a Pi3 to a Pi4). I’m trying to migrate my Openhab2 rules to Openhab3 and I’m having issues with a few of them. It seems the new ‘Rules’ interface isn’t as flexible as the old one. This is mostly dealing with the ‘Trigger’ condition, I realize I can run scripts after it’s been triggered… but complicated triggers are hard/impossible?
Astro rule:
when current time > dawn
then…
Vacation rule:
when away == true and (dusk or night)
then…
Questions:
- If I use the code from my openhab2.rule how to I set variables in there, it doesn’t seem I can have a rule trigger a script and pass anything in.
- If I use code from the openhab2.rule which sections do I keep and throw away? My gut instinct says to keep the stuff between ‘then… end’
- Can I simply copy my rules/openhab2.rule to rules/openhab3.rule? Documentation not clear on this.
Thx!