Rule OpenHAB

Welcome to the openHAB community!
start here

then read this

you may also find this interesting