How do I Remove discovered items that no longer exist?

I have 6 things that keep showing up in my discover/in box. I cannot get rid of them. The things are no longer on my network. I do not have the devices any longer.

Platform information:

  * Hardware:  PI 4
runtimeInfo:
  version: 3.0.1
  buildString: Release Build
locale: en_US
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.10
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.45+27-CA
  osName: Linux
  osVersion: 5.10.17-v7l+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 34539576
  totalMemory: 194969600
bindings:
  - amazonechocontrol
  - irobot
  - network
  - onkyo
  - samsungtv
  - sonos
  - zwave
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1.5
    prefersColorScheme: light
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 24
    language: en-US
    languages:
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 2560
    height: 1440
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: light
    filled: true
    pageTransitionAnimation: default
    bars: filled
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/89.0.4389.114 Safari/537.36
timestamp: 2021-04-05T15:34:33.059Z

Issue of the topic:
I have 6 items that are in my inbox and discover file that I am trying to remove.

I have performed the following steps to try and remove the things:
sudo systemctl stop openhab.service
sudo openhab-cli clear-cache
I have removed the jsondb discovery files.
I have removed the jsondb backup discover files.
sudo systemctl start openhab.service
sudo systemctl daemon-reload

I have also used the openhab-cli to remove them from things:inbox to remove them by thingId.

They keep coming back!

Thing configuration related to the issue
Here is one of the items:

 "zwave:device:d66c3abba6:node19": {
    "class": "org.openhab.core.config.discovery.internal.DiscoveryResultImpl",
    "value": {
      "bridgeUID": {
        "segments": [
          "zwave",
          "serial_zstick",
          "d66c3abba6"
        ],
        "uid": "zwave:serial_zstick:d66c3abba6"
      },
      "thingUID": {
        "segments": [
          "zwave",
          "device",
          "d66c3abba6",
          "node19"
        ],
        "uid": "zwave:device:d66c3abba6:node19"
      },
      "thingTypeUID": {
        "segments": [
          "zwave",
          "zooz_zse40_32_002"
        ],
        "uid": ""
      },
      "properties": {
        "zwave_class_basic": "BASIC_TYPE_ROUTING_SLAVE",
        "zwave_class_generic": "GENERIC_TYPE_SENSOR_NOTIFICATION",
        "zwave_frequent": "false",
        "zwave_version": "32.2",
        "zwave_listening": "false",
        "zwave_deviceid": "8449",
        "zwave_routing": "true",
        "zwave_beaming": "true",
        "zwave_class_specific": "SPECIFIC_TYPE_NOTIFICATION_SENSOR",
        "node_id": 19,
        "zwave_manufacturer": "634",
        "zwave_devicetype": "8225"
      },
      "flag": "NEW",
      "label": "Z-Wave Node 019: ZSE40 v2 4-in-1 Sensor",
      "timestamp": 1617636576214,
      "timeToLive": -1
    }
  },

Thank you for your assistance!

Z-Wave devices that reappear are zombie devices defined in the network on your controller so, from OH perspective, they exist. Too many zombie nodes can cause network performance issues. SyLabs PC Controller software for Windows can usually remove them. Some people have had some success with OpenZWave Control Panel on Linux.

1 Like

Thank you very much for the information. I did not know about the SyLabs software. I was able to remove all the zombied nodes.

Note to anyone trying to remove their zombies. I used the SyLabs software. I made note of the NODES that were zombied and then shutdown my PI and plugged my USB Controller into my PC. Using the SyLabs application I then found the nodes in my controller and “-failed” them so they would be removed from the controller list. Once complete, I plugged my USB back into my PI and started it all up again.

1 Like