homebridge-mqttthing icon indicating copy to clipboard operation
homebridge-mqttthing copied to clipboard

Template config?

Open Appelg opened this issue 4 years ago • 2 comments

Is there a way to do a "template" config, and then only send in a parameter for "name" and a part of the "topic" in order to don't have to repeat the full config when one has 10+ of the same device?

Appelg avatar Sep 04 '20 09:09 Appelg

Not currently possible.

arachnetech avatar Nov 22 '20 00:11 arachnetech

So to expand how I think this would work in my mind (as the homebridge config is becoming a bit unmanageable) -

  • ZBName must be set - perhaps the filter on attribute
  • Type must be common
  • Subscribe to tele/tasmota_XXXXXX/ZBDevice/SENSOR for ZBReceived - Name would be extracted from Name
  • tele/tasmota_XXXXXX/ZBDevice/SENSOR$.ZBReceived.+.Humidity Would load up a bunch of humidity sensors with name ZbReceived.+.Name and value from Humidity
  • Maybe allow a list of ZBDevice to ignore in the case of manual overrides..

NickJLange avatar Jun 22 '22 06:06 NickJLange