Spotted that no one appears to have sorted this yet. So … add this to your config file (obviously, get your API key sorted and you’ll need to know your P3 version.).
rest:
- resource_template: https://api.p3.powervault.co.uk/v3/unit/P3-xxxx/data?
scan_interval: 1
headers:
accept: application/json
x-api-key: !secret powervault_key
sensor:
- name: "PowerVault SOC"
value_template: '{{ (value_json["data"][0].instant_soc | int) }}'
unit_of_measurement: '%'
- name: "PowerVault Solar"
value_template: '{{ (value_json["data"][0].instant_solar | int / 1000 ) }}'
unit_of_measurement: W
- name: "PowerVault House Using"
value_template: '{{ (value_json["data"][0].homeConsumed | int / 1000 ) }}'
unit_of_measurement: W
- name: "PowerVault Solar Export"
value_template: '{{ (value_json["data"][0].solarExported | int / 1000 ) }}'
unit_of_measurement: W
- name: "PowerVault Grid Import"
value_template: '{{ (value_json["data"][0].instant_grid | int / 1000 ) }}'
unit_of_measurement: W
- name: "PowerVault Battery Flow"
value_template: '{{ (value_json["data"][0].instant_battery | int / 1000 ) }}'
unit_of_measurement: W
There are other fields / records or whatever it’s called to be added if needed. Anyone want help then shout :).
Just found this - I have long wanted to access my Powervault through Home Assistant.
Will it be possible to control the charging/discharging do you think?
I’m afraid I am no use with coding, otherwise would be keen to help.
Off to request my API key now.
I’ve not tried as I simply have my battery now set to ‘Force Charge’ between the hours of 12.35am - 4.20am. So it’s always at pretty much full when I wake. Any excess charge through the day (if we had low use) trickles into the car(s). We never have everything full here so leakage back to the grid isn’t an issue.
Thanks for that - just got a reply from Powervault - they are looking for £60 a year for the API key! Did you get the same thing? Seems pretty salty.
Anyway… I am on Octopus Intelligent, and controlling the battery would be great for taking advantage of the random cheap times that seem to crop up through the day. Not only to charge at those times, but to stop the battery discharging when the prices are cheap. Powervault have their own OI ‘Smartstor’ but it only seems to set the battery to charge at night in the set 2330-0530 guaranteed cheap window - a bit disappointing.
Andy, I got the same thing which I thought was very steep. I could see a one-off charge but not £60 a year. Very short sighted in my opinion as there’s lots of innovation that could be happening but wont at that price.
Yer, I was pretty discussed about the charge for the API also. Managed to wangle a few year for free due to various things. They need to be careful as charging for API access like this will turn off the exact type of people that the surely want buying their hardware.
Hope it doesn’t take a hard lesson before they learn this.
I’ve been in touch with them to advise them of this exact point. They could in effect damage their future business as innovators will use other products.
Hello. I’m the developer of that HA integration. I’ve recently updated it with the new “beta” API. The API has been terrible lately in terms of performance, but I have added quite a few improvements to it. Hopefully this can be of use to a few others.
One key feature I added was the ability to override the battery state, so you can control the charging state etc from HA. I have this fully integrated with EMHASS which generates a schedule for the battery overnight. It’s also integrated with my Ohme charger, so the battery will switch to Import Only mode while the car is charging,
Hey Adam, I just wanted to say “thank you so much!” for this plugin. I had been using the Powervault Agile integration and that was working well but switching to IOG was giving me grief with the IOG creating charging schedules. Lack of battery control being a big issue.
I had a discussion with Powervault and one of their cloud developers called me back and I got an API key, plugged it in and within a few minutes just created an automation that watched price change and does a force charge when the price goes to 7p, either cheap hours or as soon as the car starts charging on IOG scheduling.
Hi @adammcdonagh I would also like to thank you for developing this integration. Some time ago I had looked for a Powervault integration and couldn’t find anything, so I must have missed yours somehow. I have also been developing my own automations, but hit a problem trying to set the override status, and lots of searching eventually lead me to this thread.
I have installed the integration which is working nicely. It looks like it is connecting to Powervault every 30 seconds, which is more fequent than I need as I have local energy monitoing via emonCMS and I don’t want to be putting too much burden on the Powervault server(s). Would it be easy to change the polling interval?
I will shortly be getting a Tepeo ZEB (electric boiler) and will be moving to the Octopus Cosy tariff, which has 3 separate cheap periods totalling 8 hours per day, and so I need to be able to control the charging state of the Powervault for shorter durations than the 24 hours that the integration enables. Have you considered making the duration an option that the user can set?
(However I have just got my automation working and I am now able to set the override state of my Powervault for any duration I want )
I also noticed the charging states enabled by the integration includes “dormant”. I remember when this appeared in the Powervault portal, and I started using it. During one discussion with Powervault support they asked me why I was using dormant, and they said it was only to be used by their support team. I responded that they should have mentioned that in in the portal, otherwise how are we customers supposed to know?! (We know their documentation is very lacking, something I discussed with them last year). I have also noticed that dormant no longer appears in the options in the Powervault portal, so maybe it should be removed from this integration?
Thanks again for developing and sharing this integration.
After thinking about this further (triggered by re-reading the last post from djtaylor), I think I was mistaken about the limitations of the 24 hour period for the override. Presumably as long as HA can trigger another update to the charging state again, the override can be ‘turned off’ at any time, and so the 24 hour period is actually irrelevant! Apologies for my confusion, I am still learning the various ways of using HA!
Hi there
Does this integration work for a P4?
I installed it, entered my API and it only seems to offer me my (now defunct and removed) P3 as the available battery.
Many thanks for developing this either way!
Cheers
Andy
Ah, sorry - problem solved. All batteries begin with a P3 code apparently - but they had made a mistake with my API which is why I couldn’t get it to work. All sorted and up and running!
Many thanks again for the integration.
Do you know how much Powervault now want for API access?
Also it would be great to know what info you can get from the API and this integration.
The online portal is very limited eg you can’t even see exact battery percentage which is frustrating when it says 80%-100% for example.
I seem to be having a problem with my automations - for example I am trying to stop the charge at a certain percentage overnight but each time I make a call to change the status of the battery to, say, only-charge, it stays there for 30s or so then reverts back to whatever the manual schedule is set to.
Can anyone tell me what I am missing?