Best Practice LastUpdate rule

Assuming the rule DSL uses the org.openhab.model.script.actions.BusEvent class for the postUpdate implementation, there are only specific combinations of types that are supported. They are:

  • Item, Number
  • Item, State
  • Item, String
  • String, String

A String,DateTimeType combination doesn’t match any of those combinations. You may need to convert the DateTimeType to a String if you are using a String for the first argument.

I’ve run into this issue frequently with JSR223 Jython rules, but it may apply to the rule DSL as well. It seems to be consistent with the error messages you are seeing.