[SOLVED] Paper UI Rules engine basics

https://www.openhab.org/docs/configuration/rules-ng.html

or use Jython: