#motion_sensor #esphome #home_assistant
Learn how to make a smart motion sensor with ESP development board and Home Assistant.
Invitation Link to join my Exclusive membership:
[ Ссылка ]
00:15 Introduction
01:39 Programming
06:10 Wiring
07:43 ESPHome integration
08:37 Testing the sensor
Codes:
#Motion Sensor:
binary_sensor:
- platform: gpio
pin: 4
name: "Motion Sensor"
device_class: motion
#Automation:
on_press:
then:
- switch.turn_on: relay_1
on_release:
then:
- switch.turn_off: relay_1
#Output:
switch:
- platform: gpio
pin: 16
name: "Relay 1"
id: relay_1
Low Trigger Relay Module:
[ Ссылка ]
ESP8266 Development Board Pins:
t.ly/FI6L
ESP32 Development Board Pins:
t.ly/mBkq
HC-SR501 Motion Sensor Module:
t.ly/9QLv
t.ly/fY9G
Home Assistant integration with ESP32 flashed with ESPHome:
[ Ссылка ]
BUY ME A COFFEE:
[ Ссылка ]
#esp32 #esp8266 #development_board #integration #smart_motion_sensor #pir_sensor #pir #smart_switch #smart_lighting #alarm_sysytem #wifi #zigbee #zwave #z-wave #zigbee #iot #bms #smart_home #home_automation #automation #automations #peace #comfort #energy_saving #security #philio #ezlo #fibaro #homey #vera
![](https://i.ytimg.com/vi/opUb_FG1BPE/maxresdefault.jpg)