Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: test
- friendly_name: Test
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "xxx"
- ota:
- password: "20f1750777b514137feab7b261e3e24d"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Test Fallback Hotspot"
- password: "CC914OuW5O14"
- captive_portal:
- web_server:
- port: 80
- time: # Время берем из Home Assistant
- - platform: homeassistant
- id: homeassistant_time
- light:
- - platform: neopixelbus
- type: GRB
- variant: WS2811
- pin: GPIO23
- num_leds: 8
- name: "NeoPixel Light"
- font:
- - file: "fonts/arial.ttf"
- id: arialfont
- size: 20
- image:
- - file: "img/logo_ha.png"
- id: logo_ha
- # type: RGB565
- resize: 240x240
- display:
- - platform: ili9xxx
- model: GC9A01A
- dimensions:
- height: 240
- width: 240
- cs_pin: GPIO5
- dc_pin: GPIO4
- reset_pin: GPIO13
- lambda: |-
- // Print "Test" in top center.
- it.printf(85, 104, id(arialfont), id(red), TextAlign::TOP_CENTER, "Test");
- // Draw the image logo at position [x=10,y=5]
- it.image(10, 5, id(logo_ha));
- spi:
- clk_pin: GPIO18
- mosi_pin: GPIO22
- miso_pin: GPIO19
- color:
- - id: yellow
- red: 100%
- green: 100%
- blue: 0%
- - id: red
- red: 100%
- green: 0%
- blue: 0%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement