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
442 stars 148 forks source link

Change mqtt-port possible? #294

Closed cyrano330 closed 1 year ago

cyrano330 commented 1 year ago

Hi guys,

is there a possibility to make the mqtt port configurable? Also the Topics etc.?

I've the problem, that I can not receive data via mqtt - but can't configure anything...

Best Henry

syssi commented 1 year ago

This is the documentation of the mqtt component of ESPHome:

https://esphome.io/components/mqtt.html

mqtt:
  broker: !secret mqtt_host
  username: !secret mqtt_username
  password: !secret mqtt_password
  port: 1883
  id: mqtt_client
syssi commented 1 year ago

I don't recommend the customize each topic but you could use the topic_prefix option to prefix all topics.

syssi commented 1 year ago

Are you able to talk to your MQTT broker now? If not please provide some logs of your ESPHome node.

cyrano330 commented 1 year ago

Sorry for late reponse. Will try tomorrow but I think the "port:" will resolve my issue...

Best!