Looking at the list of key/values I'm now able to extract from msg.payload via zigbee2tasmota and MQTT, I thought it might be useful to share them in jsonata format (for extraction) and for others to share theirs as well. The following are from a bunch of sensors: BlitzWolf temp/humidity & water, IKEA tradfri motion, Wiser thermostats and the IKEA tradfri remote control.
{ "linkQuality": **.LinkQuality,
"waterLeak": **.Water,
"power": **.Power,
"dimmerUp": **.DimmerUp,
"dimmerDown": **.DimmerDown,
"dimmerMove": **.DimmerMove,
"dimmerStepDown": **.DimmerStepDown,
"dimmerStop": **.DimmerStop,
"arrowClick": **.ArrowClick,
"arrowHold": **.ArrowHold,
"arrowRelease": **.ArrowRelease,
"temperature": **.Temperature,
"humidity": **.Humidity,
"temperatureRoom": $each($.ZbReceived.*, function($v){$contains($string($v), /^ENV/) ? $number($split($v,",")[2])/100}),
"humidityRoom": $each($.ZbReceived.*, function($v){$contains($string($v), /^ENV/) ? $number($split($v,",")[3])/100})
}
The clever parts of the jsonata came from this thread Jsonata test works but doesn’t in the flow helped by @UnborN and @E1cid .