markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
86 stars 33 forks source link

Problems when trying to install #100

Open nicwats opened 1 year ago

nicwats commented 1 year ago

Describe the bug When trying add the integration, a popup appears which has 3x text entry boxes, the bottom one of which looks like it's for a password as it has a 'reveal' icon next to it, however there's nothing stating what should be in each of the boxes.

Running on a Raspberry Pi 3 with all latest updates installed. Trying to install using Chrome & Safari on a Mac and also on ipad.

nicwats commented 1 year ago

![Uploading 405B4B6D-EEC5-4025-A0C2-9B2CE200DF21.png…]()

pgm83 commented 1 year ago

I'm installing right now too, although I note that it says the GUI configuration flow is currently not implemented, and you need to manually add the configuration yaml code. I've done that but now got errors to try to figure out!

nicwats commented 1 year ago

When you hit install, did the three text boxes have a title? Any chance you remember what they were as I can just enter it and move on if I can find out what's supposed to go in there.

pgm83 commented 1 year ago

The way I read it, they don't do anything but I may be wrong. I put a space in each to get past that issue and then manually added the code to the right places in configuration.yaml, and entered the API key etc while doing so.

Prob worth noting that the other issue listed here suggest that this is custom component is broken/doesn't work with the latest home assistant versions, and needs fixing . The main author no longer supports this and has tagged help wanted on the issues to see if someone else will fix it!

LucidityCrash commented 1 year ago

Prob worth noting that the other issue listed here suggest that this is custom component is broken/doesn't work with the latest home assistant versions, and needs fixing . The main author no longer supports this and has tagged help wanted on the issues to see if someone else will fix it!

Gotta say its still working just fine for me ... but I already had it working before the reports of it not working started. I wonder if it is related to the octopusagile.json file not being there initially.

blardybla commented 1 year ago

Can anyone advise me on which configuration.yaml file we need to update with the Octopus data is? Is it in the \config file of the main HA? Or should I be seeing something in \config\custom_components\octopusagile ?

Webreaper commented 5 months ago

Having the same issue - did anyone figure this out for the latest HA?

PhillyGilly commented 5 months ago

@Webreaper I just added this integration and it seems to be working. First step was to manually add the custom-card (as per instructions) and then use file editor to write the configuration files. My preference is not to add anything else into configuration.yaml apart from an include: octopusagile: !include octopusagile.yaml and then to put the configuration in octopusagile.yaml (note there are no indents required)

region_code: "B"
mpan: aaaaaa
serial: bbbbbb
auth: cccccc
startdate: "2024-01-01"
sensor:
- platform: "octopusagile"

Then I installed the integration from HACS. After downloading and restarting HA, I went to settings-integrations and added the Octopus Agile integration which produced the empty, three line dialogue box. I defeated that by putting a blank space on each line. This resulted in simultaneous success and failure: image After OK-ing success, I then used the ... to delete the failed entry, and when I returned to the Integrations page Octopus Agile had disappeared. As the GitHub says you can't configure it via the GUI, I wasn't overly concerned and a bit later this is what I can see: image And the octopusagile sensor has some values, hopefully there will be more after 16:30: image

PhillyGilly commented 5 months ago

Looking good here: image

Webreaper commented 5 months ago

I got it working using BottleDave's maintained integration, without needing to use this one. Works a treat.

Screenshot_20240123_171800_Home Assistant.jpg

PhillyGilly commented 5 months ago

That's great. I was travelling the opposite way!I've got BottlecapDave's integration already bringing in my live data from Octopus which is E7 and I wanted to compare that with Agile. Hence my interest. I've been playing with PredBat too, which gets the data but keeps interfering with my battery charging automation. I think that my best option will be to get that Agile prices by a rest command, and then pick out the ten cheapest overnight slots to fully charge my batteries. Cheers!