berrywhite96 / lovelace-shutter-row

Home Assistant Lovelace Shutter Row Card
MIT License
19 stars 4 forks source link

Group does not do anything in entity card #23

Closed KennethLavrsen closed 1 year ago

KennethLavrsen commented 1 year ago

I added the group: true to a shutter row I cannot see any difference. True or false there is still a frame around

image

  - type: custom:shutter-row
    entity: cover.cloud
    group: true
    invert_position_label: true
    state_color: true
berrywhite96 commented 1 year ago

Please check if you are on 0.3.0 or higher.

  1. Call HA on desktop PC in Chrome
  2. Press F12 and click on Console
  3. There should be a yellow log entry with the loaded shutter row version.
KennethLavrsen commented 1 year ago

This is really odd

I had already checked that the installed version inside HACS was 0.3.2 And then I went to the actual JS files and checked that the version was 0.3.2

But your posting using F12 and console revealed that the browser had a much older version.

I have done control F5 multiple times. And I have had the same symptom on multiple computers. They cache this JS file in a way that does not get refreshed.

What helped was to put http://192.168.1.X:8123/hacsfiles/lovelace-shutter-row/shutter-row.js?hacstag=524783308020 in the browser URL to force it to cache update. I wonder how many old JS files people are fighting with and reporting bogus error reports from. You can normally trust a control F5 to refresh all JS used in a given browser URL

Once I did this it sort of works. I have no border

But the text is poorly alligned with the other entities and my icon is not shown (it is not a default shutter icon)

image

berrywhite96 commented 1 year ago

Can you post the attribute content from the developer tools?

KennethLavrsen commented 1 year ago

I do not understand that question.

KennethLavrsen commented 1 year ago

2 minutes later. Oh now I know what you mean. For the entity I show sure

It is an MQTT device called a Cloud. A small long narrow curtain that I can move so it covers the sun. So I call it the cloud

current_position: 100
icon: mdi:cloud
friendly_name: Cloud
supported_features: 15
berrywhite96 commented 1 year ago

Go to this url: https://homeassistant.local:8123/developer-tools/state Search for your cover entity and copy the content from the 'Attributes' column and post it here.

KennethLavrsen commented 1 year ago

Yes. Got it above. I was in the F12 content mode and could not find any attributes. And then I got the "DUH! - me idiot" moment a minute after I posted

berrywhite96 commented 1 year ago

Never mind this is another bug that happens on custom entity icons...

Will fix that this week!

KennethLavrsen commented 1 year ago

Thanks for following up.

berrywhite96 commented 1 year ago

Fixed with v0.3.3.