projekte:2021:stealthwooddisplayforsmarthomeprototypev1

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
projekte:2021:stealthwooddisplayforsmarthomeprototypev1 [2021/04/04 15:00]
nikolai angelegt
projekte:2021:stealthwooddisplayforsmarthomeprototypev1 [2021/04/04 15:32] (aktuell)
nikolai
Zeile 2: Zeile 2:
 ====== Stealth Wood Display for Smarthome Prototype 1 ====== ====== Stealth Wood Display for Smarthome Prototype 1 ======
  
 +Contact: [[User:nikolai|nikolai]]
 +
 +Projectstatus: [[projekte:projektstatus|{{:projekte:done.png?50|}}]]
 +
 +===== 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://www.dafont.com/openmine.font|here]]
 +
 +<code yml>
 +esphome:
 +  name: ledmatrixdisplay
 +  platform: ESP8266
 +  board: nodemcuv2
 +
 +wifi:
 +  networks:
 +    - ssid: "vspace.one"
 +      password: "12345678"
 +    - ssid: "BLANK"
 +      password: "BLANK"
 +
 +  # Enable fallback hotspot (captive portal) in case wifi connection fails
 +  ap:
 +    ssid: "Ledmatrixdisplay"
 +    password: "BLANK"
 +
 +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: 100ms
 +    scroll_delay: 0s
 +    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, -3, id(OpenMine_17_font), " O %.1f L %.1f B %.1f", id(temperature_outside).state,id(temperature_livingroom).state,id(temperature_bedroom).state);
 +
 +font:
 +  - file: "OpenMine.ttf"
 +    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: 69
 +    update_interval: 60s
 +    # Lightsensor Room
 +  - platform: bh1750
 +    id: light_room
 +    name: "Light Room"
 +    address: 0x23
 +    measurement_time: 69
 +    update_interval: 60s
 +
 +i2c:
 +  sda: D3
 +  scl: D4
 +  scan: True
 +  id: bus_a
 +</code>
 +
 +===== Pictures =====
 +
 +{{:projekte:2021:stealthwooddisplayforsmarthomeprototypev1:electronics.jpg?direct&200|Electronics}}
 +{{:projekte:2021:stealthwooddisplayforsmarthomeprototypev1:eletronicsinwood1.jpg?direct&200|Electronics In Wood 1}}
 +{{:projekte:2021:stealthwooddisplayforsmarthomeprototypev1:eletronicsinwood2.jpg?direct&200|Electronics In Wood 2}}
 +{{:projekte:2021:stealthwooddisplayforsmarthomeprototypev1:onwalloff.jpg?direct&200|On Wall Off}}
 +{{:projekte:2021:stealthwooddisplayforsmarthomeprototypev1:onwallon.jpg?direct&200|On Wall On}}
 +
 +===== Demo =====
 +
 +{{ :projekte:2021:stealthwooddisplayforsmarthomeprototypev1:demovideo.mp4 |Demo Video}}
  • projekte/2021/stealthwooddisplayforsmarthomeprototypev1.1617548417.txt.gz
  • Zuletzt geändert: 2021/04/04 15:00
  • von nikolai