marq24 / ha-goecharger-api2

HA integration for go-eCharger series (V3 and higher) communicate via the HTTP API v2.0. [supporting 148 of 172 API-Keys]. Please note, that this integration is not official and not supported by the go-e developer team. This project is not affiliated with go-e.com in any way.
Apache License 2.0
22 stars 1 forks source link

Preprocess charger timestamps obtained from goecharger #4

Closed karliwalti closed 3 months ago

karliwalti commented 3 months ago

Description

The timestamps obtained fro the API are not very useful in HA. Therefore it would make sense to provide directly the absolute values and hide the raw values.

The math to do is simple last reset - timestamp and is based on trustworthy info from https://github.com/goecharger/go-eCharger-API-v2/issues/177#issuecomment-1742868661

so for example {states('sensor.goe_xxxx_rbt') - states('sensor.goe_xxxx_inva')}

This is a follow-up and somewhat solution to #2

API Keys

scaa
lbp
lccfi
lccfc
lcctc
lmsc
lpsc
inva
lfspt
marq24 commented 3 months ago

Cool - great catch!

marq24 commented 3 months ago

addressed with - https://github.com/marq24/ha-goecharger-api2/releases/tag/2024.5.7

please be so kind and close this issue when you consider this as solved - TIA

karliwalti commented 3 months ago

Installed and tested. works like a charm! Thank you.