Skip to content

[Protocol Enhancement] Support for discovery of MQTT based devices in local networkΒ #419

@suresh-lc

Description

@suresh-lc

Is your feature request related to a problem? Please describe.
Currently only REST based devices can be discovered in Home Edge framework. Hence services provided by those devices are only discoverable. Devices supporting other protocols like MQTT are not discoverable in this.

Describe the solution you'd like
Method to discover MQTT based devices by adding support of MQTT (running a broker). This should support

Device discovery
Topic subscription/publish

Additional context
There are various considerations to be made during this process.

  1. Currently Home Edge is Peer-Peer, meaning every device talks to every other device. So in similar regards should MQTT broker be running in all devices to maintain the current topology. So all device publish and subscribe to all other devices.
  2. Should we run broker only in one device and all other device publish to it. Say device A runs the broker and device B ad C are client. Need to see how to exchange the capabilities of B and C with each other.
  3. In case of single broker, broker selection method and fallback mechanism to be thought of.
  4. Home Edge maintains the devices discovered by REST separately. And MQTT would be maintaining it separately. We need to either unify or refer both the dbs.
  5. How do we expose services offered by MQTT devices , might be custom topics.
  6. Identify MQTT library for adopting, probably 'mosquitto'.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions