Closed Mushishi closed 1 year ago
thats a weird one, its not like that for me. can you run integration in debug for a cycle and send me the log?
Sure will do that. Though i can see that there is a truenas scale update so will apply that first and try to readd the intergration again. Just need to wait till a bit later today when i am not using the shares.
I hope this is what you need tomaae i had debug enabled when i did add my truenas scale server again after i had upgraded it to 22.12.3.3, and it is the same at this point that it shows the skisk just as disks and services as services.
(I did hide the share names in the log with ** just for personalation and sharenames do not have the problems with the dashboards)
**EDIT***
Did not know it would save a debug log when disabling debug logging so here is the debug log after disableg debug logging again.
They seem to be created correctly
2023-07-28 13:00:58.487 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-nvme1n1
2023-07-28 13:00:58.487 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-sdb
2023-07-28 13:00:58.487 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-sdc
2023-07-28 13:00:58.488 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-sdf
2023-07-28 13:00:58.488 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-sdd
2023-07-28 13:00:58.488 DEBUG (MainThread) [custom_components.truenas.model] Updating entity TrueNAS-disk-sde
Taking example:
2023-07-28 13:00:56.248 DEBUG (SyncWorker_11) [custom_components.truenas.apiparser] Processing entry {'identifier': '{serial_lunid}S4D16WWM0000K705DXHD_5000c5009863a85f', 'name': 'sdd', 'subsystem': 'scsi', 'number': 2096, 'serial': '**REDACTED**', 'lunid': '5000c5009863a85f', 'size': 6001175126016, 'description': '', 'transfermode': 'Auto', 'hddstandby': 'ALWAYS ON', 'advpowermgmt': 'DISABLED', 'togglesmart': True, 'smartoptions': '', 'expiretime': None, 'critical': None, 'difference': None, 'informational': None, 'model': 'ST6000NM0034', 'rotationrate': 7200, 'type': 'HDD', 'zfs_guid': '12243305044132658044', 'bus': 'SCSI', 'devname': 'sdd', 'enclosure': None, 'supports_smart': None, 'pool': None}
Both devname and name are filled and correct.
Lets check how it looks in ha ui. Click on one of disks and settings. It should show something like this: Entity id is what we are looking for. Both one created by integration where is shows correct name and after you add it to dashboard. Not sure whats going on there, this may be a tough one.
When I tested same thing you did, I got correct result:
Not sure what there might be updated while i was on vacation other then i installed the latest HA update but it now show the names correct. So might just be a fluke in my 2023.7.2 where it had nor read the name.
Now with the latest HA version 2023.8.1 though i can't see any default cards. So one thing was fixed and now another popped up.
This is what i see looking at the the disk "tab" under the truenas device:
But all the entries are still there and they show up with the correct names in the dashboards i had setup already.
This is how the disk settings look for the sdd disk at the moment:
Since i am on vacation now i can try to spin up a new HA install and just add the TrueNAS intergration to it so we can see how it works on a new install. Might be something that is installed on the running setup that gives the problems.
yea, 2023.8 broken links between entities. so you wont see anything in integration card. have to update integration to fix it. I will be testing it on several truenas VMs, so we will see if I can replicate your issue
I will do some testings with a new HA install here this week also to see if is my old install that did it but atleast the name problems is solved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue was closed because it has been stalled for 5 days with no activity.
Describe the issue
If i look at the sensor list of example my disks it do show up with the disk names (nvme and sd), but when i add it to the Dashboard it just shows them as FS01 Disks (FS01 is the name of my truenas) and the sensor path to them is sensor.fs01_disks_1,2,3 and not nvme or sd like it was before. It is the same with Datasets and Services list.
How to reproduce the issue
After i had change my TrueNAS hardware and reinstalled TrueNAS Scale i did remove the old intergration and did readd it it changed to this behavor. The only thing diffrent from this setup was a new install of TrueNAS Scale 22.12.3.2 where the last intergration was form a system that have been upgraded.
Expected behavior
That it would show the names and not just call them Disks, Services and Datasets in Dashboard.
Screenshots
Expected behavor:
What it shows when adding and added to the dashboard:
Software versions
Additional context
This is the code for the Disk card when added to a dashboard: