Weights for a combination of triggers???

I know that we can define a condition to be a combination of triggers, but is it possible to make a particular trigger have a higher weight?

I/E: In the sample below, each trigger is defined as one. When c_WinDoorSensors >2, meaning three+ windows or doors are open, then do an action.

c_WinDoorSensors = t_bDoorOpen + t_fDoorOpen + t_Window1Open + t_Window2Open + t_Window3Open + t_Window4Open + t_Window5Open

Can I define a door to have a value of 2 and leave the windows as a value of 1? When I open 3 windows do X. Or if I open 1 window and 1 door, a value of 3, do X.

Where I am going with this is that my HouseFan goes from low to high when 4 windows are open. However the doors are much larger than a window and allow more air flow. Is it possible to just add a +1 into the condition?

c_WinDoorSensors = (t_bDoorOpen +1) + (t_fDoorOpen +1) + t_Window1Open + t_Window2Open + t_Window3Open + t_Window4Open + t_Window5Open

Best Home Automation shopping experience. Shop at getvera!

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