annotate espNode/sonoff_light.yaml @ 1739:28a3e35bc23f

mqtt server & options
author drewp@bigasterisk.com
date Fri, 01 Sep 2023 17:12:06 -0700
parents c480732442ec
children
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:
1739
28a3e35bc23f mqtt server & options
drewp@bigasterisk.com
parents: 1737
diff changeset
2 # names end with 0..4
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
3 name: sonoff_4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
4 platform: esp8266
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
5 board: esp01_1m
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
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
11 mqtt:
1739
28a3e35bc23f mqtt server & options
drewp@bigasterisk.com
parents: 1737
diff changeset
12 broker: "mqtt2.bigasterisk.com"
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
13 port: 1883
1737
c480732442ec reformat
drewp@bigasterisk.com
parents: 773
diff changeset
14
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
15 logger:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
16 baud_rate: 115200
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
17 level: INFO
1737
c480732442ec reformat
drewp@bigasterisk.com
parents: 773
diff changeset
18
773
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
19 ota:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
20
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
21 binary_sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
22 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
23 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
24 number: GPIO0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
25 mode: INPUT_PULLUP
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
26 inverted: True
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
27 name: "Sonoff Basic Button"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
28 on_press:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
29 - switch.toggle: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
30
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
31 switch:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
32 - platform: gpio
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
33 name: "Sonoff Basic Relay"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
34 pin: GPIO12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
35 id: relay
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
36
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
37 status_led:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
38 pin:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
39 number: GPIO13
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
40 inverted: yes