parent
8a5616de3b
commit
28fc122c32
@ -0,0 +1,110 @@
|
||||
substitutions:
|
||||
devicename: ehmtxv2
|
||||
friendly_name: LED Matrix
|
||||
board: esp32dev
|
||||
matrix_pin: GPIO32
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
type: git
|
||||
url: https://github.com/lubeda/EspHoMaTriXv2
|
||||
ref: release
|
||||
refresh: 60s
|
||||
components: [ ehmtxv2 ]
|
||||
|
||||
esphome:
|
||||
comment: "EHMTXv2 from LuBeDa"
|
||||
name: $devicename
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
|
||||
font:
|
||||
- file: EHMTXv2.ttf
|
||||
size: 16
|
||||
id: default_font
|
||||
glyphs: |
|
||||
!?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnÖÄÜöäüopqrstuvwxyz@<>ß§€/
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
name: "$devicename Status"
|
||||
|
||||
logger:
|
||||
level: WARN
|
||||
|
||||
api:
|
||||
|
||||
sensor:
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
web_server:
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
id: ehmtx_light
|
||||
type: GRB
|
||||
internal: true
|
||||
variant: WS2812
|
||||
pin: $ledpin
|
||||
num_leds: 256
|
||||
color_correct: [30%, 30%, 30%]
|
||||
gamma_correct: 2.0
|
||||
name: "$devicename Light"
|
||||
restore_mode: ALWAYS_OFF
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: ehmtx_time
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: ehmtx_display
|
||||
addressable_light_id: ehmtx_light
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (y % 2 == 0) {
|
||||
return (y * 32) + x;
|
||||
}
|
||||
return (y * 32) + (31 - x);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
||||
auto_clear_enabled: true
|
||||
lambda: |-
|
||||
id(rgb8x32)->tick();
|
||||
id(rgb8x32)->draw();
|
||||
|
||||
ehmtxv2:
|
||||
id: rgb8x32
|
||||
icons2html: true
|
||||
matrix_component: ehmtx_display
|
||||
time_component: ehmtx_time
|
||||
time_format: "%H:%M"
|
||||
date_format: "%d.%m."
|
||||
show_seconds: false
|
||||
default_font_id: default_font
|
||||
special_font_id: default_font
|
||||
icons:
|
||||
- id: error
|
||||
lameid: 40530
|
||||
- id: home_assistant
|
||||
lameid: 47693
|
||||
- id: temperature
|
||||
lameid: 2056
|
||||
- id: lightbulb
|
||||
lameid: 1762
|
||||
- id: music
|
||||
lameid: 45625
|
||||
- id: phone
|
||||
lameid: 1232
|
||||
- id: car
|
||||
lameid: 2819
|
||||
- id: sleep8x32
|
||||
url: https://user-images.githubusercontent.com/16407309/224850723-634c9b2d-55d9-44f2-9f93-765c0485b090.gif
|
||||
Loading…
Reference in new issue