Hi All,
I need to configure a set of rules to engage a zone clean with my vacuum. I made this configuration
default.item:
Switch Zone1_Clean "clean zone 1" (gZoneClean) Switch Zone2_Clean "clean zone 2" (gZoneClean)
Group:Switch:OR(ON, OFF) gZoneClean “All Zone Switch”
//following rule send the command for zone 1 clean
rule “Zone 1 Clean”
when
Item Zone1_Clean changed to ON
then
Brunetta_Actions_ExecuteCommand.sendCommand(“app_zoned_clean[[22261,20733,29211,26133,1]]”)
endrule “Zone 2 Clean”
when
Item Zone2_Clean changed to ON
then
Brunetta_Actions_ExecuteCommand.sendCommand(“app_zoned_clean[[29369,22152,31069,26052,1]]”)
now, I have two problem:
- I want if the vacuum is cleaning zone 1 and I switch ON zone 2, it have to stop zone 1 to go in zone 2.
So I need the command to end the running task - if I switch ON a second zone, I’d like the first one to switch OFF (is it possible to configure a group to leave only one switch ON?)
Thanks to all want to help me