lufton / esphome-inv-8851

Inverter 8851 protocol ESPHome integration
16 stars 3 forks source link

ESPHome unknown entities #29

Closed PZotya closed 3 weeks ago

PZotya commented 1 month ago

Hi!

Buiding az ESPHome all entities of my device has unknown state. ha-powmr

My hardware setup: The SBC is an ESP 8266 Wemos D1 mini, the power source is an 5V buck converter feeded form the inverter's pin 4 and 8. The data cables are connected to the Wemos RX and DX pins, through a max232 board, which has a a power source the 3.3V of D1 mini. The esphome version is 2024.9.2, Firmware: 2024.9.2 (Oct 19 2024, 12:05:21)

The inverter is a POW-HVM6.5K-48V.

PZotya commented 1 month ago

This is my yaml config:

substitutions:
  inverter_maximum_power: "6500"
  version: "2"
  name: powmr
  friendly_name: "PowMr Inverter"
  uart_tx_pin: GPIO1
  uart_rx_pin: GPIO3

esp8266:
  board: d1_mini

packages:
  core: !include packages/core-local.yaml
  inverter: !include packages/inverter.yaml
  grid: !include packages/grid.yaml
  temperature: !include packages/temperature.yaml
  battery: !include packages/battery.yaml
  battery-48v: !include packages/battery-48v.yaml
  # pv: !include packages/pv.yaml
  # parallel: !include packages/parallel.yaml
  # bms-48v: !include packages/bms-48v.yaml

wifi:
  ssid: "yyyyyyyy"
  password: "xxxxxx"

  ap:
    ssid: "Powmr Fallback Hotspot"
    password: "RDmLwgXZMgYm"

api:

ota:
  - platform: esphome
    password: "xxxxxxxx"
logger:
  baud_rate: 0 
lufton commented 3 weeks ago

Hello @PZotya

I didn't test setup like that with external max232 controller, there may be some pitfalls with such hardware setup. But as far as I investigated original DTU is using similar setup, so in theory everything should work.

PZotya commented 3 weeks ago

Thanks, changing the max232 datalines at ESP side solved the problem. Funny, but the working setup is that the RX port of ESP has to be connected to the max232 with arrow from ESP, and TX has to be connected to the max232 arrow to ESP.

lufton commented 3 weeks ago

Great. Glad you solved the issue. Closing.