Many devices, technologies and systems can be automatically discovered on the network or browsed through some API. It therefore makes a lot of sense to use these features for a smart home solution.
In Eclipse SmartHome bindings therefore implement Discovery Services for things, which provide Discovery Results. All Discovery Results are regarded as suggestions to the user and are put into the inbox.
A couple of discovery services support automatic discovery in the background, while for others a scan needs to be triggered manually.
Services that support background discovery usually have it enabled by default.
It is possible to override this setting and deactivate background discovery for individual services by setting
serviceid is usually identical to a binding id, e.g. the LIFX background discovery can be disabled through
The inbox holds a list of all discovered things (
DiscoveryResult) from all active discovery services. A discovery result represents a discovered thing of a specific thing type, that could be instantiated as a thing. The result usually contains properties that identify the discovered things further like IP address or a serial number. Each discovery result also has a timestamp when it was added to or updated in the inbox and it may also contain a time to live, indicating the time after which it is be automatically removed from the inbox.
Discovery results can either be ignored or approved, where in the latter case a thing is created for them and they become available in the application. If an entry is ignored, it will be hidden in the inbox without creating a thing for it.
Eclipse SmartHome offers a service to automatically ignore discovery results in the inbox, whenever a thing is created manually, that represents the same thing, as the respective discovery result would create.
This thing would either have the same thing UID or the value of its representation property is equal to the representation property's value in the discovery result. This service is enabled by default but can be disabled by setting
If the manual acceptence of discovery results by the user is not wished, it is possible to turn on the auto-approval feature of the inbox. In this case, every new entry gets automatically approved immediately (unless it has been marked as ignored as a duplicate).
The auto approval can be enabled by the setting
org.eclipse.smarthome.inbox:autoApprove=true; the default is false.