OH3 - ....actions refers to the missing type Object

  • Platform information:
    • Hardware: RPI4
    • OS: openhabian
    • Java Runtime Environment: latest
    • openHAB version: 3.0

i get the following Error in LOG, after restart of OH3:

2021-01-03 15:15:24.467 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘13_shelly-update.rules’

2021-01-03 15:15:24.570 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘13_shelly-update.rules’, using it anyway:

The field Tmp_13_shelly-updateRules.actions refers to the missing type Object


var actions = getActions(“pushover”, “pushover:pushover-account:xxxxxxxxx”)

rule “Shelly Update erforderlich”
Item gShellyUpdate received update
actions.sendHtmlMessage("Folgender Shelly benötigt ein Update: " + triggeringItem.name, “[openHAB - Info]”)

I think the problem is with the triggeringItem.name.
How can I solve the problem? Is there an alternative to triggeringItem.name

You’ve two problems. Saving the Action in a global variable like you are doing here fails often, usually caused by problems with timing (i.e. the rule is loaded before the Thing is loaded and ready).

Always make the call to getActions inside the rule.

Secondly, if you review the list of breaking changes in the OH 3 release announcement you will see that triggeringItem will only exist for Member of triggers. For all other Item triggers, triggeringItemName will be defined with the name of the Item that triggered the rule

1 Like

Thank you for the solution Rich :slight_smile: