Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 394 Bytes

File metadata and controls

19 lines (16 loc) · 394 Bytes

MQTT Binary Sensor - Motion - Home Assistant

A simple example to use a PIR motion sensor connected to a NodeMCU board (ESP8266).

Configuration

configuration.yaml :

binary_sensor:
  platform: mqtt
  state_topic: 'office/motion/status'
  name: 'Motion'
  sensor_class: motion

Schematic

  • PIR leg 1 - VCC
  • PIR leg 2 - D1/GPIO5
  • PIR leg 3 - GND

Schematic