lozzd / octopus-energy-rates-card

This lovelace card for Home Assistant displays the Octopus Energy rate prices per each 30 minute slot
MIT License
60 stars 22 forks source link

Advanced Configuration Options help #68

Closed d1964b closed 4 months ago

d1964b commented 5 months ago

I Need some guidance on how to complete a 'Advanced Configuration' options in the yaml file .

1) The option to specify backgroundColour. Is there a set of values we must select from for this ? If so what are they. 2) The emoji prefixs. Where have these come from, how do we enter them into the yaml?

Sorry if these are noddy questions,

alinbalutoiu commented 5 months ago

Hey there 👋

For emojis, the OS has an integrated emoji keyboard, but probably the easiest option to copy them is to search it on Emojipedia https://emojipedia.org/

For the backgroundColour, you just need to pick a valid HTML color name, you can refer to this page for all possible options: https://www.w3schools.com/colors/colors_names.asp

neildhunter commented 5 months ago

Is there a trick to making this work in the new build? I can't even get it to apply the defaults for a single target sensor at the moment? Any hints on how to debug what the problem is?

neildhunter commented 5 months ago

Is there a trick to making this work in the new build? I can't even get it to apply the defaults for a single target sensor at the moment? Any hints on how to debug what the problem is?

Ok just figured it out digging in the code - the example configs have a typo in them that I hadn't spotted. They include "targetTimesEnties" which should be "targetTimesEntities".

I cut and paste the new sample config and just changed the sensor value to mine, I didn't check the rest...