773
|
1 esphome:
|
1739
|
2 # names end with 0..4
|
773
|
3 name: sonoff_4
|
|
4 platform: esp8266
|
|
5 board: esp01_1m
|
|
6
|
|
7 wifi:
|
|
8 ssid: !secret wifi_ssid
|
|
9 password: !secret wifi_password
|
|
10
|
|
11 mqtt:
|
1739
|
12 broker: "mqtt2.bigasterisk.com"
|
773
|
13 port: 1883
|
1737
|
14
|
773
|
15 logger:
|
|
16 baud_rate: 115200
|
|
17 level: INFO
|
1737
|
18
|
773
|
19 ota:
|
|
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
|