Text Rule Questions (CLOSED)

Few things when using text rules

  1. is there a way to add notes and document what your rule does

  2. theres not much feedback in KARAF that a rule has run is there a way to output something to the KARAF console for eg Rule Dim light 1 ran

You can put looging lines into the code that wil be logged and therefor shown using log:tail on Karaf.


See here:https://docs.openhab.org/administration/logging.html#create-log-entries-in-rules

  1. Comments… two forward slashes indicate a comment. e.g.
// this is a comment
  1. Logging. Just add a logging message. e.g.
  logInfo("Xmas Lights", "Turning Gazebo Lights Off (Evening)")
1 Like