Mercurial > code > home > repos > homeauto
comparison espNode/bed.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 | 5eac87c0f5b6 |
comparison
equal
deleted
inserted
replaced
772:2500a3ee9102 | 773:bc3516d02762 |
---|---|
1 # https://cdn.hackaday.io/files/269911154782944/Heltec_WIFI-LoRa-32_DiagramPinout.jpg | |
2 | |
3 esphome: | |
4 name: bed | |
5 platform: ESP32 | |
6 board: lolin32 | |
7 build_path: build | |
8 | |
9 wifi: | |
10 ssid: !secret wifi_ssid | |
11 password: !secret wifi_password | |
12 domain: '' | |
13 use_address: 10.2.0.90 # not stable! | |
14 | |
15 mqtt: | |
16 broker: '10.2.0.1' | |
17 port: 1883 | |
18 username: '' | |
19 password: '' | |
20 | |
21 logger: | |
22 baud_rate: 115200 | |
23 level: DEBUG | |
24 | |
25 ota: | |
26 | |
27 #dallas: | |
28 # - pin: GPIO16 | |
29 #sensor: | |
30 # - platform: dallas | |
31 # index: 0 | |
32 # name: temperature | |
33 | |
34 switch: | |
35 - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 2, inverted: yes}, name: red_button} | |
36 - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 15, inverted: yes}, name: green_button} | |
37 - {platform: gpio, pin: GPIO16, name: pir} | |
38 | |
39 output: | |
40 - {platform: ledc, pin: GPIO19, id: headboard_w } | |
41 - {platform: ledc, pin: GPIO23, id: headboard_r } | |
42 - {platform: ledc, pin: GPIO18, id: headboard_g } | |
43 - {platform: ledc, pin: GPIO17, id: headboard_b } | |
44 | |
45 light: | |
46 - platform: rgbw | |
47 name: headboard | |
48 red: headboard_r | |
49 green: headboard_g | |
50 blue: headboard_b | |
51 white: headboard_w | |
52 | |
53 | |
54 i2c: | |
55 sda: 4 | |
56 scl: 15 | |
57 | |
58 font: | |
59 - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf" | |
60 id: font_vera | |
61 size: 12 | |
62 glyphs: "+-_.:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz" | |
63 | |
64 text_sensor: | |
65 - platform: wifi_info | |
66 ip_address: | |
67 name: wifi_ip | |
68 id: wifi_ip | |
69 ssid: | |
70 name: wifi_ssid | |
71 bssid: | |
72 name: wifi_bssid | |
73 | |
74 sensor: | |
75 - platform: wifi_signal | |
76 id: my_wifi_signal | |
77 name: wifi_signal | |
78 update_interval: 4s | |
79 internal: true # no mqtt | |
80 | |
81 display: | |
82 - platform: ssd1306_i2c | |
83 model: "SSD1306 128x64" | |
84 reset_pin: 16 | |
85 address: 0x3C | |
86 lambda: |- | |
87 it.print(0, 0, id(font_vera), "bed 2: running"); | |
88 it.printf(0, 20, id(font_vera), "wifi %s %.2f", id(wifi_ip).state.c_str(), id(my_wifi_signal).state); | |
89 |