773
|
1 esphome:
|
|
2 name: sonoff_4
|
|
3 platform: esp8266
|
|
4 board: esp01_1m
|
|
5 build_path: build
|
|
6
|
|
7 wifi:
|
|
8 ssid: !secret wifi_ssid
|
|
9 password: !secret wifi_password
|
|
10 # use_address: 10.2.0.96
|
|
11 # domain: '.bigasterisk.com'
|
|
12
|
|
13 mqtt:
|
|
14 broker: '10.2.0.1'
|
|
15 port: 1883
|
1737
|
16
|
773
|
17 logger:
|
|
18 baud_rate: 115200
|
|
19 level: INFO
|
1737
|
20
|
773
|
21 ota:
|
|
22
|
|
23 binary_sensor:
|
|
24 - platform: gpio
|
|
25 pin:
|
|
26 number: GPIO0
|
|
27 mode: INPUT_PULLUP
|
|
28 inverted: True
|
|
29 name: "Sonoff Basic Button"
|
|
30 on_press:
|
|
31 - switch.toggle: relay
|
|
32
|
|
33 switch:
|
|
34 - platform: gpio
|
|
35 name: "Sonoff Basic Relay"
|
|
36 pin: GPIO12
|
|
37 id: relay
|
|
38
|
|
39 status_led:
|
|
40 pin:
|
|
41 number: GPIO13
|
|
42 inverted: yes
|