I just updated the card and changed the structure. You now need to set the card in your views i did this so i get state updates of entities this way the toggle can work but you can also display an active state when a light is on. Like @mkhattab suggested.
I also added icon option for the menu, example:
- action: toggle
icon is new, and the
state is used to toggle the item on or off based on the entities state.
Also the base configuration is different:
- url: /local/sidebar-card.js?v=0.0.1
title: "Sidebar title"
- title: "Home"
- type: "custom:sidebar-card"
- type: "custom:homekit-card"
Before the html was injected so only the global
sidebar: config was needed this is still needed! but you also need to add a card with type
custom:sidebar-card this card as a
cards option just place your current cards config in there and it should be all good!
New version is also on HACS if you don’t change your config with the cards in your view the sidebar won’t appear!