Skip to content

Latest commit

 

History

History

ha_mqtt_binary_sensor_pir

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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