Solar/PV System Card

Here is a little something that I’ve been working on over the last few days. I wanted a nice way to be able to see what my rooftop solar system is up and current consumption. This is simple enough to do in the old interface, and likewise in Lovelace, but I wanted something that looks nice, not a patchwork of different cards and doesn’t use a lot of space. So I came up with the following. It takes up a little less space but has more detail.

The first screenshot is the normal view, and the second is for smaller screens like phones, etc. It’s a responsive grid setup and works really well. I still need to do some fine tuning, and not 100% happy with it, but for now, it’s something and I wanted to share it with the great community here.

I have an Enphase system, so it’s geared towards that. The Enphase outputs in Wh, so I’ve done some conversions in the card to convert to KWh.

solarpv-card-large
solarpv-card-mobile

As you can see, it’s nothing special, but simple and does what I want it to do at the moment. I still have a few more elements to add, for example, current net usage to show if I’m importing or exporting. Not yet sure how that will look.

Oh, and the sun is an animated icon. It’s the same file used with the dark sky animated card.

This is my first ever custom card, so please be nice. I wanted to explore creating them and how hard it is. It’s been a while since I’ve worked with HTML and CSS directly, and never really used JS, but it’s been fun to play with.

5 Likes

Looks nice, How can I reproduce this, can you post the instructions somewhere please.

I just used the template (link below) to make a custom card and modified it. I looked at some other custom cards that other people have made and worked out how some things are done.

As for this card that I’ve made, it’s not it a position to share it at the moment.

https://developers.home-assistant.io/docs/en/lovelace_custom_card.html

Looks great! :+1:
Hope there will be some instruction or some easy to integrate custom card in the future.

Hopefully I can get the card to a state where I can release it. It’s heavily setup for my setup, so I need to work out how to have it adapt.

For example, some systems report in KWh and some are just Wh for the daily totals. Mine also reports production in W while some do KW. I need to add some smarts and work out a way to have it an option if a conversation is required.

2 Likes

ideally there should be a new platform/component for PV systems in HA core.

Nice card though. Want to make one for mine as well but didn’t find the time yet.

1 Like

Looks great! Hope to have one myself one day. Thanks for sharing

Great work Chris.
Have you made any progress with this Solar card?
Cheers
Paul

No I haven’t sorry. I haven’t used this card in a long time. I have since moved to hass.io on a different system, so not sure if I still have the code for it.

Hi Chris,
Thanks for getting back to me.
All good mate. No worries

You can obtain similar results with the utility meter integration.

Example (ignore the false PV readings my CT isn’t reporting currently):

1 Like