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

You need to define an entity #41

Closed NickBeswick closed 7 months ago

NickBeswick commented 7 months ago

I get this error then adding the card with the following YAML:

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

Can anyone assist ?

grey-area001 commented 7 months ago

I'm also seeing this.

igloo32 commented 7 months ago

In the latest releases due to changes where this gets it data from you need to update your config, "entity:" is now "currentEntity" and if you want to see tomorrows prices you also need to specific futureEntity, based on your config above, you now need this:

type: custom:octopus-energy-rates-card currentEntity: event.octopus_energy_electricity_20e002xxxx_164000006xxxx_current_day_rates futureEntity: event.octopus_energy_electricity_20e002xxxx_164000006xxxx_next_day_rates cols: 2 showday: true showpast: false

tony-park commented 7 months ago

Hi,

I'm seeing the same :-(

This is what I currently have setup:

configuration.yaml:

octopusagile: region_code: "M" mpan: 2352321999999 serial: 21E5399999 auth: sk_live_1CEjOZrYCSMJ6xxxxxxxxxx startdate: "2023-07-01" currentEntity: event.octopus_energy_electricity_21E5399999_2352321999999_current_day_rates pastEntity: event.octopus_energy_electricity_21E5399999-2352321999999_previous_day_rates futureEntity: event.octopus_energy_electricity_21E5399999_2352321999999_next_day_rates type: custom:octopus-energy-rates-card cols: 2 showday: true showpast: false

In lovelace dashboard, I have:

type: custom:octopus-energy-rates-card CurrentEntity: event.octopus_energy_electricity_21E5399999_2352321999999_current_day_rates

and receiving: "You need to define an entity"

Can you advise what I've got wrong?

Thanks Tony

LesserPlatinum commented 7 months ago

I was also getting this error. Fix was remove using HACS and reinstall.

Edit:You will need to remake the card on the dashboard after you reinstall.

Things that didn't work in case it helps someone: -HA refresh YAML -HA reboot -redownload module in HACS

igloo32 commented 7 months ago

Config is case sensitive, "CurrentEntity:" should start with a lowercase "c" as per the readme, I.e. "currentEntity:"

tony-park commented 7 months ago

Thanks Igloo, that sorted it. Simple things!! 👍

tony-park commented 7 months ago

Hi,

any thoughts on how I can get the full period of data to display? ie up to 10:30pm the following night? At present, the card is displaying to 11:30pm today.

Thanks again

igloo32 commented 7 months ago

You also need to now define futureEntity, futureEntity: event.octopus_energy_electricity_20e002xxxx_164000006xxxx_next_day_rates As the rates have been split in the source data

NickBeswick commented 7 months ago

I get this error then adding the card with the following YAML:

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

Can anyone assist ?

I'm working now. Thanks for the help @igloo32