Zone node with AND function?

Hi

I have set up a Zone node that turns off my lights when i leave home, but as i have 2 entities this is causing issues, the node is automatically OR if i add more than one entity. So if me OR the other leave then the lights turn off but i need it to be both but can not figure it out.
Have someone done something similar and can help me?

Hi,
Add

node-red-contrib-bool-gate

add via manage palette

Thanks, i have looked at this before but can not figure out how to configure it… i have 2 entities that change state and i can not figure out how to make this understand that i want both to be in one state to trigger…

You can use a trigger node. Set entity to list add the two device tracker where light.lefty and light.righty and also in the conditional.

Figured out how to configure the and gate but this is even easier! thank you!

Could you post what setup you used? I have the same issue with multiple people entering/leaving a zone and controlling the lights. Entity states with trigger node doesn’t quite make sense to me above since the trigger is on a zone notification.