Closed clydebarrow closed 1 month ago
Could you try to talk to your manufacturer and ask about another firmware with RS485 support for your battery bank? This is just an idea. I don't know how to make sure RS485 is supported or not.
Hi, we successfully connected and read data from a battery to the serial monitor. But there is an issue with mqtt not connecting. Does it have something to do with home assistant? Can we use a mqtt broker to connect to node red?
The mqtt
component of ESPHome is able talk to any MQTT broker and can be used with any Home Automation software / it's not limited to Home Assistant. Could you attach a USB cable to your ESP board and provide a ESPHome log? It will supply all needed details whats going on.
This is the error we get ehrn connecting to mqtt. the logger level is set to very verbose. The mqtt component is asking for a IP but we are not much sure about this ip
Could you provide your YAML configuration too? It looks like the configuration of the mqtt
section is wrong.
this is the yaml file we use to test the mqtt alone now
substitutions:
name: pace-bms
device_description: "Monitor and control a PACE BMS via RS485 (Modbus)"
tx_pin: GPIO16
rx_pin: GPIO17
esphome:
name: ${name}
comment: ${device_description}
project:
name: "syssi.esphome-pace-bms"
version: 1.0.0
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
level: DEBUG
mqtt:
broker: https://test.mosquitto.org
port: 1883
username: !secret mqtt_username
password: !secret mqtt_password
sensor:
- platform: adc
id: adc_sensor_1
name: ADC1 Value
pin: GPIO34
update_interval: 5s
web_server:
port: "80"
Please pass the FQDN or IP address here:
mqtt:
broker: 192.168.1.1
port: 1883
username: !secret mqtt_username
password: !secret mqtt_password
MQTT-URLs aren't supported here.
I have a Jakiper 48V100 battery with Pace BMS. When I connect to it with pbmstools I can see all the data, but the CANBus and RS485 protocol selection drop-downs are empty. Clicking Read shows a "successful" message, but still does not populate the list, and there is a a red "interruption" message in the status bar lower right.
Any ideas? Is there more than one variation of the pbmstools software?
I have the password, and I have tried th Jakiper tool, but it has no selection for the RS485 protocol.