ESP8266 ESP-12F

ESP8266 ESP-12F Board, turn on relay and detect motion from a PIR on pin 14
 avatar
unknown
yaml
a year ago
338 B
5
Indexable
captive_portal:

binary_sensor:
 - platform: gpio
   pin: 14
   name: "PIR Sensor"
   device_class: motion
   
output:
  - platform: gpio
    pin: GPIO5
    id: light_output
    inverted: false  # Invert the output logic

light:
  - platform: binary
    name: "ESP32 Light"
    id: esp32_light
    output: light_output
Editor is loading...
Leave a Comment