Implemented binary sensor.