Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: garage-door-indicator
- esp32:
- board: esp32dev
- framework:
- type: arduino
- sensor:
- - platform: homeassistant
- id: garage_temp
- entity_id: sensor.garage_temp
- - platform: homeassistant
- id: outside_temp
- entity_id: sensor.outside_temp_hum_temperature
- font:
- - file: "arial.ttf"
- id: arial_med
- size: 40
- - file: "arial.ttf"
- id: arial_sm
- size: 14
- i2c:
- sda: GPIO4
- scl: GPIO15
- frequency: 800kHz
- display:
- - platform: ssd1306_i2c
- model: "SSD1306 128x64"
- reset_pin: GPIO16
- address: 0x3C
- lambda: |-
- it.printf(0, 0, id(arial_med), "%.0f", id(garage_temp).state);
- it.printf(it.get_width(), 0, id(arial_med), TextAlign::TOP_RIGHT, "%3.0f", id(outside_temp).state);
- it.print(0, 47, id(arial_sm), "Garage °F");
- it.print(78, 47, id(arial_sm), "Outside");
- light:
- - platform: neopixelbus
- type: GRBW
- variant: SK6812
- pin: GPIO17
- num_leds: 27
- name: "Garage Door Indicator"
- effects:
- - addressable_color_wipe:
- name: Opening
- colors:
- - red: 100%
- green: 0%
- blue: 0%
- white: 0%
- num_leds: 27
- - red: 0%
- green: 100%
- blue: 0%
- white: 0%
- num_leds: 27
- add_led_interval: 300ms
- reverse: false
- - addressable_color_wipe:
- name: Closing
- colors:
- - red: 0%
- green: 100%
- blue: 0%
- white: 0%
- num_leds: 27
- - red: 100%
- green: 0%
- blue: 0%
- white: 0%
- num_leds: 27
- add_led_interval: 300ms
- reverse: true
Advertisement
Add Comment
Please, Sign In to add comment