danimart1991 / pvpc-hourly-pricing-card

Home Assistant Lovelace custom card to use with Spain electricity hourly pricing (PVPC) integration
Apache License 2.0
89 stars 21 forks source link

same color for both curves #37

Closed VicenteKER closed 3 years ago

VicenteKER commented 3 years ago

I don't know if it's my problem but since version 1.4.0 the two curves appear in the same color (blue)

image

danimart1991 commented 3 years ago

Hello @VicenteKER

The graph uses the primary and accent colors of your theme. You could change it in your profile settings.

image

VicenteKER commented 3 years ago

Gracias Dani. it worked with 2 colors before the new version 1.4.0 ... And I don't have those options ... 🤔 image

danimart1991 commented 3 years ago

I see you are using a Custom Theme. This custom theme defines these two colors, so you need to modify them in the .yaml file of the theme or change it in the .js file of the card modifying the following lines with the color you want (you could use hexadecimal):

https://github.com/danimart1991/pvpc-hourly-pricing-card/blob/073ec2060311ad34293302da224b14d081fa9cb3/dist/pvpc-hourly-pricing-card.js#L317-L318

For example:

const todayColor = '#123456';
const tomorrowColor = '#654321';
VicenteKER commented 3 years ago

I will try... thanks. My surprise is that's it worked before with same custom theme...

danimart1991 commented 3 years ago

I update the card to version 1.4.1 and actually it has the colors fixed.

https://github.com/danimart1991/pvpc-hourly-pricing-card/releases/tag/1.4.1

VicenteKER commented 3 years ago

thank you Dani!! 👏👏👏