change IDx is that possible ?

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
Stef
Posts: 5
Joined: Thursday 02 August 2018 16:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

change IDx is that possible ?

Post by Stef »

hello

I'm connecting / removing my own devices and use the description here https://www.domoticz.com/wiki/MQTT

It works, but everytime I remove a device and reconnect again, I get another IDX and I have to reprogram my own device.

Isn't possible to change the IDx in Domotics, so that you can smoothly add and remove devices ?

thanks,
Stef
SweetPants

Re: change IDx is that possible ?

Post by SweetPants »

Stef wrote: Sunday 19 August 2018 17:52 Isn't possible to change the IDx in Domotics, so that you can smoothly add and remove devices ?
No, the IDx cannot be changed because there are too many tables in the database referencing this IDx. For some devices you can move (replace) the old data to the new device.
User avatar
Varazir
Posts: 380
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: change IDx is that possible ?

Post by Varazir »

It's sad if you have many blocky you have to change all of them.
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: change IDx is that possible ?

Post by poudenes »

Varazir wrote:It's sad if you have many blocky you have to change all of them.
Had same in past. But learned the dzvents system and now have a global_data file with all my idx in it and a nice name. Build all scripts on the nice name. When a idx change I only chance it in the global_data file :) problem solved


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Jimmy06
Posts: 10
Joined: Tuesday 30 January 2018 22:07
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: France
Contact:

Re: change IDx is that possible ?

Post by Jimmy06 »

poudenes wrote: Monday 20 August 2018 10:27
Varazir wrote:It's sad if you have many blocky you have to change all of them.
Had same in past. But learned the dzvents system and now have a global_data file with all my idx in it and a nice name. Build all scripts on the nice name. When a idx change I only chance it in the global_data file :) problem solved


Verzonden vanaf mijn iPhone met Tapatalk Pro
Hi Poudenes,

I had a problem with the DB. I removed then reinstall some of my devices, and I got new idx and I had to modify some scripts.
I searched the solution you did to prevent the same situation in the future, but I can't find!...

Would it be possible to help me to make that magic file?!...

Thank you,

Jimmy
Synology 1010+ & DS216+ & DS720+ / PI 3 & Domoticz 2021.1 / RFPlayer / ZStick gen5 / Tasmota / Espeasy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest