lozzd / octopus-energy-rates-card

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

Getting "state is undefined" updating the custom entity to match what is here #15

Closed UK-JustinSmall closed 1 year ago

UK-JustinSmall commented 1 year ago

I keep getting state is undefined - what should I assign to state? If I add line like state: 0 then error goes away but still does not display the card information

I have used, where X&Y is the value shown under entities for current_rate

entity: sensor.octopus_energy_electricity_XXXXXXXXXXX_YYYYYYYYYYYYY_current_rate type: custom:octopus-energy-rates-card cols: 2 showday: true showpast: false

UK-JustinSmall commented 1 year ago

Ok my bad, the XXX_YYY contained a letter l in the Dashboard entities this was showing as a L which I used. Changed this to a lowercase l and it works. the ID is very case sensitive guys if anyone else starts pulling their hair out over this like me. Closing this bug.