Hi, I am quite new to this Forum.
I’m changing from Pixelit to the EspHoMaTriXv2. So the Hardware already works. My Problem is now that the display dosn’t show the time. I see the bootscreen which then freezes after a couple of seconds. The Wemos D1 mini is still reachable. I am looking for the error now for about a week without finding it. Perhaps sombody could help me here.
Here ist the yaml of the esp.
substitutions:
devicename: pixeldisplay
friendly_name: "PixelDisplay"
board: d1_mini_lite
matrix_pin: GPIO4
external_components:
- source:
type: git
url: https://github.com/lubeda/EspHoMaTriXv2
animation:
- id: animation_black
file: pixeldisplay/1pixel.gif
image:
- id: image_black
file: pixeldisplay/1pixel.gif
esphome:
comment: "EHMTXv2 TEXT from LuBeDa 8266"
name: $devicename
on_boot:
lambda: |-
id(rgb8x32)->show_rindicator(255,100,50,2);
id(rgb8x32)->hide_rindicator();
id(rgb8x32)->show_lindicator(255,100,250,2);
id(rgb8x32)->hide_lindicator();
id(rgb8x32)->show_alarm(255,0,150,3);
id(rgb8x32)->hide_alarm();
id(rgb8x32)->icon_screen("error","Hallo Text",false,237,20,100,200,150);
id(rgb8x32)->force_screen("error");
id(rgb8x32)->del_screen("error");
id(rgb8x32)->del_screen("error",5);
id(rgb8x32)->rainbow_icon_screen("error","Hallo Text",true,237,20);
id(rgb8x32)->get_status();
id(rgb8x32)->set_display_on();
id(rgb8x32)->rainbow_text_screen("ÜÖÄüöä°C°F€--℉-℃-₿-₩-Ξ",30);
id(rgb8x32)->set_display_off();
id(rgb8x32)->hold_screen();
id(rgb8x32)->show_gauge(100,0,200);
id(rgb8x32)->hide_gauge();
id(rgb8x32)->set_today_color(200,100,50);
id(rgb8x32)->set_weekday_color(200,100,50);
id(rgb8x32)->full_screen("scale");
id(rgb8x32)->rainbow_icon_screen("error","Oh ein Text");
id(rgb8x32)->text_screen("text",30);
id(rgb8x32)->rainbow_text_screen("text",30);
id(rgb8x32)->clock_screen(30,5);
id(rgb8x32)->rainbow_clock_screen(30,5);
id(rgb8x32)->date_screen(30,5);
id(rgb8x32)->rainbow_date_screen(30,5);
id(rgb8x32)->blank_screen(30,5);
id(rgb8x32)->set_brightness(20);
esp8266:
board: $board
font:
- file: pixeldisplay/mateine.ttf
size: 16
id: default_font
glyphs: |
!?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnÖÄÜöäüopqrstuvwxyz@<>ߧ€/
binary_sensor:
- platform: status
name: "$devicename Status"
logger:
api:
ota:
password: !secret ota
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
light:
- platform: neopixelbus
id: ehmtx_light
type: GRB
internal: true
variant: WS2812
pin: $matrix_pin
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 (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
icons2html: true
matrix_component: ehmtx_display
time_component: ehmtx_time
time_format: "%H:%M"
date_format: "%d.%m."
scroll_small_text: true
default_clock_font: true
allow_empty_screen: true
blend_steps: 16
default_font_id: default_font
special_font_id: default_font
icons:
- id: error
lameid: 40530
on_next_screen:
- homeassistant.event:
event: esphome.new_screen
data_template:
iconname: !lambda "return icon.c_str();"
text: !lambda "return text.c_str();"
on_add_screen:
- homeassistant.event:
event: esphome.new_screen
data_template:
iconname: !lambda "return icon.c_str();"
mode: !lambda "return mode;"
on_next_clock:
- homeassistant.event:
event: esphome.new_screen
data_template:
iconname: "Hallo"
on_expired_screen:
- homeassistant.event:
event: esphome.new_screen
data_template:
iconname: !lambda "return icon.c_str();"
text: !lambda "return text.c_str();"
on_icon_error:
- homeassistant.event:
event: esphome.new_screen
data_template:
iconname: !lambda "return icon.c_str();"