Skip to content

Motion Detection

Detect motion using a simple PIR Sensor.

ubihome:
  name: UbiHome Example

gpio:
  device: raspberryPi

binary_sensor:
  - platform: gpio
    name: "motion"
    icon: "mdi:motion-sensor"
    device_class: presence
    pin: 23
    pull_up: true
    update_interval: "0s"
    filters:
     - delayed_off: 10s

You can combine this with the screen on/off example to turn the screen on when motion is detected and off after a timeout. Look at the automat screen control on how to set it up.