annotate espNode/sonoff_light.yaml @ 1737:c480732442ec

reformat
author drewp@bigasterisk.com
date Fri, 01 Sep 2023 17:10:47 -0700
parents bc3516d02762
children 28a3e35bc23f
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
1737
c480732442ec reformat
drewp@bigasterisk.com
parents: 773
diff changeset
16
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
17 logger:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
18 baud_rate: 115200
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
19 level: INFO
1737
c480732442ec reformat
drewp@bigasterisk.com
parents: 773
diff changeset
20
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
21 ota:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
22
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
23 binary_sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
24 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
25 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
26 number: GPIO0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
27 mode: INPUT_PULLUP
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
28 inverted: True
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
29 name: "Sonoff Basic Button"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
30 on_press:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
31 - switch.toggle: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
33 switch:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
34 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
35 name: "Sonoff Basic Relay"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
36 pin: GPIO12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
37 id: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
38
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
39 status_led:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
40 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
41 number: GPIO13
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
42 inverted: yes