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
|
|
16 username: ''
|
|
17 password: ''
|
|
18
|
|
19 logger:
|
|
20 baud_rate: 115200
|
|
21 level: INFO
|
|
22
|
|
23 ota:
|
|
24
|
|
25
|
|
26 binary_sensor:
|
|
27 - platform: gpio
|
|
28 pin:
|
|
29 number: GPIO0
|
|
30 mode: INPUT_PULLUP
|
|
31 inverted: True
|
|
32 name: "Sonoff Basic Button"
|
|
33 on_press:
|
|
34 - switch.toggle: relay
|
|
35
|
|
36 switch:
|
|
37 - platform: gpio
|
|
38 name: "Sonoff Basic Relay"
|
|
39 pin: GPIO12
|
|
40 id: relay
|
|
41
|
|
42 status_led:
|
|
43 pin:
|
|
44 number: GPIO13
|
|
45 inverted: yes
|