parent
45603a03d0
commit
6432da1f28
Binary file not shown.
@ -0,0 +1,118 @@
|
||||
substitutions:
|
||||
devicename: ehmtx8266
|
||||
ledpin: GPIO02
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
type: local
|
||||
path: ./EspHoMaTriXv2/components
|
||||
refresh: 60s
|
||||
|
||||
esphome:
|
||||
name: $devicename
|
||||
comment: 8x32 RGB Display in bedroom
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
name: "$devicename Status"
|
||||
|
||||
esp8266:
|
||||
board: d1_mini
|
||||
|
||||
font:
|
||||
- file: EHMTXv2.ttf
|
||||
id: default_font
|
||||
size: 16
|
||||
glyphs: |
|
||||
!"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz€@üöäÜÖÄß
|
||||
|
||||
logger:
|
||||
level: WARN
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
id: ehmtx_light
|
||||
type: GRB
|
||||
variant: WS2812
|
||||
pin: $ledpin
|
||||
num_leds: 256
|
||||
color_correct: [30%, 30%, 30%]
|
||||
name: "$devicename Light"
|
||||
restore_mode: ALWAYS_OFF
|
||||
effects:
|
||||
- e131:
|
||||
universe: 1
|
||||
channels: RGB
|
||||
on_turn_on:
|
||||
lambda: |-
|
||||
id(ehmtx_display)->set_enabled(false);
|
||||
on_turn_off:
|
||||
lambda: |-
|
||||
id(ehmtx_display)->set_enabled(true);
|
||||
|
||||
e131:
|
||||
method: multicast # default: register E1.31 to Multicast group
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: ehmtx_time
|
||||
on_time: !include ehmtx_on_time.yaml
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: ehmtx_display
|
||||
addressable_light_id: ehmtx_light
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
||||
auto_clear_enabled: true
|
||||
lambda: |-
|
||||
id(rgb8x32)->tick();
|
||||
id(rgb8x32)->draw();
|
||||
|
||||
ehmtxv2:
|
||||
id: rgb8x32
|
||||
show_seconds: true
|
||||
rainbow_interval: 32
|
||||
matrix_component: ehmtx_display
|
||||
time_component: ehmtx_time
|
||||
icons2html: true
|
||||
default_font_id: default_font
|
||||
special_font_id: default_font
|
||||
special_font_yoffset: 6
|
||||
default_font_yoffset: 6
|
||||
icons:
|
||||
- id: xani
|
||||
lameid: 6075
|
||||
- id: xsta
|
||||
lameid: 11236
|
||||
- url: https://developer.lametric.com/content/apps/icon_thumbs/48720.gif
|
||||
pingpong: true
|
||||
id: pipo
|
||||
frame_duration: 300
|
||||
- lameid: 5965
|
||||
frame_duration: 180
|
||||
id: d180
|
||||
- lameid: 5965
|
||||
frame_duration: 80
|
||||
id: d080
|
||||
- id: fullscreen
|
||||
file: sample8x32.gif
|
||||
- id: samplegif
|
||||
file: sample8x8.gif
|
||||
Binary file not shown.
Loading…
Reference in new issue