annotate espNode/sonoff_light.yaml @ 773:bc3516d02762

old changes in espNode Ignore-this: cbdcaf859b465e76c2c98e0d4510a1d3
author drewp@bigasterisk.com
date Sun, 28 Jun 2020 14:05:12 -0700
parents
children c480732442ec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
1 esphome:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
2 name: sonoff_4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
3 platform: esp8266
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
4 board: esp01_1m
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
5 build_path: build
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
6
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
7 wifi:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
8 ssid: !secret wifi_ssid
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
9 password: !secret wifi_password
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
10 # use_address: 10.2.0.96
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
11 # domain: '.bigasterisk.com'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
13 mqtt:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
14 broker: '10.2.0.1'
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
15 port: 1883
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
16 username: ''
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
17 password: ''
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
18
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
19 logger:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
20 baud_rate: 115200
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
21 level: INFO
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
22
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
23 ota:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
24
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
25
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
26 binary_sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
27 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
28 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
29 number: GPIO0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
30 mode: INPUT_PULLUP
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
31 inverted: True
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
32 name: "Sonoff Basic Button"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
33 on_press:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
34 - switch.toggle: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
35
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
36 switch:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
37 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
38 name: "Sonoff Basic Relay"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
39 pin: GPIO12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
40 id: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
41
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
42 status_led:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
43 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
44 number: GPIO13
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
45 inverted: yes