tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 16 forks source link

Real unique id #138

Closed djiesr closed 5 months ago

djiesr commented 8 months ago

Is your feature request related to a problem? Please describe.

When I had à TrueNAS serveur, the sensor did'nt get a unique id. Like:

Temperature = sensor.temperature_3 Uptime = sensor.uptime_2 CPU usage = sensor.cpu_usage

Then, when you make a automatisation ou the dashboard, you have to check inch sensor to be sure it is the TrueNAS.

Describe the solution you'd like

Had a unique id with the server name like :

Temperature = sensor.truenas_temperature Uptime = sensor.truenas_uptime CPU usage = sensor.truenas_cpu_usage

Describe alternatives you've considered

I understand that's wasn't a good solution for everyone have already install the integration, but you can had a option to use the old id or the new id.

That will be more pleasant for multi server to.

Additional context

If you not consider to do that, please, juste tell me what I have to modify to do it. Thanks!

krzysiek2788 commented 8 months ago

As far as I know there was unique ID with naming like: Temperatur = sensor.truenas_system_temperature first part was name of device and second was real sensor so it was easy to find.

I think during resent major changes in Home Assistant regard naming of entities, Integration didn't adapt so there need to be some changes made :)

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

dudu7731 commented 7 months ago

it's really a problem, i have 2 truenas VM and all sensors are upside down with _2 or _3 ... can you resolve this please ? really need the server name in sensor id

tomaae commented 6 months ago

if this still the case with master?

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

tomaae commented 5 months ago

tested this in master, all entites are prefixed by integration name. so this cannot happen.