comparison sonoff_light_0.yaml @ 6:477883ce71ec

more boards
author drewp@bigasterisk.com
date Thu, 27 Jun 2024 16:25:24 -0700
parents
children
comparison
equal deleted inserted replaced
5:7914d368d7b2 6:477883ce71ec
1 esphome:
2 name: sonoff_0
3 platform: esp8266
4 board: esp01_1m
5
6 logger:
7 level: INFO
8
9 wifi:
10 networks:
11 - ssid: !secret wifi_ssid
12 password: !secret wifi_password
13
14 ota:
15 platform: esphome
16
17 mqtt:
18 id: mqtt_client
19 broker: "mqtt2.bigasterisk.com"
20
21 binary_sensor:
22 - platform: gpio
23 pin:
24 number: GPIO0
25 mode: INPUT_PULLUP
26 inverted: True
27 name: "Sonoff Basic Button"
28 on_press:
29 - switch.toggle: relay
30
31 switch:
32 - platform: gpio
33 name: "Sonoff Basic Relay"
34 pin: GPIO12
35 id: relay
36
37 status_led:
38 pin:
39 number: GPIO13
40 inverted: yes