Hi folks,
I have a rule that is working partially:
rule "Attic Comfort"
when
Item Netatmo_HobbyRoom_Temperature received update or
Item Daikin_Attic_AC_Mode changed to OFF or
System started
then
if (!(Netatmo_LivingRoom_Temperature.state instanceof DecimalType) || (Daikin_Attic_AC_Mode == ON)) {
return;
}
if ((now.getDayOfWeek == 6) || (Auto_Energy_Timeslot.state == 3)) {
if (Netatmo_HobbyRoom_Temperature.state < 19.0) {
Daikin_Attic_ACMode.sendCommand("HEAT")
Daikin_Attic_ACSetPoint.sendCommand(22)
Daikin_Attic_ACPower.sendCommand(ON)
}
else if (Netatmo_HobbyRoom_Temperature.state > 28.0) {
Daikin_Attic_ACMode.sendCommand("COLD")
Daikin_Attic_ACSetPoint.sendCommand(25)
Daikin_Attic_ACPower.sendCommand(ON)
}
else if (Daikin_Attic_ACPower == ON) {
if (Daikin_Attic_ACMode.state.toString.contains("HEAT") && Netatmo_HobbyRoom_Temperature.state >= 20.0){
Daikin_Attic_ACPower.sendCommand(OFF)
}
else if (Daikin_Attic_ACMode.state.toString.contains("COLD") && Netatmo_HobbyRoom_Temperature.state <= 26.0){
Daikin_Attic_ACPower.sendCommand(OFF)
}
}
}
else {
return;
}
end
The idea is:
- when it’s Saturday, or when the energy timeslot is OK (during the night/sunday), my air conditioner needs to start working
- if the temperature is lower than 19 celsius, the mode is “heat”
- if the temperature is more than 28 celsius, the mode is “cold”
- if the temperature is more or equal 20 celsius, in heating mode I need to stop it
- if the temperature is lower or equal 25 celsius, in cooling mode I need to stop it
The air conditioner starts working properly, but I’m not able to stop it. Any suggestion?
FYI
Daikin_Attic_AC_Mode is a virtual switch (to set the mode auto or manual)
Daikin_Attic_ACMode is a channel to change the air conditioner mode from cold to heat to dehumidifier to fan
thanks
Andrea