lubeda / EspHoMaTriXv2

A simple DIY status display with a 8x32 RGB LED matrix, implemented with esphome.io and Home Assistant.
MIT License
269 stars 25 forks source link

[QUESTION] [on_empty_queue] is an invalid option for [ehmtxv2]. Did you mean [allow_empty_screen]? #233

Closed robudus closed 3 months ago

robudus commented 3 months ago

Question

Hi i would like to compile the latest version to my esp32 but get the Error: I use EspHome in HomeAssistant 2024.4.2

see logs for the error.

I use this yaml https://github.com/lubeda/EspHoMaTriXv2/blob/latest/install/ulanzi-easy.yaml

Can you please help me.

Thanks

ROBudus

Additional information

Logs

  [on_empty_queue] is an invalid option for [ehmtxv2]. Did you mean [allow_empty_screen]?
  on_empty_queue: 
    then: 
      - lambda: |-
          id(rgb8x32).set_infotext_color(20,20,20,20,20,20,false,1);
          id(rgb8x32).icon_clock("calendar|day#0",1440,10,false);
lubeda commented 3 months ago

Yes, it's a bug! It works with 2024.4.0.

I will investigate

N3rdix commented 3 months ago

Just got the same error when copying the 2024.3.0 files to my local environment and validating the config. When restoring the files from the previous release the validation works as expected.

Using EspHome 2024.4.2. Do you mean the problem could be fixed by downgrading it to 2024.4.0, at least as a workaround until the real issue is solved?

lubeda commented 3 months ago

I just found out: There is no EspHoMaTriXv2 version tagged 2024.5.0! So, as fallback the default branch is used (see https://esphome.io/components/external_components#external-components), which is very old. Please use "latest" or an available version number as ref, e,g, latest or 2024.3.0,

So this is not a bug in EspHoMaTriX!

N3rdix commented 3 months ago

Where exactly do you mean should this "latest" be adjusted?

In my case I just have a source of type local in the yaml

lubeda commented 3 months ago

You have to specify a valid branch under the ref tag in your yaml.

external_components:
  - source:
      type: git
      url: https://github.com/lubeda/EspHoMaTriXv2
      ref: latest
    refresh: 60s 
    components: [ ehmtxv2 ]   
N3rdix commented 3 months ago

I got that when using a git resource, but how to handle the error when using a local source with the files copied to a local folder?

external_components:
  - source:
      path: /copied_components
andrewjswan commented 3 months ago

files copied to a local folder

Copy files from latest branch...

N3rdix commented 3 months ago

Ok my fault, shame on me 😀 now I got the point, thanks