Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung Letzte Überarbeitung Beide Seiten, nächste Überarbeitung | ||
projekte:2021:stealthwooddisplayforsmarthomeprototypev1 [2021/04/04 15:00] nikolai angelegt |
projekte:2021:stealthwooddisplayforsmarthomeprototypev1 [2021/04/04 15:31] nikolai |
||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
====== Stealth Wood Display for Smarthome Prototype 1 ====== | ====== Stealth Wood Display for Smarthome Prototype 1 ====== | ||
+ | Contact: [[User: | ||
+ | |||
+ | Projectstatus: | ||
+ | |||
+ | ===== Hardware ===== | ||
+ | * 1 NodeMCU V2 or any other ESP with enough GPIO | ||
+ | * 1 MAX7219 Dot Matrix Module 4 in 1 | ||
+ | * 2 BH1750 on Breakoutboard like GY-302 | ||
+ | * 1 5V Powersupply | ||
+ | |||
+ | ===== Code ===== | ||
+ | |||
+ | The Code is based on ESPHome to enable easy Home Assistant integration ans OTA Updates. | ||
+ | The Font can be found [[https:// | ||
+ | |||
+ | <code yml> | ||
+ | esphome: | ||
+ | name: ledmatrixdisplay | ||
+ | platform: ESP8266 | ||
+ | board: nodemcuv2 | ||
+ | |||
+ | wifi: | ||
+ | networks: | ||
+ | - ssid: " | ||
+ | password: " | ||
+ | - ssid: " | ||
+ | password: " | ||
+ | |||
+ | # Enable fallback hotspot (captive portal) in case wifi connection fails | ||
+ | ap: | ||
+ | ssid: " | ||
+ | password: " | ||
+ | |||
+ | captive_portal: | ||
+ | |||
+ | # Enable logging | ||
+ | logger: | ||
+ | |||
+ | # Enable Home Assistant API | ||
+ | api: | ||
+ | |||
+ | ota: | ||
+ | |||
+ | # Example configuration entry | ||
+ | spi: | ||
+ | clk_pin: D0 | ||
+ | mosi_pin: D1 | ||
+ | |||
+ | display: | ||
+ | - platform: max7219digit | ||
+ | cs_pin: D2 | ||
+ | num_chips: 4 | ||
+ | intensity: 7 | ||
+ | scroll_speed: | ||
+ | scroll_delay: | ||
+ | lambda: |- | ||
+ | if (id(light_behind_wood).state > 4.9) | ||
+ | { | ||
+ | it.intensity(15); | ||
+ | } | ||
+ | else if (id(light_behind_wood).state > 0.7) | ||
+ | { | ||
+ | it.intensity(10); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | it.intensity(5); | ||
+ | } | ||
+ | it.printf(0, | ||
+ | |||
+ | font: | ||
+ | - file: " | ||
+ | id: OpenMine_17_font | ||
+ | size: 17 | ||
+ | |||
+ | sensor: | ||
+ | # Outside temperature | ||
+ | - platform: homeassistant | ||
+ | id: temperature_outside | ||
+ | entity_id: sensor.temperature_10 | ||
+ | # Livingroom temperature | ||
+ | - platform: homeassistant | ||
+ | id: temperature_livingroom | ||
+ | entity_id: sensor.atmos_livingroom | ||
+ | # Bedroom temperature | ||
+ | - platform: homeassistant | ||
+ | id: temperature_bedroom | ||
+ | entity_id: sensor.atmos_bedroom | ||
+ | # Lightsensor Behind Wood | ||
+ | - platform: bh1750 | ||
+ | id: light_behind_wood | ||
+ | name: "Light Behind Wood" | ||
+ | address: 0x5C | ||
+ | measurement_time: | ||
+ | update_interval: | ||
+ | # Lightsensor Room | ||
+ | - platform: bh1750 | ||
+ | id: light_room | ||
+ | name: "Light Room" | ||
+ | address: 0x23 | ||
+ | measurement_time: | ||
+ | update_interval: | ||
+ | |||
+ | i2c: | ||
+ | sda: D3 | ||
+ | scl: D4 | ||
+ | scan: True | ||
+ | id: bus_a | ||
+ | </ | ||
+ | |||
+ | ===== Pictures ===== | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | ===== Demo ===== | ||
+ | |||
+ | {{ : |