Speak EV - Electric Car Forums banner

Indra Charger Local Data

1 reading
10K views 26 replies 12 participants last post by  djhworld  
#1 ·
Has anyone managed to get data locally from the Indra/ChargedEV Smart Pro yet?
I currently poll Kaluza for this data to link to my solar/battery system so as not to discharge my house battery into the car - (Charge Status, Power etc...) but it would be nice to not have to rely on an undocumented 3rd party API and pull this locally instead with faster updates.
 
#3 ·
What data are you looking for. We're going to publish an API/websocket in q2 22 for this kind of stuff but may be able to do something.

Sent from my SM-N976B using Tapatalk
 
#4 ·
Currently I query the device state which gives me:
{
"data": {
"device": {
"currentState": {
"ev": {
"status": "DISCONNECTED",
"homeAlone": false,
"chargeRate": {
"total": 0,
"fromSolar": 0,
"fromGrid": 0,
"fromSolarPercent": 0,
"fromGridPercent": 100
},
"stateOfCharge": null,
"isPluggedIn": false,
"lastUpdated": "2021-12-21T10:33:32.215Z"

So just a local version of that data is fine, I can still trigger start and stop charging fine via API as it is.
Just trying not to take the P by pummelling Kaluza too much. (I did try and get this direct but port scans show no obvious way in. I did even try from the BeagleOne but you've either disabled USB or I just didn't try hard enough!)
This is how it currently integrates: You are sadly relegated to charger 2 on the top right.
Image
 
#5 ·
Currently I query the device state which gives me:
{
"data": {
"device": {
"currentState": {
"ev": {
"status": "DISCONNECTED",
"homeAlone": false,
"chargeRate": {
"total": 0,
"fromSolar": 0,
"fromGrid": 0,
"fromSolarPercent": 0,
"fromGridPercent": 100
},
"stateOfCharge": null,
"isPluggedIn": false,
"lastUpdated": "2021-12-21T10:33:32.215Z"

So just a local version of that data is fine, I can still trigger start and stop charging fine via API as it is.
Just trying not to take the P by pummelling Kaluza too much. (I did try and get this direct but port scans show no obvious way in. I did even try from the BeagleOne but you've either disabled USB or I just didn't try hard enough!)
This is how it currently integrates: You are sadly relegated to charger 2 on the top right.
Image
You're unlikely to find a way in on production firmware - it's been attacked by a number of pen testers now!

I'll send you a note to see if anything we have could work.

Sent from my SM-N976B using Tapatalk
 
#7 ·
Hi there,

I’m also looking to get local access to an Indra charger to read consumption and trigger charge sessions. I wondered if there had been any developments on the API above?

many thanks
Ben
+1 for myself as well.

Anyone know any details in the public API? I'd like to get the details into my automation - even if delayed.

Thanks

Mike
 
#9 ·
I just watched what it was doing in the browser with developer tools (you'll see it make calls to https://maestro.vcharge.io/query/?q=true&swc=false)
I have it all in Postman if your stuck.
Thanks Hoggy
Ill have a play around with dev tools. If you have the postman to hand would be apricated - would save me reinventing the wheel!

I already use weconnect-mqtt for VW machines which gives me most of the good stuff in my HA platform and also have a shelly EM on the tails for the charger along side the house tails - so can get consumption and logic off that.

Image

Image


Cheers!!

Mike
 
#10 ·
Right so here it is in Postman Here (use import as URL)
You'll need to input your login details in the collection variables part to get it to work.
If your using home assistant you'll need to run the Login one to give you an Auth Token to use in subsequent calls. These do expire so you'll have to have something in place to renew it every day or so.

Note, In postman I've setup a number of "tests" (things that happen after the call is run) to populate some variables the charger needs in the "body" of the requests (like the Device ID) to allow subsequent other calls to work.
"Get Device ID" is the one you will need to run once only, then the rest should work as it'll put the correct charger ID into the request body from then on.
Image


Oh one more thing, each call to the "Maestro" URL technically gets sent with a unique ID string if you truly want to "mimic" the webpage. It doesn't reject any calls if this is omitted (& i've polled it every 5 mins for >Year now) as it's what's in the request Body that matters, but I kept that in my back pocket if they cut me off!
I've left the Unique ID's as variables if you need to use them.
 
#11 ·
Hi Hoggy,
This is amazing work, I was just looking at this the other day and didn't find anyone talking about how to pull the data but this is so helpful!

Could I ask, how did you import it into HA? I was looking for an integration but I can't find anyone who has made one right now.
Thanks!
 
#12 ·
I'm afraid I don't know about Home Assistant - I don't use it. For reasons unknown I decided to build my own dashboards for the smart stuff in my home along with making it all talk & dance together through MS Powershell.
I did share all my work on many chargers over on the HA forums though for others to use if they wanted, you may get some traction there although I think only the PodPoint one gained much traction and someone rolled an integration out for it.
 
#15 ·
hmm that's odd. Mine is "branded" by ChargedEV so perhaps the login path is different?
Postman can be a bit odd with variables, you have to input them, press save, then click "reset all" for them to actually change.
Copying the XHR request should work though? (XHR > Copy > Copy as Curl (Bash) > Import into Postman (as Raw)
 
#16 ·
hmm that's odd. Mine is "branded" by ChargedEV so perhaps the login path is different?
Postman can be a bit odd with variables, you have to input them, press save, then click "reset all" for them to actually change.
Copying the XHR request should work though? (XHR > Copy > Copy as Curl (Bash) > Import into Postman (as Raw)
Even though mine is also branded ChargedEV, you kind of pointed me in the right direction! For me, I have had to change the Origin to Indra and the referer to Indra - I guess they must have updated something on their API. Thanks again for your work on this!
 
#23 ·
@Mike Schooling - I've upgraded to your new app. As ever I've been poking around. You've made things much more awkward with auth & also "Transactions" unique ID's each time to go fetch charge rates for the current session BUT I see a glimmer of hope: https://api.indra.co.uk/ is a thing now sooo... is there a plan for us annoying people to be able to use it?
I see I have an API key assigned to my account already but it never seems to get called up? (another Auth token is being used instead)
Does this have a web portal I'm unaware of outside the app where all this new stuff resides?

I don't think my existing route in via Kaluza has stopped working so no massive rush.
 
#24 ·
@Mike Schooling - I've upgraded to your new app. As ever I've been poking around. You've made things much more awkward with auth & also "Transactions" unique ID's each time to go fetch charge rates for the current session BUT I see a glimmer of hope: https://api.indra.co.uk/ is a thing now sooo... is there a plan for us annoying people to be able to use it?
I see I have an API key assigned to my account already but it never seems to get called up? (another Auth token is being used instead)
Does this have a web portal I'm unaware of outside the app where all this new stuff resides?

I don't think my existing route in via Kaluza has stopped working so no massive rush.
Yes, api.indra.co.uk is where we are going. At the moment this is restricted to our app only but we do plan to open this up with an OAuth flow that will allow you to use it locally. We're scoping HA use cases at the moment to make sure this API serves as many users as possible so please feel free to contribute any scenarios you're trying to achieve.
 
#25 ·
Is there any progress on the API? I have a PV installation with Fronius Gen24, BYD batteries and Fronius smart meter and now I am deliberating whether to get a Fronius Wattpower or whether the Indra devices are actually better and more suited to me. I want everything to be controlled via Home Assistant which currently controls my use of PV generated power around the house and I need the EV charging to integrate with this. If the openAPI were to allow monitoring of stats and also to be able to control the charging current to the EV via the use of evcc-io and HA that would be my ideal solution. I believe Fronius Wattpower can do this but will Indra be able to?
 
#27 ·
Apologies for reviving this thread, I've been narrowing down my list of chargers to ones that my manufacturer recommends + ideally has some API (and even better....Home Assistant integration even if its through HACS)

Indra definitely meets the first criteria, but just wondering if there is anything on the horizon API wise.

Main use case for me would be just for data purposes, I don't forsee a need to automate charging etc so even just a read-only API would be good.