Refresh lovelace UI programmatically

Hi folks,

I’m working on a lovelace UI that involves removing the header (using the custom:compact-header card).

This obviously means I lose the menu to refresh the UI. Is there a way to do this programmatically, so I can add a button to one of my views to do this for me?

Thanks!

You can use the ‘lovelace-reload’ command from

1 Like

You can also just not hide that menu when using CCH :slight_smile:

I know, but It messes with the look I’m going for :slight_smile:

Thanks I’ll check it out

Just want to mention even if the left menu is hidden with CCH, you can still bring it out by swiping in from left edge of the screen on the mobile devices.

1 Like

This is true if just using header: false, but if you’re using kiosk_mode: true to hide the header it removes that ability and also makes sure the sidebar is closed on load.