Now let’s configure a simple LED module to make an easy on / off light indicator.
LED Module needed :
- LED Module –> Find it
Plug GND to GND, VCC to 3.3v of the Wemos D1, IN to D0
ESPHome code :
esphome:
name: multisensor1
friendly_name: MultiSensor1
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "*****************************"
ota:
password: "**************************"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Multisensor1 Fallback Hotspot"
password: "*******************"
output:
- id: Green_Led_Indicator
platform: gpio
pin: D0
light:
- platform: binary
name: "LED Green"
output: Green_Led_Indicator
Flash the firmware then go to your ESPHome device :
Leave a Reply