ESP8266 ESP-12F

ESP8266 ESP-12F Board, turn on relay and detect motion from a PIR on pin 14
mail@pastecode.io avatar
unknown
yaml
2 months ago
338 B
2
Indexable
Never
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
Leave a Comment