Another rule is making my hair grey. I get no errors, but nothing seems to happen, not even logging.
What am I doing wrong? (I grap´d this rule from another thread and build something I thought was working).
This is mostly self explained, I hope.
rule "Automatic controle of all skylight windows"
when
Item NetamoUdendoersTemperature changed
then
if(NetamoUdendoersTemperature.state >= 25 && alarm_totalalarm.state == OFF && Node13_SensorLuminance.state >= 100) {
logInfo("Skylight windows controle: ","Alarm OFF, outdoor temperature >=25grader, windows 100% open")
VeluxAlleAaben100.sendCommand(ON)
}
else if (NetamoUdendoersTemperature.state >= 23 && alarm_totalalarm.state == OFF && Node13_SensorLuminance.state >= 100) {
logInfo("Skylight windows controle: ","Alarm OFF, outdoor temperature >=23 degrees, windows 75% open")
VeluxAlleAaben75.sendCommand(ON)
}
else if (NetamoUdendoersTemperature.state >= 20 && alarm_totalalarm.state == OFF && Node13_SensorLuminance.state >= 100) {
logInfo("Skylight windows controle: ","Alarm OFF, outdoor temperature >=20 degrees, windows 50% open")
VeluxAlleAaben50.sendCommand(ON)
}
else if (NetamoUdendoersTemperature.state < 19 && alarm_totalalarm.state == OFF && Node13_SensorLuminance.state >= 100) {
logInfo("Skylight windows controle: ","Alarm OFF, outdoor temperature < 19 degres, windows on ventilation")
VeluxAlleVent.sendCommand(ON)
}
else if (NetamoUdendoersTemperature.state < 18 && alarm_totalalarm.state == OFF && Node13_SensorLuminance.state >= 100) {
logInfo("Skylight windows controle: ","Alarm OFF, outdoor temperature <18 degrees , close windows")
VeluxAlleLuk.sendCommand(ON)
}
end
// Logic.
// All skylight windows automatic controlled from these criterias:
//
// - Alarm is OFF (someone is at home).
// - Outdoor temperature as set.
// - Lumiance has to be bigger than 100 Lux.