Create a state based on a logic operation considering other states.

By using a logical AND- or OR- operator, several other binary sensors or states can be combined in one logical state.
For example, you may set a state 'Light on 1st floor' to on or off if the light in any of the selected rooms is turned on. Therefore, you add the state 'Light is on' for all required rooms and select the OR-operator.