Mercurial > code > home > repos > homeauto
comparison espNode/frontwindow.yaml @ 1527:ed3d29eb989a
espNode was not a service; move it to top dir
Ignore-this: 3a46fb9f4d09a046dcc30ec838923d69
darcs-hash:711b2e30f5117dbacde98394bfd32791c953a3c7
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 16:43:46 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1526:c476543e761e | 1527:ed3d29eb989a |
---|---|
1 substitutions: | |
2 location: display1 | |
3 board: d1_mini | |
4 | |
5 <<: !include esp8266_nightlight.yaml | |
6 | |
7 i2c: | |
8 sda: D6 | |
9 scl: D5 | |
10 | |
11 font: | |
12 - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf" | |
13 id: font_big | |
14 size: 24 | |
15 - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf" | |
16 id: font_small | |
17 size: 12 | |
18 | |
19 text_sensor: | |
20 - platform: mqtt_subscribe | |
21 name: "Data from topic" | |
22 id: bigtext | |
23 topic: frontwindow/bigtext | |
24 - platform: mqtt_subscribe | |
25 name: "Data from topic" | |
26 id: smalltext | |
27 topic: frontwindow/smalltext | |
28 | |
29 display: | |
30 - platform: ssd1306_i2c | |
31 model: "SSD1306 128x64" | |
32 address: 0x3c | |
33 lambda: |- | |
34 it.rectangle(0, 0, 127, 63); | |
35 it.printf(64, 5, id(font_big), TextAlign::TOP_CENTER, id(bigtext).state.c_str()); | |
36 it.printf(64, 63-5, id(font_small), TextAlign::BOTTOM_CENTER, id(smalltext).state.c_str()); | |
37 | |
38 | |
39 spi: | |
40 clk_pin: D4 | |
41 miso_pin: D1 | |
42 mosi_pin: D2 | |
43 | |
44 pn532: | |
45 cs_pin: D3 | |
46 update_interval: 1s | |
47 on_tag: | |
48 then: | |
49 - mqtt.publish: | |
50 topic: frontwindow/tag | |
51 payload: !lambda 'return x;' | |
52 |