KinDR007 / VictronMPPT-ESPHOME

Victron Mppt charger ve.direct to esphome node
MIT License
291 stars 64 forks source link

battery_temperature not working #99

Closed kkaminski7 closed 2 years ago

kkaminski7 commented 2 years ago

Hi I have "Victron Smartsolar 100/20" mppt with "Smart battery sense" connected. Everything seems to work fine so far except "battery_temperature". Is it working? Maybe I have defined it wrong in esphome, below my config for it:

    battery_temperature:
      name: "Battery Temperature"
      device_class: temperature
      state_class: measurement
      unit_of_measurement: "°C"
syssi commented 2 years ago

Could you enable the debug output/mode of the uart component and provide a log of your Esphome node? It should include a complete status frame of your victron device. I would like to understand which measurements are available and which aren't part of the status frame.

kkaminski7 commented 2 years ago

I have set debug according to debug-esp32-example.yaml

  debug:
    direction: BOTH
    dummy_receiver: false
    after:
      delimiter: "\n"
    sequence:
      - lambda: UARTDebug::log_string(direction, bytes);

Downloaded logs attached. logs_esphome-web-da590e_logs.txt

syssi commented 2 years ago

This is the response of your Victron device:

PID     0xA060
FW     159
SER#   HQ21254RHYW
V      13230
I      -20
VPV    16590
PPV    5
CS     3
MPPT   2
OR     0x00000000
ERR    0
LOAD   ON
IL     400
H19    2427
H20    13
H21    92
H22    22
H23    125
HSDS   122
Checksum       �

Do you see the temperature you are looking for here?

syssi commented 2 years ago

Battery temperature (key T) isn't available. It looks like your are looking for a measurement your Victron device doesn't provide (at the ve.direct ascii telegram).

kkaminski7 commented 2 years ago

I see. Thanks for your help.