Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for more attributes #130

Closed
realPilotfish opened this issue Jul 13, 2023 · 2 comments
Closed

Support for more attributes #130

realPilotfish opened this issue Jul 13, 2023 · 2 comments

Comments

@realPilotfish
Copy link

The iobroker Mercedes Me integration shows the charging and refueling history (history.socjson, history.tankLevelJSON)
Would the be possible in mbapi2020 too?

@ReneNulschDE
Copy link
Owner

Hi Thomas,

as far as I know the MB-API-endpoints have no history endpoints. I do not know iobroker but I assume that the history is implemented with iobroker basis functionality.

The same exists in Home Assistant as long as you run with the default_config or you need the recorder and history component enabled in HA. With that you can use the HA-standard functionality to access historical data for the "fuel_level" or the "soc" sensor in this MBapi2020 component.

Please check the HA documentation:
Standard History component
Standard History stats component
and check the default History Graph card in the HA UI

Please let me know if this answers your request or please explain more in detail your use case.

Thx
Rene

@realPilotfish
Copy link
Author

realPilotfish commented Jul 17, 2023

Good point, I really hadn't thought about that!
What you get in iobroker is a json which contains entries per completed charging: start, end, state before and after, amount.
I am in the process of migrating to HA and don't habe a complete understanding of how to record such "self constructed" historic data.
I will read through the informational links that you mentioned.

Thanks a lot for the integration and you support! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants