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

No visual editor available for type 'custom:octopus-energy-rates-card' #5

Open netmindz opened 1 year ago

netmindz commented 1 year ago

When trying to add the card, i get the error No visual editor available for type 'custom:octopus-energy-rates-card' and "show visual editor" button is disabled, for both Firefox and Chrome

netmindz commented 1 year ago

The comment in the docs "you'll need to then configure the yaml yourself - the type part is filled out for you." gives no indication as to how you do that

plandregan commented 1 year ago

Here's an example yaml configuration:

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

Replace the sensor with your own. Found from Developer tools, states, search for octopus, find the one ending current rate and copy the sensor.bit and paste into your Card yaml instead of the example entity. Job done.

ActuandoWoody commented 1 year ago

Nope. I am just as lost as @netmindz

I have installed your Octopus rate card and have exactly the same issue. I have no Octopus entity in Developer Tools -> states and I have no idea what "" means. What ID is this - and where will I find it?

This feels like you might have missed a pre-requisite like an Octopus account and Smart meter?

Can you expand, a little more comprehensively, about how this should be configured?

lozzd commented 1 year ago

Try this:

ActuandoWoody commented 1 year ago

So, I have your add-in installed fine - and when I go to add the card on the dashboard, it shows:

image

Which is what one would expect - so all good there.

However, I have no Octopus entity at all - and I am not sure why I would, unless I had installed some other Octopus energy integration with a unique (my) ID, and I haven't. That was my point about the pre-requisite - are you not expecting me to already have installed something else - because where else is my Octopus ID going to come from?

Thanks!

lozzd commented 1 year ago

The first line of the README:

pulling the data from sensors of the the excellent BottlecapDave/HomeAssistant-OctopusEnergy integration.

Please click that link and install the integration

ActuandoWoody commented 1 year ago

That's it - that's the pre-requisite then - apologies for being a Muppet.

BottlecapDave/HomeAssistant-OctopusEnergy integration now installed, but it is erroring out when it calls the API (I have obtained a key etc). Time for bed I think...

ActuandoWoody commented 1 year ago

I now realise that the problem I have is this: https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/159

BettySwallocks commented 1 year ago

I've just updated to the latest 2023.5.1 of HA with latest frontend 20230503.2. The error "No visual editor available for type 'custom:octopus-energy-rates-card'" is back. The thing worked well just a few days ago, I believe my BottleCapDave base Octopus Integration is working OK (I see sensors and rates just fine).

ActuandoWoody commented 1 year ago

The 2023.5.2 update also killed the IPP integration: https://github.com/home-assistant/core/issues/92714

U32Frank commented 9 months ago
  • When you configure the card in yaml mode, you would then paste that value with entity: before it.

Where do I edit the cards in yaml mode? I cant use the visual editor, as I get this error (Thread title)

image

U32Frank commented 9 months ago

To answer my own question, you need to click on the 3 dots on the top right and go to "Raw Configuration editor"

image