-
Notifications
You must be signed in to change notification settings - Fork 19
Commanding
vbier edited this page Aug 30, 2020
·
4 revisions
Commands can be sent using different mechanisms. One way is to send commands with rules. An example rule that triggers on motion detection and turns on the screen could look like this:
rule "HABPanelViewer Screen"
when
Item Motion_Contact changed from OPEN to CLOSED
then
Tablet_Command.sendCommand("SCREEN_ON");
end
This assumes that there is a contact item named Motion_Contact (that is configured as motion contact in HPV) and that the command item is named Tablet_Command.
You can send the same command using the openHAB console by typing:
smarthome:send Tablet_Command "SCREEN_ON"
Make sure to quote the complete command in the console as shown above.