I’ve got some rules that send warnings over pushover.
I’ve just noticed this generate some errors (openhab.log) when I save the rule in OH2.:
2017-10-12 13:50:32.814 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'inbraak.rules', using it anyway:
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
2017-10-12 13:50:32.815 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'inbraak.rules'
2017-10-12 13:50:33.317 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'inbraak.rules', using it anyway:
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
2017-10-12 13:50:33.342 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'inbraak.rules'
2017-10-12 13:50:33.964 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'inbraak.rules', using it anyway:
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
The field Tmp_inbraakRules.last_pushover refers to the missing type Object
2017-10-12 13:50:33.981 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'inbraak.rules'
My rules (inbraak.rules) contains following:
var string last_pushover = null
rule "Activeer alarm bij het openen van een deur/venster..."
when
Item Poort_Werkplaats changed to ON or
Item Poort_Atelier changed to ON or
Item Deur_Inkom changed to ON or
Item Deur_Hal changed to ON or
Item Venster_Hal changed to ON or
...
then
if (AlarmMode.state == "RED") {
val String act_pushover=ALL_entries.members.sortBy[lastUpdate].last.name.replace('_', ' ')
if (act_pushover != last_pushover) {
last_pushover = act_pushover
logInfo("Alarm", "De " + act_pushover + " werd geopend in alarmmodus, wordt het nog gedeactiveerd?")
Thread::sleep(30000) // Een halve minuut wachten
if (AlarmMode.state == "RED") {
........
I’ve tried to follow another topic regarding a similar error. But couldn’t find solution.
Any suggestion how to solve this ‘warning’?