example_motion: module: motion class: MotionSensor motion_sensor: binary_sensor.bathroom_motion_occupancy light: light.bathroom off_duration: 10