Combining two sensors into one

Is it possible somehow? I have two binary sensors with armed/disarmed state and would like to create a new one (via template?) that has Armed state if either of the two sensors is on and Disarmed if they are both in a disarmed state.
Or maybe a switch?

Create a group containing the two sensors. The default behavior of a group is to indicate it is on if at least one of its group members is on. It will only indicate off if all of its group members are off. This is precisely the behavior you requested:

Armed state if either of the two sensors is on and Disarmed if they are both in a disarmed state

1 Like

So binary sensors only have the states on and off, although they can be displayed differently in the UI if they have a device_class specified. But when I looked at the currently defined binary device classes, there are none that display as Armed and Disarmed. Are you sure your two sensors are binary sensors (i.e., binary_sensor.xxx), or are they just plain sensors (i.e., sensor.xxx)?

Yes that’s exactly the usage I am looking for, thank you.