Hi,
I can`t figure out why getting this error. This rule below appears to be simple but it is causing me some issues. Any ideas?
2019-03-11 23:10:31.360 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home.rules' has errors, therefore ignoring it: [434,1]: missing EOF at 'val'
val maxHumidity = 67
val minHumidity = 58
rule "Turn ON Vent"
when
Item Humidity_GF_Bath changed
then
if (Humidity_GF_Bath.state as Number > maxHumidity &&
Humidity_GF_Bath.state != NULL &&
Humidity_GF_Bath.state != UNDEF &&
Humidity_GF_Bath.state > 0) {
if (Fan_GF_Bath.state != ON) Fan_GF_Bath.sendCommand(ON)
}
else
if (Humidity_GF_Bath.state as Number < minHumidity) {
Fan_GF_Bath.sendCommand(OFF)
}
end