Mercurial > code > home > repos > homeauto
view espNode/sonoff_light.yaml @ 1754:92999dfbf321 default tip
add shelly support
author | drewp@bigasterisk.com |
---|---|
date | Tue, 04 Jun 2024 13:03:43 -0700 |
parents | 28a3e35bc23f |
children |
line wrap: on
line source
esphome: # names end with 0..4 name: sonoff_4 platform: esp8266 board: esp01_1m wifi: ssid: !secret wifi_ssid password: !secret wifi_password mqtt: broker: "mqtt2.bigasterisk.com" port: 1883 logger: baud_rate: 115200 level: INFO ota: binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Sonoff Basic Button" on_press: - switch.toggle: relay switch: - platform: gpio name: "Sonoff Basic Relay" pin: GPIO12 id: relay status_led: pin: number: GPIO13 inverted: yes