Bogus left-over dummy device

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
xurg
Posts: 52
Joined: 17 Aug 2020 22:38

Bogus left-over dummy device

Post by xurg »

I have a device which I think was previously created as a dummy device instance. It is assigned to a room. When I click the little gear icon on the room's dashboard, the devices config pages is shown. But in "Generated by App:" there is only the gear icon, and when I click it I get the "The page you're looking for could not be found." page.

Quite clearly this is a left-over. How to get rid of it?
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Bogus left-over dummy device

Post by PoltoS »

Looks like the field Generate (creatorId) is not filled for this device. Check in the API (/ZAutomation/api/v1/devices/<deviceID> to see the exact data
xurg
Posts: 52
Joined: 17 Aug 2020 22:38

Re: Bogus left-over dummy device

Post by xurg »

I had found it already in this list, but what to do with this information? The entry is indeed lacking the creatorId key, and the id is ZWayVDev_zway_Remote_29-0-0-B.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Bogus left-over dummy device

Post by micky1500 »

Have a look at piet66's tool.
It has options to clean-up rogue data.

https://forum.z-wave.me/viewtopic.php?f ... nfo#p83597
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: Bogus left-over dummy device

Post by piet66 »

No, this problem unfortunately not.

If a restart of z-way-server doesn't help, this could help:
- stop z-way-sever
- take a text editor and open config.json
- remove the waste device (maybe occur more than once)
- start z-way-sever again

!!!! Of course, you should know what you are doing. A backup of the file could be useful. !!!!
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v3.2.3 from 2022-04-06 04:56:23 +0300
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Bogus left-over dummy device

Post by PoltoS »

This should help. We will include it in next release:

Code: Select all

diff --git a/modules/SwitchControlGenerator/index.js b/modules/SwitchControlGenerator/index.js
index 0377d616..e6db6910 100644
--- a/modules/SwitchControlGenerator/index.js
+++ b/modules/SwitchControlGenerator/index.js
@@ -105,7 +105,7 @@ SwitchControlGenerator.prototype.init = function (config) {
                                                } 
                                        },
                                        handler: self.widgetHandler,
-                                       moduleId: this.id
+                                       moduleId: self.id
                                });
                        }
                });
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: Bogus left-over dummy device

Post by piet66 »

Is it really a big problem? What about simply setting the orphaned device invisible?
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v3.2.3 from 2022-04-06 04:56:23 +0300
xurg
Posts: 52
Joined: 17 Aug 2020 22:38

Re: Bogus left-over dummy device

Post by xurg »

Thanks for all the replies - I was on the road so I couldn't keep up here. No it's not a big issue and in fact I had already hidden that device so it only appears in the low-level device table. It's more a house-keeping thing - databases should be clean and only contain relevant data I suppose.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
xurg
Posts: 52
Joined: 17 Aug 2020 22:38

Re: Bogus left-over dummy device

Post by xurg »

Thanks again for hinting to MxInfo, it help me identify a whole bunch of zombie devices in the config db. It seems most of them came from past partial-then-failed inclusions, but also a number of dummy devices and condition switches from old automation setups of mine. Not really sure how they kept lingering there, as a proper deletion should really get rid of them. Anyway, my configuration is now clean again.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster)
RaZberry ZW0500 1024/2 SDK: 6.82.01 API: 05.39
Z-Way version v4.1.0
Post Reply