Error message in Treshold Alert Rule

Today I changed the triggering group of my Treshold Alert rule and when I run the rule via the “Play” button a new message appeared: These Items do not have thresholdAlert metadata and will use the default properties defined in the rule. I have no clue what that means as I changed nothing at the items. As I changed back to the originally rule the message also appeared naming all items of the group. Today I upgraded to OH 5.1.0.

Always pay attention to the level of log statements. Logs at the INFO level are never errors, they are just informational. Logs at the WARN level are often something wrong has happened but the process is able to continue. Only logs at the ERROR level are really something went wrong.,

When you run Threshold Alert manually, it performs a series of tests to make sure the configuration is valid and the rule can run. Among the things it checks for is to see if the Items that are members of the triggering Group have the thresholdAlert metadata (or what ever name you chose when you created the rule). It’s not an error though, just information.

If you expected all your Items to have this metadata this information could be useful to you as it tells you which Items do not.

If you expected some of your Items to have this metadata, this information could be useful to you because it tells you which Items do not.

But it’s just informational, not necessarily an error unless it shows an Item not having the metadata that you expected to have it.

Note, make sure you’ve upgraded the template too. Over time the templates get updated with bug fixes and to keep up with OH changes. You can always tell if you are up to date by comparing the version number in the first line of the script action and the latest version number on the marketplace posting. The latest version of Threshold Alert is 1.7.

For rules created prior to 5.0 the upgrade process is as follows:

  1. disable the old rule
  2. open the code tab and record the configuration
  3. go to the Add-on store → Automation and remove Thershold Alert
  4. I usually refresh the page but that is probably not necessary. Add Threshold Alert again to get the latest version
  5. From Settings → Rules create a new rule based on Threshold Alert with the configuration settings you saved in 2
  6. Once tested to work correctly, remove the rule you disabled in 1

For rules created after 5.0 the upgrade process is as follows:

  1. go to the Add-on store → Automation and remove Threshold Alert
  2. I usually refresh the page but that is probably not necessary. Add Threshold Alert again to get the latest version
  3. From Settings → Rules find and select all the rules with the tag “Marketplace:144863”
  4. click the “regenerate” icon in the bottom right

For rules created after 5.0, if you ever need to change a parameter on a rule, you can open the rule and click “regenerate”. You will be given the opportunity to fill out the parameters again and the rule will be recreated using the latest version of the tempalte.