Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: garage-door-indicator
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- password: ""
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "garage-door-indicator"
- password: "!secret wifi_password"
- captive_portal:
- 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_lg
- size: 54
- - 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
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO13
- mode:
- input: true
- pullup: true
- name: "Garage Light Switch"
- filters:
- - delayed_off: 7ms
- - delayed_on: 7ms
Advertisement
Add Comment
Please, Sign In to add comment