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
482 stars 161 forks source link

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

Closed amgstone closed 3 weeks ago

amgstone commented 1 year ago

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

syssi commented 1 year 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 1 year ago

in my yaml time:

syssi commented 1 year ago

Please close this issue if it's resolved.

amgstone commented 1 year ago

but it doesn't work like that

amgstone commented 1 year ago

time:

now wrote like this

syssi commented 1 year 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 1 year ago

time:

but I want the 00.00 sensor to be reset

syssi commented 1 year ago

timezone: Europe/Kiev should fix this.

amgstone commented 1 year ago

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

syssi commented 3 weeks ago

Did you resolve the issue? I'm unable to replicate it.

amgstone commented 3 weeks ago

yes, having solved the task by flashing esp