Esphome example blink
# Blink the green LED on D1 (GPIO4)
output:
- platform: gpio
pin:
number: D3
mode: output
id: greenLED
interval:
- interval: 500ms
then:
- output.turn_on: greenLED
- delay: 250ms
- output.turn_off: greenLED