A BinarySensor provides a boolean output. Given the addition of the CurrentState and PossibleStates properties to Sensor, ...

A BinarySensor provides a boolean output. Given the addition of the CurrentState and PossibleStates properties to Sensor, the BinarySensor subclass is no longer necessary, but is retained for backward compatibility. A BinarySensor can be created by instantiating a Sensor with two PossibleStates.