I have a rule on an OH2 system using a GPIO on the RasPI that works as follows:
rule "FrontDoorOpen"
when
Item FrontDoor changed
then
if (FrontDoor.state == OPEN) {
sendNotification("myemail@address", "Front Door Has Been Opened")
}
end
How do I enter the sendNotification line in the new graphical OpenHAB3 Rule editor?
Domain Specific Language. Rules DSL is a custom programming language invented and used in the domain of openHAB. This is opposed to a general programming language like JavaScript which is written to write almost any kind of program, not just openHAB rules.