syssi / esphome-tianpower-bms

ESPHome component to monitor a Tianpower Battery Management System via BLE
Apache License 2.0
6 stars 0 forks source link

MQTT topic #32

Closed valdiks closed 1 month ago

valdiks commented 1 month ago

Hi, how can I make that a part from mqtt publish topic is not used: tianpower-bms-ble/sensor/tianpower-bms-ble_total_voltage/state to make like this: tianpower-bms-ble/sensor/total_voltage/state tianbms

It makes some unnecessary overhead to use in node-red and Telegraf input plugin to write to the influxdb

syssi commented 1 month ago

Just remove the ${name} substitution from all entities:

# old

sensor:
  - platform: tianpower_bms_ble
    tianpower_bms_ble_id: bms0
    voltage_protection_bitmask:
      name: "${name} voltage protection bitmask"
    current_protection_bitmask:
      name: "${name} current protection bitmask"

# new

sensor:
  - platform: tianpower_bms_ble
    tianpower_bms_ble_id: bms0
    voltage_protection_bitmask:
      name: "voltage protection bitmask"
    current_protection_bitmask:
      name: "current protection bitmask"