annotate espNode/bed.yaml @ 1735:5eac87c0f5b6

rm old config
author drewp@bigasterisk.com
date Fri, 01 Sep 2023 13:47:42 -0700
parents bc3516d02762
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 # https://cdn.hackaday.io/files/269911154782944/Heltec_WIFI-LoRa-32_DiagramPinout.jpg
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
2
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
3 esphome:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
4 name: bed
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
5 platform: ESP32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
6 board: lolin32
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
7
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
8 wifi:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
9 ssid: !secret wifi_ssid
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
10 password: !secret wifi_password
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
11 domain: ''
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: DEBUG
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 #dallas:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
26 # - pin: GPIO16
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
27 #sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
28 # - platform: dallas
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
29 # index: 0
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
30 # name: temperature
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
31
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
32 switch:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
33 - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 2, inverted: yes}, name: red_button}
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
34 - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 15, inverted: yes}, name: green_button}
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
35 - {platform: gpio, pin: GPIO16, name: pir}
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
36
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
37 output:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
38 - {platform: ledc, pin: GPIO19, id: headboard_w }
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
39 - {platform: ledc, pin: GPIO23, id: headboard_r }
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
40 - {platform: ledc, pin: GPIO18, id: headboard_g }
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
41 - {platform: ledc, pin: GPIO17, id: headboard_b }
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
42
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
43 light:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
44 - platform: rgbw
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
45 name: headboard
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
46 red: headboard_r
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
47 green: headboard_g
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
48 blue: headboard_b
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
49 white: headboard_w
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
50
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
51
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
52 i2c:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
53 sda: 4
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
54 scl: 15
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
55
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
56 font:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
57 - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
58 id: font_vera
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
59 size: 12
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
60 glyphs: "+-_.:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
61
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
62 text_sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
63 - platform: wifi_info
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
64 ip_address:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
65 name: wifi_ip
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
66 id: wifi_ip
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
67 ssid:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
68 name: wifi_ssid
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
69 bssid:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
70 name: wifi_bssid
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
71
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
72 sensor:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
73 - platform: wifi_signal
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
74 id: my_wifi_signal
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
75 name: wifi_signal
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
76 update_interval: 4s
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
77 internal: true # no mqtt
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
78
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
79 display:
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
80 - platform: ssd1306_i2c
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
81 model: "SSD1306 128x64"
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
82 reset_pin: 16
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
83 address: 0x3C
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
84 lambda: |-
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
85 it.print(0, 0, id(font_vera), "bed 2: running");
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
86 it.printf(0, 20, id(font_vera), "wifi %s %.2f", id(wifi_ip).state.c_str(), id(my_wifi_signal).state);
bc3516d02762 old changes in espNode
drewp@bigasterisk.com
parents:
diff changeset
87