You need a rule to switch manualAuto back to “auto” after manualTime or fanSpeed is updated.
rule "Reset manualAuto"
when
Item manualTime received command or
Item fanSpeed received command
then
Thread::sleep(5000) // wait a few seconds before changing to give user a chance to set both parameters
manualAuto.sendCommand("auto")
end
NOTE: Assumes that manualAuto, manualTime, and fanSpeed are all String Items.
rule "Reset manualAuto"
when
Item manTime received update
then
if (manTime.state == "hour") {
Thread::sleep(5000) // wait a few seconds before changing to give user a chance to set both parameters
manAuto.sendCommand("auto")
}
else if {
(manTime.state == "two")
Thread::sleep(10000) // wait a few seconds before changing to give user a chance to set both parameters
manAuto.sendCommand("auto")
}
else if {
(manTime.state == "four")
Thread::sleep(50000)
manAuto.sendCommand("auto")
}
end
The first two are okay but third no sleep, send command immediately