Replace junctek_kgf with junctek_khf, there was an error on YAML example (now it’s fixed).
Now kWh precision is 3 digits.
Wow, now even all settings are readable!!!
Energy is still 0.1
Well not for me even in web server? Where is the changes, in external components? I reflashed esp but still getting 0.1
How do I get energy today? With additional config in config.yaml?
Yes, also on webserver I can see 3 digits.
Try to clean build files and install again.
Today energy are Utility Meter created on HA (Helpers) with cycle: daily and source kWh from shunt.
Well I’m stuck for now, there is failing supervisor update for all my HA devices, it is not allowing to install samba or any addon without it. I can’t get to build files…
Well I didn’t know that under three dots now there is function to clear build files…
But unfortunately even after clearing them and updating esp there is still no charge for energy, it is still 0.1
Not sure how to force it to update…
If you click on entity Energy you can adjust precision:
Try also in file yaml:
external_components:
- source: github://gianfrdp/esphome-junctek_khf@junctek_khf
components: [ junctek_khf ]
refresh: 60s
One question: is charging active? I mean, if you don’t charge your battery, “Charging Energy” won’t update, it will remain on last value.
Yes, I have done it before and it is updating but only 0.1 the rest stays 00
I will try to set yaml to update external config.
Is it in config.yaml or device.yaml?
yaml for EspHome.
Have you checked EspHome junctek log? If you can see precision?
As shown here https://community-assets.home-assistant.io/original/4X/f/4/c/f4c31d85e4a276a5e022c48c113751ac2d8fb6cd.png
logger:
level: DEBUG
Yes, in logs it was still showing 0.1
Finally with yaml trick I got 0.001
Now it is almost perfect!!! Thank you for your help!!!
I guess last bit is to get warnings about classes away from HA logs, I guess Ah as battery storage is tricky since it is expecting in kW
External components config link is different on git yaml example and in the one with 60s refresh version. Maybe that was my problem before?
They are equivalent, compact or full expanded form.
The relevant difference is refresh.
For HA log… they don’t have yet Ah for energy_storage device_class, this is the issue cause Energy Storage should be Ah not Wh · Issue #1733 · home-assistant/developers.home-assistant · GitHub
But when I talked about log, I was referring to EspHome logs (from webserver for instance).