Home Assistant Community

Compact Custom Header

#248

Then update manually. Follow the instructions in the readme on how to do so. The readme also contains helpful information like how to use this card with panel view.

#249

Looking back on your previous code it seems I missed that you had this inside a custom layout card, sorry bout that. In that case your original code would work. Your only issue seems to be the fact that you’re using an old version of the card. You either need to update manually or you need to manually increase the version number in your resources. I don’t know why tracker card isn’t working for you, but in 0.84+ tracker card no longer automatically edits resources for you unless you’re in yaml mode (but it appears that you are?).

1 Like
#250

Ok i restored the old code and updated the js files. Now it works. Thank you!

1 Like
#251

Is there a way to move the header to the bottom aka a footer?

Id like to do this particularly for my iPhone as its easier to use it one handed if the views are at the bottom.

#252

I’m having trouble with some (more heavy) views not loading at all on mobile, just the custom header shows up and beneath that it’s empty. Everything works fine on desktop. Can I do something to remedy this or maybe help you figure out why in some way?

#253

stop breaking everything! :slight_smile:

1 Like
#254

I’m only load testing for you :wink:

#255

Can you confirm the issue exists when not using custom compact header or only when using it?

#256

Not currently, but this is something I’ll look into

1 Like
#257

Yes, I just commented it out in the views and then everything works.

#258

Will check it out. Is there anything in common with the views that won’t display, are they using the same type of cards, etc.?

#259

It was this view (also added a couple of mini graph sensor cards after committing this, but I tried removing them again and it was the same): https://github.com/isabellaalstrom/HomeAssistantConfiguration/blob/master/lovelace/30_system_info_view.yaml
and this view: https://github.com/isabellaalstrom/HomeAssistantConfiguration/blob/master/lovelace/40_camera_view.yaml

#261

Same issue here, on both mobile and desktop.
Probably a conflict with another custom card: when I first load a view with NO custom card, it loads, and I can load other views. When loading first a view WITH custom cards, it fails, empty view.

#262

This would be great.

Keep up the good work :slight_smile:

#263

I updated Compact Custom Header to the latest code, and my custom cards such as card-modder with calendar-card stopped loading intermittently unless I refreshed or hit the menu button. Tried using card-loader to help, but no luck. I reverted Compact Custom Header back to code from Jan 23, and all is well again. I’m on HA 86.4. Just an fyi in case that helps…

#264

Do you mean you installed the dev branch? If so, yeah it’s in development, not an update. Not ready for use.

#265

Thanks for the tip!

Unfortunately I did:

git checkout tags/0.2.9

(the code from jan 23rd was tagged 0.2.9)

But still empty view.
I use those specific custom cards, and vertical/horizontal stacks:

  • url: /local/custom-lovelace/thermostat-card/thermostat-card.js?v=1
    type: module
  • url: /local/custom-lovelace/monster-card/monster-card.js?v=0
    type: js
  • url: /local/custom-lovelace/button-card.js
    type: module
  • url: /local/custom-lovelace/group-card/group-card.js
    type: js
  • url: /local/custom-lovelace/home-setter/home-setter.js
    type: js
  • url: /local/custom-lovelace/slider-entity-row.js
    type: js
  • url: /local/custom-lovelace/kiosk.js
    type: js
  • url: /local/custom-lovelace/useful-markdown-card.js
    type: js
  • url: /local/custom_ui/weather-card.js
    type: js
  • url: /local/custom-lovelace/compact-custom-header/compact-custom-header.js?v=0.2
    type: js
#266

OK I think I found something interesting.

I heavily use stacks within stacks, with panel:true inside views.
By inserting the custom card inside the first vertical stack, everything works well !

1 Like
#267

Sorry misunderstood what you were saying. In any rate, the card is being completely rewritten as we speak so any current issues may or may not exist in the rewrite and it makes sense to wait till then to investigate.

@_BaQs That makes sense, glad you found the issue, this is one that I’m confident does not exist in the rewrite.

2 Likes
#268

Hi, thank you very much for your work here.
I have a really simple config:

  - clock: 'notification,no default'
    type: 'custom:compact-custom-header'
    user_agent: Android

But on my android phone I can’t see all my tabs and I need to scroll between tabs.
Android:


How can I resize the space for notifications ?