Hopefully a simple one, I just want to dig out attributes from certain entities, i.e. battery percentages for use in lovelace and node red. An example of one of these entities is
Instead of creating individual template sensors to display battery level in your frontend, you could use this custom card. I found out about it recently, and it works great. Figured I’d share.
I will still create templates for node red and notifications, but I will also investigate this, looks good. I do have some RF sensors as well which only send out a Boolean battery low signal. I haven’t tried a custom card yet and was looking at the bars one for wifi strengths of my tasmota things.
How do I use a custom card? I think I followed the instructions, i.e. copied the .js file from github into my www folder. I then created a ui-lovelace.yaml file on the root of my hassio (raspberry pi 3) sd card and copied in the config and re-started HA. Should this now show up when I try to add a card or is there more to it?
In Lovelace, click the overflow menu in the upper-right, click Configure UI, click the overflow menu again, and click Raw config editor. Then add the card config under resources:. It should look like this:
After saving that, the card should be immediately available without the need to restart. Alternatively, navigate to /config/.storage/lovelace and add the same config as above. It’s easier to do it the Lovelace way though.
Ah I see what’s going on. Custom cards doesn’t show up in the UI when you go to add a card, you have to select “manual card” and enter the config yourself. (Forgot to mention that, sorry). So you’d enter something like this:
All I can say is smashing, I am still at the beginning of my HA journey and loving it. I would be lying if i said i really understand what i am doing but seem to be getting results with help from the community. Thanks
Now to get the RF ones looking pretty. Got to capture them first though.
Hi all,
I have the same issue here:
Sonoff LAN installed (using online), TH10 connected. found the device.
I can use the switch and turn it on and off, but I did not find out how to get the value of the temperature sensor for the dashboard, or in the end for nabu casa.
hello I have an attribute that detects the missing level of the Blue of my car, I have configured the template like this but it doesn’t work, what am I wrong?