Dynamically Rename MQTT sensors

Hi
I am very new to HA, but very excited about it’s capabilities, so would appreciate some assistance please.
I am integrating my Solar Assistant to HA. I have two pv systems, so two Solar Assistant devices.
Both devices show up in HA, but it seems the sensor data are entwined, as sensor name for one pv system is identical sensor name for the other. Is there any way, or any code to install to dynamically change the sensor name, or a friendly name to include the “Device Name” or “Device Identifiers” for recognition purposes? “Entity ID” for both sets the same.
Any help/assistance will be much appreciated

Shown in MQTT device info

device:
identifiers:
- solar_assistant_8kw
model: Deye/SunSynk/Sol-Ark
manufacturer: Deye
name: Deye/SunSynk/Sol-Ark
name: Response
state_topic: solar_assistant_8kw/set/response_message/state
unique_id: solar_assistant_8kw_set
platform: mqtt

Shown on MQTT listening
{
“command_topic”: “solar_assistant_16kw/inverter_1/prioritize_load/set”,
“device”: {
“ids”: [
“solar_assistant_16kw”
],
“mdl”: “Deye/SunSynk/Sol-Ark”,
“mf”: “Deye”,
“name”: “Deye/SunSynk/Sol-Ark”
},
“name”: “Prioritize load”,
“payload_off”: “false”,
“payload_on”: “true”,
“state_topic”: “solar_assistant_16kw/inverter_1/prioritize_load/state”,
“uniq_id”: “inverter_1_prioritize_load”
}

{
“device”: {
“ids”: [
“solar_assistant_8kw”
],
“mdl”: “Deye/SunSynk/Sol-Ark”,
“mf”: “Deye”,
“name”: “Deye/SunSynk/Sol-Ark”
},
“device_class”: “power”,
“name”: “PV power 2”,
“state_topic”: “solar_assistant_8kw/inverter_1/pv_power_2/state”,
“uniq_id”: “inverter_1_pv_power_2”,
“unit_of_measurement”: “W”
}

I will try a better upload

The other option is to change the entity id, which sounds better to me, but I can’t get it working.

According to the documentation for Solar Assistant, it uses Home Assistant’s MQTT Discovery process to create its devices and sensors in Home Assistant. The fact it creates “entwined” devices and sensors, for your two pv systems, seems like a deficiency with how Solar Assistant uses MQTT Discovery.

You should contact the maker of Solar Assistant to correct the problem.

The alternative is to not allow Solar Assistant to create devices and entities via MQTT Discovery. Create all of the entities manually (as MQTT Sensors) but to do that you will have to know all of the MQTT topics that the sensors use (and I can’t help you with that because I have no experience with Solar Assistant).

Thanks for the reply, I’ll contact them.

Hi

I have the exact same problem… Have you managed to resolve yours?