Closed NickBeswick closed 7 months ago
I'm also seeing this.
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
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
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
Config is case sensitive, "CurrentEntity:" should start with a lowercase "c" as per the readme, I.e. "currentEntity:"
Thanks Igloo, that sorted it. Simple things!! 👍
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
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
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
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 ?