Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
rezzalex
Posts: 49
Joined: Thursday 24 September 2020 14:30
Target OS: NAS (Synology & others)
Domoticz version: Beta
Contact:

Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by rezzalex »

Hello,

I have successfully migrated from Openzwave to Zwavejs2mqtt.
I have 1st discovered all my nodes without any fancy names and location.
Now that I have entered this info in Zwavejs2mqtt Control Panel, I would like my devices to Automatically (if possible) change their ID with names and location.

I tried to play a bit with the "retain " parameter", both in section *MQTT" and "Home Assistant" of Zwavejs2mqtt settings, without success

thanks a lot.

regards
User avatar
Ragdag
Posts: 169
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by Ragdag »

Would like to have this as well, current;y the only way for me to achieve this is by deleting the Domoticz ZwaveJS2MQTT devices and let them auto import again.
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by gizmocuz »

How about you name the nodes with a correct name and location ? But maybe I don't understand it 100%...
Quality outlives Quantity!
rezzalex
Posts: 49
Joined: Thursday 24 September 2020 14:30
Target OS: NAS (Synology & others)
Domoticz version: Beta
Contact:

Re: Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by rezzalex »

Hello.

You are right, it seems names and location, when set in Zwaje2MQTT, are automatically replacing the precious discovered device names in DZ.

In DZ, I had to do some devices clean-up some days after, for removing the remaining wrong named devices.
Also, when performing this, there is probably some clean-up to do in MQTT retained topics, with MQTT explorer.
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by roblom »

If you rename a device in Zwave2MQTT after it is discovered in Domoticz, will it create a new device or does it rename the exciting one also in Domoticz after a rediscovery?
User avatar
Ragdag
Posts: 169
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Force Zwavejs2mqtt devices to change ID in domoticz, so that it can include name and location

Post by Ragdag »

I've added a Feature Request for this here: https://github.com/domoticz/domoticz/issues/5342
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest