cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 39 forks source link

[Feature Request] add name to Topic to reduce the IoT processing power usage #43

Closed yuyi closed 7 years ago

yuyi commented 7 years ago

Hi cflurin, Thank you for making this excellent plugin!

If we add the device name to the topic, we can reduce IoT CPU power usage and network usage. (the IoT can just subscription topic about itself)

Sorry for my English. Thank you very much😃

yuyi

Example

add accessory

topic: homebridge/to/add/flex_lamp
payload: {"name": "flex_lamp", "service_name": "light", "service": "Switch"}

response

topic: homebridge/from/response/flex_lamp
payload: {"ack": true, "message": "accessory 'flex_lamp' service_name 'light' is added."}
yuyi commented 7 years ago

I found out this is just "topic_type" do.