App, API and multiple batteries

7 comments started 2023-02-15 last 2023-02-16
Mobile App
R
#1 Rtidey

The App gives some access to the individual battery statuses in a multiple battery install.

I had assumed the app was primarily using the API to gather its information to display (which would satisfy most of the data presented) but I can't find anything in the API that returns separate battery data. All the calls seem to return just one overall battery status.

I know GivTCP can give much more detailed information by locally querying the registers locally but I very much doubt the App is doing anything like that as it has also to work remotely.

So either I am missing something in the API, or there is some undocumented feature that I don't know about, or the app has some other mechanism it uses. The API LatestSystemData call seems to be the obvious candidate for this but this just returns 1 averaged battery and does not have any documented parameters to change this.

Anybody have any ideas on this?

#2 hoggy

@Mickey (GivEnergy) / @Sam D (GivEnergy) not sure if your in a position to elaborate on this.
Personally Iโ€™d also like the play, pause etc exposed as well.
(Youโ€™ve cunningly blocked my usual โ€˜man in the middleโ€™ method of finding this out)

S
#3 stevelewis

hoggy looking at the command log on the portal, the app commands for play, pause etc appear to operate on the normal inverter registers. The app doesn't pick up on the fact that the inverter may have been forced to charge or pause using the portal or the API. There may be an intermediary between the app and the portal of course.

#4 hoggy

stevelewis Yes deep down it really just plays around with charge timers & discharge rates however when I last spoke to Mickey (which admittedly was 6+ months back) it did sound like they would be getting made available as a bespoke call in the API.
Long story short I'm just chancing my luck to get more stuff in the API off the back of this!

#5 Mickey (GivEnergy)

Hi @hoggy

What we release into the API at this point isn't up for us developers (I would love to release more stuff for the API though ๐Ÿ™‚). As for the quick settings, everything is logged on the portal for what they do so you could easily replicate this feature on the API which is why we've left it for the time being.

Battery data is quite new. If there is an unintended or missing feature on the API, please do give us a shout via the support lines or feedbacks. There's no harm in suggesting something to us

#6 hoggy

Drat - i'd hoped you'd break and let slip the battery call... :-) (oldschool smiley as your emoji's on here have broken i think?)

I've submitted a feedback request as suggested anyway.

T
#7 Tim

hoggy ๐Ÿ˜ƒ ๐Ÿฆ„ ๐Ÿ”‹ No the smileys/emojis are there, you just need to prompt by typing in a letter ๐Ÿ˜‰ ๐Ÿ‘๏ธ The options have been extended. Shortcut is the colon with a space in front