Compatible with binary_sensor input