Help needed in PLEG Logic

hi Guys newbie here , could use some advise . I have 3 switches , lets call them Main-Sw , Sub-Sw1 and Sub-Sw 2.

When controlled by Main-sw is “1” , sub-sw1 AND sub-sw2 must go “1”
When controlled by Main-sw is “0” , sub-sw1 AND sub-sw2 must go “0”

When controlled by Sub-sw1 AND Sub-sw2 goes “0” , Main-sw must go “0”

All of the above i can sucessfully implement in PLEG , but when i add in another condition like this :

When controlled by either Sub-Sw1 or Sub-Sw2 to go “1” , Main-Sw must go “1”

This brings about a loop effect as Main-Sw goes “1” , as it takes the first condition and turns both Sub-sw ( when i only needed to turn on 1 of the sub-sw )

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules