cflurin / homebridge-mqtt

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

Ease the access to cached values #93

Closed LaborEtArs closed 4 years ago

LaborEtArs commented 4 years ago

To reduce network traffic the cached value was added to 'homebridge/from/get' messages and a new 'homebridge/to/get/characteristic' message was added. As a result, the user can check now, if a 'homebridge/to/set' message is needed when receiving a 'homebridge/from/get' message.

LaborEtArs commented 4 years ago

Great! Just saw a little flaw in the docs: get (cached) value (to homebridge)

topic: homebridge/to/get/characteristic payload: {"name": "flex_lamp", "service_name": "light", "characteristic": "On"} response:

topic: homebridge/from/response payload: {"name": "flex_lamp", "service_name": "light", "characteristic": "On", "value": true} „value“ should be „cachedValue“. Maybe you can just fix it? I’ve already deleted the pull request…

Greetings!

Am 03.01.2020 um 11:20 schrieb cflurin notifications@github.com:

Merged #93 https://github.com/cflurin/homebridge-mqtt/pull/93 into master.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cflurin/homebridge-mqtt/pull/93?email_source=notifications&email_token=ABJULB4HBRJI4H3XU3LOBYLQ34GOFA5CNFSM4KCCLXMKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVYEVRAI#event-2919848065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJULB2BLOSUROW7AKGB273Q34GOFANCNFSM4KCCLXMA.

cflurin commented 4 years ago

done!