After boot I get a Rule error
The field Tmp_garageRules.mailActions refers to the missing type Object
Then when I edit after I don’t get any validation errors.
is this just telling me that my email thing isn’t initialised yet?
rules code:
val mailActions = getActions("mail","mail:smtp:mythbox_mail")
door="Door1"
open_duration = ((now.toInstant().toEpochMilli() - doorOpenTime1) / 60000)
mailActions.sendMail(email,"Garage closed " + door, "Garage closed "+ door + " was open for " + open_duration + " mins")
Openhab log file after boot up
2021-08-14 08:26:51.684 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'garage.rules', using it anyway:
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object
The field Tmp_garageRules.mailActions refers to the missing type Object