I have placed sensors on each of of fridge doors. Its has split doors for the refrigerator and a pull out freezer drawer. There is a WS2812 attached to as well. The way I have it setup right now will turn the light on if any door is open and will turn it off when a door is closed. The problem I’m having is that if both fridge doors get opened but only one is shut the light still goes off.
I’d like to create an internal sensor that is “open” if any number of doors is open so that the light will be on if a door is open. I can’t wrap my head around a template sensor, but I think that is what I need.
Post your door sensor names and I’ll give it a go.
EDIT: Actually the easiest way to approach this would be to add your door sensors to a group. If either door is open (on) the group will be on. Trigger your light from the group state.
This looks right to me although you probably don’t even need the == true. The documentation about template binary sensors has one more check in case of unknown state of the conditions. You may want to consider how to handle that case.
I’d love to know however this is set up on the hardware side, are these magnetic reed switches?