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

Post Reply
Ries
Posts: 32
Joined: Tuesday 01 December 2015 9:47
Target OS: Raspberry Pi
Domoticz version: 3.9639
Location: Netherlands
Contact:

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

Post by Ries » Tuesday 12 June 2018 17:20

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
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat

SweetPants
Posts: 2087
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

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

Post by SweetPants » Tuesday 12 June 2018 22:11

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.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

Ries
Posts: 32
Joined: Tuesday 01 December 2015 9:47
Target OS: Raspberry Pi
Domoticz version: 3.9639
Location: Netherlands
Contact:

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

Post by Ries » Wednesday 13 June 2018 19:22

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.
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests