Page 1 of 1

Device name in domoticz

Posted: Monday 12 February 2024 13:20
by pierrotori
Hi
next to remove the device in zwave-js-ui and when i include the device, the device name in domoticz is not the same.
next
flood (flood_cave_temperature_air_2)
instead of
flood_cave_temperature_air_2

Have you encountered this problem with the name of the device ?

Re: Device name in domoticz

Posted: Monday 12 February 2024 13:22
by waltervl
what version of Domoticz? As there were some changes in devicenaming rules for MQTT Autodiscover.

Re: Device name in domoticz

Posted: Monday 12 February 2024 13:30
by pierrotori
my version Version: 2024.4 (build 15888)
in Home Assistant from zwave-js-ui i have been %n_%loc_%o

Re: Device name in domoticz

Posted: Monday 12 February 2024 13:58
by waltervl
Yes, this is as designed according the discussion in https://github.com/domoticz/domoticz/co ... 046303a274

But it seems a result of different naming rules in Zwave-JS-UI and Zigbee2MQTT

Re: Device name in domoticz

Posted: Monday 12 February 2024 14:11
by pierrotori
thanks for the topic i saw
if (subname.find("0x") != 0)
{
pDevice->name = dev_name + " (" + subname + ")"; }
else
pDevice->name = dev_name;
}
in fact the 0x is in the condition, i search to remove the Home Hex

Re: Device name in domoticz

Posted: Monday 12 February 2024 14:17
by waltervl
I am no developer only want you to show where the difference came from. There also seems to be a difference in behavior for Zigbee2MQTT and Zwave-JS-UI. So

Re: Device name in domoticz

Posted: Monday 12 February 2024 14:22
by pierrotori
i understand your explication, in the MQTT , i have this

Code: Select all

{
  "value_template": "{{ value_json.value }}",
  "command_topic": "zwave/16/112/0/2/set",
  "device": {
    "identifiers": [
      "zwavejs2mqtt_0xd3fe56b6_node16"
    ],
    "manufacturer": "Fibargroup",
    "model": "Flood Sensor (FGFS101)",
    "name": "inondation",
    "sw_version": "25.25"
  },
 "name": "inondation_cave_config_number_2",
 "unique_id": "zwavejs2mqtt_0xd3fe56b6_16-112-0-2"
}

Re: Device name in domoticz

Posted: Monday 12 February 2024 16:46
by pierrotori
i put %loc_%o and now i have flood (cave_temperature_air_2)