Attached is a sample project file in version 7.4 of the HomeWorks QS software that has the following functionality
When sensor 1 goes occupied zones 1 and 3 turn on
When sensor 1 goes unoccupied it will turn off zones 1 and 3 if sensor 2 is unoccupied. If sensor 2 is occupied then sensor 1 will only turn off zone 1
When sensor 2 goes occupied zones 2 and 3 turn on
When sensor 2 goes unoccupied it will turn off zones 2 and 3 of sensor 1 is unoccupied. If sensor 1 is occupied then sensor 2 will only turn off zone 2.
To accomplish this programming no variables are used but the sensor programmed as conditional.
Sensor 1: There are 3 actions. There is a “Light on” action that turns on zones 1 and 3. There is a “Light 1 off” action that turns zone 1 off. There is a “Lights 1 and 3 off” action that has both zones 1 and 3 turning off. On the Occupied tab of the senor the run the “Lights on” scene. In the Unoccupied tab there is conditional that if sensor 2 is occupied run the “Light 1 off” scene else run the “Lights 1 and 3 off” scene.
Sensor 2: There are 3 actions. There is a “Light on” action that turns on zones 2 and 3. There is a “Light 2 off” action that turns zone 2 off. There is a “Lights 2 and 3 off” action that has both zones 2 and 3 turning off. On the Occupied tab of the senor the run the “Lights on” scene. In the Unoccupied tab there is conditional that if sensor 1 is occupied run the “Light 2 off” scene else run the “Lights 2 and 3 off” scene.