zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Feature request]: Custom Payload Injection

Open jm20122012 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe

I cannot find a way to configure custom payload injection.

Describe the solution you'd like

I would like to be able to inject custom key-value pairs into the message that gets broadcast over MQTT. For example, if a temp sensor only exposes "temperature" and "humidity", I would like to inject the friendly name for the device into this message so that the actual message that gets sent out would like like this:

{ "friendly_name": "myAwesomeSensor", "temperature": 30, "humidity": 35 }

Describe alternatives you've considered

None

Additional context

None

jm20122012 avatar Jun 26 '24 23:06 jm20122012