tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
195 stars 19 forks source link

[Bug] Entities not listed by their name according to TrueNAS #110

Closed 3473f closed 1 year ago

3473f commented 1 year ago

Describe the issue

Disks, datasets and apps are now listed as sensor.truenas_disks_{num}, sensor.truenas_datasets_{num} and binary_sensor.truenas_apps_{num} where as before the latest version, the disks for example were listed using their names according to TrueNAS sensor.sda.

Weirdly, when I check the cards under TrueNAS Disks device, the names for disks, datasets and apps are listed correctly. However, if I attempt to add them, the names get replaced with TrueNAS Disks. Same behavior with other entities.

How to reproduce the issue

  1. Upgrade TrueNAS to v1.2.4
  2. Look up how the entities provided by the integration are named

Expected behavior

The integration should pull the name from TrueNAS and list the entities using the pulled name.

Screenshots

The disks under TrueNAS device grafik

When attemptingt to add them grafik

How they are listed grafik

Software versions

Diagnostics data

Traceback/Error logs

Additional context

tomaae commented 1 year ago

There was no change that could affect entity name in v1.2.4 Can you attach diagnostics data?

3473f commented 1 year ago

It seems that the names are pulled correctly.

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2023.9.2",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.11.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.107+truenas",
    "run_as_root": true
  },
  "custom_components": {
    "truenas": {
      "version": "0.0.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "dreame_vacuum": {
      "version": "v1.0.1",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "tzlocal"
      ]
    }
  },
  "integration_manifest": {
    "domain": "truenas",
    "name": "TrueNAS",
    "codeowners": [
      "@tomaae"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/tomaae/homeassistant-truenas",
    "iot_class": "local_polling",
    "issue_tracker": "https://github.com/tomaae/homeassistant-truenas/issues",
    "requirements": [],
    "version": "0.0.0",
    "is_built_in": false
  },
  "data": {
    "entry": {
      "data": {
        "name": "TrueNAS",
        "host": "**REDACTED**",
        "api_key": "**REDACTED**",
        "ssl": false,
        "verify_ssl": true
      },
      "options": {}
    },
    "data": {
      "interface": {
        "enp1s0": {
          "id": "enp1s0",
          "name": "enp1s0",
          "description": "",
          "mtu": null,
          "link_state": "LINK_STATE_UP",
          "active_media_type": "Ethernet",
          "active_media_subtype": "1000Mb/s Twisted Pair",
          "link_address": "a8:a1:59:b8:83:ef",
          "rx": 45.63,
          "tx": 146.26
        }
      },
      "disk": {
        "sda": {
          "name": "sda",
          "devname": "sda",
          "serial": "**REDACTED**",
          "size": 4000787030016,
          "hddstandby": "ALWAYS ON",
          "hddstandby_force": false,
          "advpowermgmt": "DISABLED",
          "acousticlevel": "unknown",
          "togglesmart": true,
          "model": "WDC_WD40EFZX-68AWUN0",
          "rotationrate": 5400,
          "type": "HDD",
          "temperature": 34
        },
        "sdc": {
          "name": "sdc",
          "devname": "sdc",
          "serial": "**REDACTED**",
          "size": 4000787030016,
          "hddstandby": "ALWAYS ON",
          "hddstandby_force": false,
          "advpowermgmt": "DISABLED",
          "acousticlevel": "unknown",
          "togglesmart": true,
          "model": "WDC_WD40EFZX-68AWUN0",
          "rotationrate": 5400,
          "type": "HDD",
          "temperature": 34
        },
        "sde": {
          "name": "sde",
          "devname": "sde",
          "serial": "**REDACTED**",
          "size": 120034123776,
          "hddstandby": "ALWAYS ON",
          "hddstandby_force": false,
          "advpowermgmt": "DISABLED",
          "acousticlevel": "unknown",
          "togglesmart": true,
          "model": "Patriot_Burst_Elite_120GB",
          "rotationrate": null,
          "type": "SSD",
          "temperature": 35
        },
        "sdb": {
          "name": "sdb",
          "devname": "sdb",
          "serial": "**REDACTED**",
          "size": 4000787030016,
          "hddstandby": "ALWAYS ON",
          "hddstandby_force": false,
          "advpowermgmt": "DISABLED",
          "acousticlevel": "unknown",
          "togglesmart": true,
          "model": "WDC_WD40EFPX-68C6CN0",
          "rotationrate": 5400,
          "type": "HDD",
          "temperature": 33
        },
        "sdd": {
          "name": "sdd",
          "devname": "sdd",
          "serial": "**REDACTED**",
          "size": 4000787030016,
          "hddstandby": "ALWAYS ON",
          "hddstandby_force": false,
          "advpowermgmt": "DISABLED",
          "acousticlevel": "unknown",
          "togglesmart": true,
          "model": "WDC_WD40EFZX-68AWUN0",
          "rotationrate": 5400,
          "type": "HDD",
          "temperature": 32
        }
      },
      "pool": {
        "18169793210102021960": {
          "guid": "18169793210102021960",
          "id": 1,
          "name": "sharkfin",
          "path": "/mnt/sharkfin",
          "status": "ONLINE",
          "healthy": true,
          "is_decrypted": true,
          "autotrim": false,
          "scan_function": "SCRUB",
          "scrub_state": "FINISHED",
          "scrub_start": "2023-09-15T02:00:04+00:00",
          "scrub_end": "2023-09-15T03:30:50+00:00",
          "scrub_secs_left": null,
          "available_gib": 8927.05,
          "total_gib": 10694.88
        }
      },
      "dataset": {
        "sharkfin": {
          "id": "sharkfin",
          "type": "FILESYSTEM",
          "name": "sharkfin",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin",
          "comments": "",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.01",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 1898190668736,
          "available": 9585343921216,
          "used_gb": 1767.83
        },
        "sharkfin/app-config": {
          "id": "sharkfin/app-config",
          "type": "FILESYSTEM",
          "name": "sharkfin/app-config",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/app-config",
          "comments": "",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "3.13",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 34908480,
          "available": 9585343921216,
          "used_gb": 0.03
        },
        "sharkfin/app-config/nextcloud-database": {
          "id": "sharkfin/app-config/nextcloud-database",
          "type": "FILESYSTEM",
          "name": "sharkfin/app-config/nextcloud-database",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/app-config/nextcloud-database",
          "comments": "",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "3.13",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 34765632,
          "available": 9585343921216,
          "used_gb": 0.03
        },
        "sharkfin/catfish": {
          "id": "sharkfin/catfish",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "2.17",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 649982208,
          "available": 9585343921216,
          "used_gb": 0.61
        },
        "sharkfin/catfish/clbr": {
          "id": "sharkfin/catfish/clbr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/clbr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/clbr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.54",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 315456,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/hm-asstnt": {
          "id": "sharkfin/catfish/hm-asstnt",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/hm-asstnt",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/hm-asstnt",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.27",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 41241408,
          "available": 9585343921216,
          "used_gb": 0.04
        },
        "sharkfin/catfish/snrr": {
          "id": "sharkfin/catfish/snrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/snrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/snrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.49",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 47627904,
          "available": 9585343921216,
          "used_gb": 0.04
        },
        "sharkfin/catfish/pihl": {
          "id": "sharkfin/catfish/pihl",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/pihl",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/pihl",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "2.78",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 370976256,
          "available": 9585343921216,
          "used_gb": 0.35
        },
        "sharkfin/catfish/rdrr": {
          "id": "sharkfin/catfish/rdrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/rdrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/rdrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.18",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 89232384,
          "available": 9585343921216,
          "used_gb": 0.08
        },
        "sharkfin/catfish/prwlrr": {
          "id": "sharkfin/catfish/prwlrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/prwlrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/prwlrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "3.53",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 5332992,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/hmpg": {
          "id": "sharkfin/catfish/hmpg",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/hmpg",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/hmpg",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.01",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 202368,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/msqt": {
          "id": "sharkfin/catfish/msqt",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/msqt",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/msqt",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.00",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 142848,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/ldrr": {
          "id": "sharkfin/catfish/ldrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/ldrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/ldrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.24",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 67346880,
          "available": 9585343921216,
          "used_gb": 0.06
        },
        "sharkfin/catfish/flrslvrr": {
          "id": "sharkfin/catfish/flrslvrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/flrslvrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/flrslvrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.00",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 142848,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/clbr-wb": {
          "id": "sharkfin/catfish/clbr-wb",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/clbr-wb",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/clbr-wb",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "3.12",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 190464,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/cd-srvr": {
          "id": "sharkfin/catfish/cd-srvr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/cd-srvr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/cd-srvr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "2.62",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 988032,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/catfish/redrr": {
          "id": "sharkfin/catfish/redrr",
          "type": "FILESYSTEM",
          "name": "sharkfin/catfish/redrr",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/catfish/redrr",
          "comments": "app data",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.80",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 8832768,
          "available": 9585343921216,
          "used_gb": 0.01
        },
        "sharkfin/pufferfish": {
          "id": "sharkfin/pufferfish",
          "type": "FILESYSTEM",
          "name": "sharkfin/pufferfish",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/pufferfish",
          "comments": "qbttrnt",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.00",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 320472238464,
          "available": 9585343921216,
          "used_gb": 298.46
        },
        "sharkfin/ix-applications": {
          "id": "sharkfin/ix-applications",
          "type": "FILESYSTEM",
          "name": "sharkfin/ix-applications",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/ix-applications",
          "comments": "",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.28",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 62346194112,
          "available": 9585343921216,
          "used_gb": 58.06
        },
        "sharkfin/hammerhead": {
          "id": "sharkfin/hammerhead",
          "type": "FILESYSTEM",
          "name": "sharkfin/hammerhead",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/hammerhead",
          "comments": "shr",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.04",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 145163232768,
          "available": 9585343921216,
          "used_gb": 135.19
        },
        "sharkfin/swordfish": {
          "id": "sharkfin/swordfish",
          "type": "FILESYSTEM",
          "name": "sharkfin/swordfish",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/swordfish",
          "comments": "",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.00",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 142848,
          "available": 9585343921216,
          "used_gb": 0.0
        },
        "sharkfin/marlin": {
          "id": "sharkfin/marlin",
          "type": "FILESYSTEM",
          "name": "sharkfin/marlin",
          "pool": "sharkfin",
          "mountpoint": "/mnt/sharkfin/marlin",
          "comments": "plx",
          "deduplication": false,
          "atime": false,
          "casesensitivity": "sensitive",
          "checksum": 1,
          "exec": true,
          "sync": "standard",
          "compression": "lz4",
          "compressratio": "1.00",
          "quota": null,
          "copies": 1,
          "readonly": false,
          "recordsize": 131072,
          "encryption_algorithm": "off",
          "used": 1367417384448,
          "available": 9585343921216,
          "used_gb": 1273.51
        }
      },
      "system_info": {
        "version": "TrueNAS-SCALE-22.12.3.3",
        "hostname": "truenas",
        "uptime_seconds": 105384.02,
        "system_serial": "**REDACTED**",
        "system_product": "H610M-HDV",
        "system_manufacturer": "To Be Filled By O.E.M.",
        "uptimeEpoch": "2023-09-17T13:58:37+02:00",
        "cpu_temperature": 38.7,
        "load_shortterm": 1.01,
        "load_midterm": 1.19,
        "load_longterm": 1.12,
        "cpu_interrupt": 0.0,
        "cpu_system": 7.61,
        "cpu_user": 17.55,
        "cpu_nice": 0.0,
        "cpu_idle": 74.84,
        "cpu_usage": 25.16,
        "cache_size-arc_value": 6.24,
        "cache_size-L2_value": 0.0,
        "cache_ratio-arc_value": 99.97,
        "cache_ratio-L2_value": 0.0,
        "memory-used_value": 12.69,
        "memory-free_value": 0.75,
        "memory-cached_value": 0.56,
        "memory-buffered_value": 0.0,
        "memory-total_value": 19.68,
        "memory-usage_percent": 96.0,
        "update_available": false,
        "update_progress": 0,
        "update_jobid": 0,
        "update_state": "unknown",
        "update_status": "UNAVAILABLE",
        "update_version": "TrueNAS-SCALE-22.12.3.3"
      },
      "service": {
        "4": {
          "id": 4,
          "service": "cifs",
          "enable": true,
          "state": "RUNNING",
          "running": true
        },
        "5": {
          "id": 5,
          "service": "dynamicdns",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "6": {
          "id": 6,
          "service": "ftp",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "7": {
          "id": 7,
          "service": "iscsitarget",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "9": {
          "id": 9,
          "service": "nfs",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "10": {
          "id": 10,
          "service": "snmp",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "11": {
          "id": 11,
          "service": "ssh",
          "enable": true,
          "state": "RUNNING",
          "running": true
        },
        "12": {
          "id": 12,
          "service": "tftp",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "14": {
          "id": 14,
          "service": "ups",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "16": {
          "id": 16,
          "service": "rsync",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "18": {
          "id": 18,
          "service": "smartd",
          "enable": true,
          "state": "RUNNING",
          "running": true
        },
        "22": {
          "id": 22,
          "service": "webdav",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "23": {
          "id": 23,
          "service": "s3",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "24": {
          "id": 24,
          "service": "openvpn_client",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "25": {
          "id": 25,
          "service": "openvpn_server",
          "enable": false,
          "state": "STOPPED",
          "running": false
        },
        "26": {
          "id": 26,
          "service": "glusterd",
          "enable": false,
          "state": "STOPPED",
          "running": false
        }
      },
      "jail": {},
      "vm": {},
      "cloudsync": {},
      "replication": {},
      "snapshottask": {},
      "app": {
        "plx": {
          "id": "plx",
          "name": "plx",
          "human_version": "1.32.6.7468_1.7.55",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "ntdta": {
          "id": "ntdta",
          "name": "ntdta",
          "human_version": "v1.41.0_1.0.28",
          "update_available": 1,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "STOPPED",
          "running": false
        },
        "qbittorrent": {
          "id": "qbittorrent",
          "name": "qbittorrent",
          "human_version": "4.5.5_16.0.1",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:10095/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "clbra": {
          "id": "clbra",
          "name": "clbra",
          "human_version": "21.11.4.1.1_1.2.14",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "nxtcld": {
          "id": "nxtcld",
          "name": "nxtcld",
          "human_version": "27.0.2_1.6.46",
          "update_available": 1,
          "container_images_update_available": 1,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "dckdns": {
          "id": "dckdns",
          "name": "dckdns",
          "human_version": "latest_6.0.4",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "snrr": {
          "id": "snrr",
          "name": "snrr",
          "human_version": "3.0.10.1567_1.0.16",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "rdrr": {
          "id": "rdrr",
          "name": "rdrr",
          "human_version": "4.7.5.7809_1.0.21",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "cd-srvr": {
          "id": "cd-srvr",
          "name": "cd-srvr",
          "human_version": "4.16.1_8.0.1",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:10063/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "pihl": {
          "id": "pihl",
          "name": "pihl",
          "human_version": "2023.05.2_11.0.0",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:9089/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "hmr": {
          "id": "hmr",
          "name": "hmr",
          "human_version": "23.05.1_6.0.0",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:10178/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "ldrr": {
          "id": "ldrr",
          "name": "ldrr",
          "human_version": "1.4.2.3576_1.0.22",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "prwlrr": {
          "id": "prwlrr",
          "name": "prwlrr",
          "human_version": "1.8.6.3946_1.0.11",
          "update_available": 1,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "clbr-wb": {
          "id": "clbr-wb",
          "name": "clbr-wb",
          "human_version": "0.6.20_15.0.0",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:8083/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "clbr": {
          "id": "clbr",
          "name": "clbr",
          "human_version": "6.26.0_11.0.11",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": [
            "http://192.168.2.59:8084/"
          ],
          "status": "ACTIVE",
          "running": true
        },
        "redrr": {
          "id": "redrr",
          "name": "redrr",
          "human_version": "0.3.4.2207_1.0.11",
          "update_available": 1,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "hm-asstnt": {
          "id": "hm-asstnt",
          "name": "hm-asstnt",
          "human_version": "2023.9.2_1.0.109",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "flrslvrr": {
          "id": "flrslvrr",
          "name": "flrslvrr",
          "human_version": "3.3.6_10.0.5",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "ACTIVE",
          "running": true
        },
        "msqt": {
          "id": "msqt",
          "name": "msqt",
          "human_version": "2.0.17_11.0.1",
          "update_available": 0,
          "container_images_update_available": 0,
          "portal": "unknown",
          "status": "STOPPED",
          "running": false
        }
      }
    }
  }
}
tomaae commented 1 year ago

Yea, all seems fine there. Having sensor names correct in one view but not other is a weird one, as only one name can be specified. It may be related to DeviceInfo change done in HA, I will have to investigate this more.

Btw, this is same as #91 which went stale.

3473f commented 1 year ago

I tried removing the integration and installing it again, but it didn't seem to help. What I find interesting is that HA recommends the correct name for the entities when editing them. For examle, "glusterd" is being recommended for binary_sensor.truenas_services_16 here.

grafik

I am going to spin up a new docker container with HA and TrueNAS integration to test this behavior on a fresh install.

tomaae commented 1 year ago

yea, I'm seeing such strange bahaviour in recent HA versions in more integrations now. not sure if I can do anything about it, but we can always try. I have already reached out to HA devs, we will see.

3473f commented 1 year ago

I am seeing the exact same behavior in a fresh install of HA with only HACS and TrueNAS installed. I think I have to be thankful that HA suggests the correct names, otherwise it would have been a lot of work trying to figure out what they are.

tomaae commented 1 year ago

Those are names set by integration actually, not suggested by HA. I'm still waiting for clarification from HA devs, we will see what they did

tomaae commented 1 year ago

fixed in v1.2.5

3473f commented 1 year ago

Thanks for the fast reaction! working fine now