syssi / esphome-jk-bms

ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE
Apache License 2.0
405 stars 134 forks source link

does not create a utility meter assistant in HA, does not reset the utility meter #388

Open amgstone opened 8 months ago

amgstone commented 8 months ago

does not create a utility meter assistant in HA, does not reset _the IMG_20231106_102627 IMG_20231106_102500 _ utility meter

syssi commented 8 months ago

It's super important to provide a time source. Without the time the component is unable to reset the counter at midnight:

https://github.com/syssi/esphome-jk-bms/blob/main/yaml-snippets/esp32-ble-energy-dashboard.yaml#L43-L44

amgstone commented 8 months ago

in my yaml time:

syssi commented 8 months ago

Please close this issue if it's resolved.

amgstone commented 8 months ago

but it doesn't work like that

amgstone commented 8 months ago

time:

now wrote like this

syssi commented 8 months ago

This:

time:
  - platform: sntp

receives the time from NTP servers. This retrieves the time from Home Assistant:

time:
  - platform: homeassistant
    id: my_time

Does the bms0 charging energy today sensor reset on midnight now?

amgstone commented 8 months ago

time:

but I want the 00.00 sensor to be reset

syssi commented 8 months ago

timezone: Europe/Kiev should fix this.

amgstone commented 8 months ago

when I type it, it stops working, does not reset the counter