fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
293 stars 55 forks source link

Problem with entity names #126

Closed 7wells closed 1 year ago

7wells commented 1 year ago

Hi Fabian!

I just received the below warning in the latest Home Assistant version and Batmon v0.0.67. The warning is in German*, and I used Google for a translation to English:

# Discovered entities with a name that starts with the device name

**This no longer works in version 2024.2.0.  Please fix this before upgrading**

Some MQTT entities have an entity name that starts with the device name. This is not to be expected. To avoid a duplicate name, the prefix of the device name is removed from the entity name as a workaround.  Please inform the maintainer of the software application providing the affected entities to resolve this issue.

List of affected entities:

sensor.rv_battery_cell_voltages_min
sensor.rv_battery_cell_voltages_1
binary_sensor.rv_battery_charge_switch
sensor.rv_battery_cell_voltages_min_index
sensor.rv_battery_soc
sensor.rv_battery_total_energy_charge_meter
sensor.rv_battery_cell_voltages_4
sensor.rv_battery_temperatures_2
sensor.rv_battery_power
switch.rv_battery_charge
sensor.rv_battery_cell_voltages_average
sensor.rv_battery_total_energy_discharge_meter
binary_sensor.rv_battery_discharge_switch
sensor.rv_battery_charge
sensor.rv_battery_cell_voltages_2
sensor.rv_battery_capacity
sensor.rv_battery_temperatures_1
sensor.rv_battery_cell_voltages_3
sensor.rv_battery_total_energy_meter
sensor.rv_battery_current
sensor.rv_battery_voltage
sensor.rv_battery_num_cycles
switch.rv_battery_discharge
sensor.rv_battery_cell_voltages_max
sensor.rv_battery_total_cycles_meter
sensor.rv_battery_total_charge_meter
sensor.rv_battery_cell_voltages_median
sensor.rv_battery_cell_voltages_delta
sensor.rv_battery_cell_voltages_max_index

I am unsure whether I should have addressed this here or elsewhere, so please accept my apologies if it does not belong here.

If it does, what can you or us do about it?

Thanks a lot for your really great Batmon addon! ❤️

*In German:

# Erkannte Entitäten mit einem Namen, der mit dem Gerätenamen beginnt

**Dies funktioniert nicht mehr in Version 2024.2.0. Bitte behebe dies vor dem Upgrade.**

Einige MQTT-Entitäten haben einen Entitätsnamen, der mit dem Gerätenamen beginnt. Dies ist nicht zu erwarten. Um einen doppelten Namen zu vermeiden, wird als Work-Around das Präfix des Gerätenamens aus dem Entitätsnamen entfernt. Bitte informiere den Betreuer der Softwareanwendung, die die betroffenen Entitäten bereitstellt, um dieses Problem zu beheben.

Liste der betroffenen Entitäten:

(see list above)

fl4p commented 1 year ago

Thanks, I'll fix that with the next release

7wells commented 1 year ago

Thank you so much - no warning anymore. 😊👍