esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

daly_bms component don`t read first 4 cells #3306

Open Micha87 opened 2 years ago

Micha87 commented 2 years ago

The problem

hi, unfortunately the DALY_BMS component does not read my first 4 cells.

Installed are 16 cells, the values of the other cells come. Can I write or read any logs with here?

Thanks.

BR

Which version of ESPHome has the issue?

2022.5.0

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP8266

Board

Wemos D1

Component causing the issue

daly_BMS

Example YAML snippet

esphome:
  name: dalybms

esp8266:
  board: d1_mini

web_server:
  port: 80
# Enable logging
logger:
 baud_rate: 0
# Enable Home Assistant API
api:

ota:
  password: "*****"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Dalybms Fallback Hotspot"
    password: "WackYd84P5UF"

captive_portal:
uart:
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 9600

daly_bms:
  update_interval: 20s

sensor:
  - platform: daly_bms
    voltage:
      name: "Battery Voltage"
    current:
      name: "Battery Current"
    battery_level:
      name: "Battery Level"
    max_cell_voltage:
      name: "Max Cell Voltage"
    max_cell_voltage_number:
      name: "Max Cell Voltage Number"
    min_cell_voltage:
      name: "Min Cell Voltage"
    min_cell_voltage_number:
      name: "Min Cell Voltage Number"
    max_temperature:
      name: "Max Temperature"
    max_temperature_probe_number:
      name: "Max Temperature Probe Number"
    min_temperature:
      name: "Min Temperature"
    min_temperature_probe_number:
      name: "Min Temperature Probe Number"
    remaining_capacity:
      name: "Remaining Capacity"
    cells_number:
      name: "Cells Number"
    temperature_1:
      name: "Temperature 1"
    temperature_2:
      name: "Temperature 2"
    cell_1_voltage:
      name: "Cell 01 Voltage"
    cell_2_voltage:
      name: "Cell 02 Voltage"
    cell_3_voltage:
      name: "Cell 03 Voltage"
    cell_4_voltage:
      name: "Cell 04 Voltage"
    cell_5_voltage:
      name: "Cell 05 Voltage"
    cell_6_voltage:
      name: "Cell 06 Voltage"
    cell_7_voltage:
      name: "Cell 07 Voltage"
    cell_8_voltage:
      name: "Cell 08 Voltage"  
    cell_9_voltage:
      name: "Cell 09 Voltage"
    cell_10_voltage:
      name: "Cell 10 Voltage"
    cell_11_voltage:
      name: "Cell 11 Voltage"
    cell_12_voltage:
      name: "Cell 12 Voltage"
    cell_13_voltage:
      name: "Cell 13 Voltage"
    cell_14_voltage:
      name: "Cell 14 Voltage"
    cell_15_voltage:
      name: "Cell 15 Voltage"
    cell_16_voltage:
      name: "Cell 16 Voltage"
text_sensor:
  - platform: daly_bms
    status:
      name: "BMS Status"

binary_sensor:
  - platform: daly_bms
    charging_mos_enabled:
      name: "Charging MOS"
    discharging_mos_enabled:
      name: "Discharging MOS"  

mqtt:
  broker: 192.168.11.10
  port: 1885
  username: ***
  password: ***

Anything in the logs that might be useful for us?

# logs here

logs_dalybms_upload.txt

Additional information

No response

jesserockz commented 2 years ago

Please add your config yaml above in Example YAML snippet and logs when it is updating the state in the logs section above.

probot-esphome[bot] commented 2 years ago

Hey there @s1lvi0, mind taking a look at this issue as it has been labeled with an integration (daly_bms) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ssieb commented 1 year ago

Try adding rx_buffer_size: 512 to the uart config.