MiHome error when I install the second device

Xiaomi Home
With one Temperature sensor, works very well.
After installing the second, the following error prevents to work:
openhab> Exception in thread “Thread-46” java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.replaceNode(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.remove(Unknown Source)
at org.openhab.binding.mihome.handler.XiaomiBridgeHandler.defer(XiaomiBridgeHandler.java:158)
at org.openhab.binding.mihome.handler.XiaomiBridgeHandler.onDataReceived(XiaomiBridgeHandler.java:147)
at org.openhab.binding.mihome.internal.socket.XiaomiSocket$ReceiverThread.notifyAll(XiaomiSocket.java:234)
at org.openhab.binding.mihome.internal.socket.XiaomiSocket$ReceiverThread.receiveData(XiaomiSocket.java:210)
at org.openhab.binding.mihome.internal.socket.XiaomiSocket$ReceiverThread.run(XiaomiSocket.java:189)

Did anybody see this already?
Could you give some solution?

Thank You,
Sándor.

Post your configuration please.
Use code fences for logs and code please.

Which files should I post exactly?

If this was the only change let’s start with the MiHome items und things.

This is the org.eclipse.smarthome.core.thing.Thing.json file after that the thins were recognised.

{
  "mihome:bridge:1e62fef0": {
    "class": "org.eclipse.smarthome.core.thing.internal.BridgeImpl",
    "value": {
      "label": "Xiaomi Mi Smart Home Bridge",
      "channels": [],
      "configuration": {
        "properties": {
          "ipAddress": "192.168.0.234",
          "port": 9898,
          "key": "xvh3jkae3jz5hncj"
        }
      },
      "properties": {
        "vendor": "Xiaomi"
      },
      "uid": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "bridge"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d000223b85e": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b85e",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b85e",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b85e",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b85e",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d000223b85e"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d000223b85e"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      },
      "location": "VargaHome"
    }
  },
  "mihome:sensor_ht:158d000223b93c": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b93c",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b93c",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b93c",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000223b93c",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d000223b93c"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d000223b93c"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d00020ea5b4": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d00020ea5b4",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d00020ea5b4",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d00020ea5b4",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d00020ea5b4",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d00020ea5b4"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d00020ea5b4"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d0001f58f3b": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0001f58f3b",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0001f58f3b",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0001f58f3b",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0001f58f3b",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d0001f58f3b"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d0001f58f3b"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d000201c820": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000201c820",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000201c820",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000201c820",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000201c820",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d000201c820"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d000201c820"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d000208d8e8": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000208d8e8",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000208d8e8",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000208d8e8",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d000208d8e8",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d000208d8e8"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d000208d8e8"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  },
  "mihome:sensor_motion:158d000222766d": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Motion Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_motion",
              "158d000222766d",
              "motion"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "motion"
            ]
          },
          "label": "Motion Status",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_motion",
              "158d000222766d",
              "motionOffTimer"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "motionOffTimer"
            ]
          },
          "label": "Motion Off Timer",
          "description": "Time in seconds, after which the Motion Switch is set to \"OFF\" (Default 120 sec, Min 5 sec)",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "DateTime",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_motion",
              "158d000222766d",
              "lastMotion"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "lastMotion"
            ]
          },
          "label": "Last Activity (Date/Time)",
          "description": "Date/time when last motion was detected",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_motion",
              "158d000222766d",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_motion",
              "158d000222766d",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d000222766d"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_motion",
          "158d000222766d"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_motion"
        ]
      }
    }
  },
  "mihome:sensor_ht:158d0002228a1c": {
    "class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
    "value": {
      "label": "Xiaomi Mi Temperature \u0026 Humidity Sensor",
      "bridgeUID": {
        "segments": [
          "mihome",
          "bridge",
          "1e62fef0"
        ]
      },
      "channels": [
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0002228a1c",
              "temperature"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "temperature"
            ]
          },
          "label": "Temperature",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0002228a1c",
              "humidity"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "mihome",
              "humidity"
            ]
          },
          "label": "Humidity",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0002228a1c",
              "batteryLevel"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ]
          },
          "label": "Battery Level",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "mihome",
              "sensor_ht",
              "158d0002228a1c",
              "lowBattery"
            ]
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ]
          },
          "label": "Low Battery",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "itemId": "158d0002228a1c"
        }
      },
      "properties": {},
      "uid": {
        "segments": [
          "mihome",
          "sensor_ht",
          "158d0002228a1c"
        ]
      },
      "thingTypeUID": {
        "segments": [
          "mihome",
          "sensor_ht"
        ]
      }
    }
  }
}

I did not find any .thing and .items files.
The things are shown as connected and well in the Configuration/Things page, but nothing shows on the Control page as was with one sensor.