Page 1 of 1

domoticz.devices('<NAME>'). sometimes relates to a removed device

Posted: Tuesday 12 June 2018 17:20
by Ries
I had two occasions where there are two devices with the same name, e.g.
DEMO_SWITCH was created and deleted, lets call it device A : it was still seen as an inactive device in the devices overview (the green icon)
then a NEW DEMO_SWITCH was created, lets call it device B

when I called domotica.devices('DEMO_SWITCH') erratic results happen. This was solved after I deleted device A in the devices overview (by means of the trash can).

domoticz 3.9530

Re: domoticz.devices('<NAME>'). sometimes relates to a removed device  [SOLVED]

Posted: Tuesday 12 June 2018 22:11
by SweetPants
This could well be a bug/feature of dzVentz. When using Blockly and a device is set (green) 'unused' (this is different from deleted) you cannot choose it anymore. In dzVentz you can choose any name for a device you like if it exists or not. It's the users responsibility to have unique names for the devices.

Re: domoticz.devices('<NAME>'). sometimes relates to a removed device

Posted: Wednesday 13 June 2018 19:22
by Ries
I expect that if two devices have the same name, and one of them is removed, dzvents chooses the nonremoved one when called by name. Who expects othrwise? That is why i report this as a bug.