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

MQTT Issue #305

Closed andyw73 closed 1 year ago

andyw73 commented 1 year ago

When only using mqtt protocol and not home assistant api a 'homeassistant' topic also gets sent to the mqtt broker (this doesn't keep updating the sensors and from what i can tell only happens on reboots). How can we stop this behaviour from happening as I dont want to integrate this into Ha. Thanks in advance.

esphome-jk-bms

syssi commented 1 year ago

The homeassistant topic is used for meta informations about the node / exposed sensors to allow Home Assistant to auto-discover the node. Please lookup the parameters of the mqtt component of ESPHome. There is an option called discovery which can be disabled. This will suppress the auto-discovery messages.

syssi commented 1 year ago
mqtt:
   broker: !secret mqtt_host
   id: mqtt_client
   discovery: false
andyw73 commented 1 year ago

Thank you that resolved the issue.