SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

First letters of sensor and control names are truncated on Device Info Page

Open mduman opened this issue 6 months ago • 1 comments

Hello,

I have a problem of Sensor & Control Names on Device Info pages. (Integrations =>Sonoff=>Devices=>{Device Name (Details)}

First letter of sensor & control names are truncated

This is a sample for a thermometer (SNZB-02D) Image

This is its diagnostics

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.5.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.3",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Istanbul",
    "os_name": "Linux",
    "os_version": "6.12.23-haos",
    "supervisor": "2025.05.3",
    "host_os": "Home Assistant OS 15.2",
    "docker_version": "28.0.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "codeowners": [
      "AlexxIT"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.8.2",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.000633529998594895
    },
    "01JGZS3VH42C32TB8DZFP3D4AV": {
      "wait_import_platforms": -0.00038297599894576706,
      "wait_base_component": -0.009521035000943812,
      "config_entry_setup": 5.146535456999118
    }
  },
  "data": {
    "version": "c4b6fda",
    "cloud_auth": true,
    "config": null,
    "options": {
      "debug": false,
      "homes": 1,
      "mode": "auto"
    },
    "errors": [],
    "device": {
      "uiid": 7014,
      "params": {
        "bindInfos": "***",
        "subDevId": "d90e11feff6748d47014",
        "parentid": "100236eea9",
        "staMac": "***",
        "tempUnit": 0,
        "tempCorrection": "0",
        "tempComfortLower": "1900",
        "tempComfortUpper": "2700",
        "humiComfortLower": "4000",
        "humiComfortUpper": "6000",
        "humCorrection": "0",
        "fwVersion": "2.3.0",
        "otaInfo": {
          "state": 0,
          "reason": 0,
          "stateTime": 1747482731585,
          "upgradeVersion": "2.3.0"
        },
        "timeZone": 3,
        "battery": 100,
        "temperature": "2380",
        "trigTime": "1748740774116",
        "tempComfortStatus": 0,
        "humidity": "5100",
        "humiComfortStatus": 0,
        "subDevRssi": -69
      },
      "model": "SNZB-02D",
      "online": true,
      "local": null,
      "localtype": null,
      "host": null,
      "deviceid": "a4b001bb57"
    }
  }
}

This is a sample for a TRV (TRVZB)

Image

This is its diagnostics

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.5.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.3",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Istanbul",
    "os_name": "Linux",
    "os_version": "6.12.23-haos",
    "supervisor": "2025.05.3",
    "host_os": "Home Assistant OS 15.2",
    "docker_version": "28.0.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "codeowners": [
      "AlexxIT"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.8.2",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.000633529998594895
    },
    "01JGZS3VH42C32TB8DZFP3D4AV": {
      "wait_import_platforms": -0.00038297599894576706,
      "wait_base_component": -0.009521035000943812,
      "config_entry_setup": 5.146535456999118
    }
  },
  "data": {
    "version": "c4b6fda",
    "cloud_auth": true,
    "config": null,
    "options": {
      "debug": false,
      "homes": 1,
      "mode": "auto"
    },
    "errors": [],
    "device": {
      "uiid": 7017,
      "params": {
        "bindInfos": "***",
        "subDevId": "6e9be3fefff6ef0c7017",
        "parentid": "100236eea9",
        "fwVersion": "1.3.0",
        "otaInfo": {
          "state": 0,
          "upgradeVersion": "1.3.0",
          "stateTime": 1748735163899,
          "reason": 0
        },
        "fri": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "mon": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "sat": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "staMac": "***",
        "sun": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "thur": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "tues": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "wed": "000000e601a400f0052800e6052800e6052800e6052800e6",
        "tempCorrection": -22,
        "childLock": false,
        "windowSwitch": false,
        "ecoTargetTemp": 70,
        "temperature": "240",
        "trigTime": 1748739934262,
        "manTargetTemp": 70,
        "workMode": "1",
        "workState": "0",
        "curTargetTemp": 70,
        "temControl": true,
        "openPercent": 100,
        "temperatureReportPrecision": -100,
        "closePercent": 100,
        "subDevRssi": -52,
        "battery": 96,
        "temSouce": 1
      },
      "model": "TRVZB",
      "online": true,
      "local": null,
      "localtype": null,
      "host": null,
      "deviceid": "a4b001bb82"
    }
  }
}

mduman avatar Jun 01 '25 01:06 mduman

Is the problem still relevant on the latest version HA? I have no idea where this error is coming from.

AlexxIT avatar Aug 14 '25 12:08 AlexxIT