Skip to content

mDNS discovery result overwrites existing thing configuration/property #3753

@seime

Description

@seime

Tested on OH 4.0.1

Prequisites: A pre-configured thing (using GUI, not files afaik) with a property X set to a particular value.

Initiate a new discovery (or wait for background discovery to run).

A DiscoveryResult is created using the same thing UID, but with a different value for the property X (also used as the representation property).

Expected result: Existing thing is untouched, and a possibly new entry is added to the inbox.
Actual Result: The existing, pre-configured thing is having its property X overwritten with the discovery result value.

Possible workarounds:

  • Use thing files which openhab cannot overwrite.
  • Use a randomized thing uid to prevent openhab correlating existing thing and newly discovered thing.

While this issue has been detected in relation to mDNS, it might be affecting any kind of discovery.

This issue has been reported in the forum earlier for an unrelated binding: https://community.openhab.org/t/is-here-anyone-using-volumio/16678/116

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions