Add object information into telegram Message

Hello
i have a object like this:

/iot12/433MHz : msg.payload : Object
object
time: "2021-01-13 21:31:28"
brand: "OS"
model: "Oregon-THGR122N"
id: 246
channel: 1
battery_ok: 1
temperature_C: 17.2
humidity: 45

i do some node magic and if the temperatur drops below 16 i got a Telegram Message which is written in a function node. How to add to the content some information from the object below itself?
have a nice day
vinc

[{"id":"59e43b6b.a4a3d4","type":"mqtt in","z":"95ec0171.e3383","name":"","topic":"/iot12/433MHz","qos":"0","datatype":"json","broker":"fdd3c090.0e24","x":270,"y":1460,"wires":[["90428603.71b088"]]},{"id":"90428603.71b088","type":"switch","z":"95ec0171.e3383","name":"switch by ID 246","property":"payload.id","propertyType":"msg","rules":[{"t":"eq","v":"246","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":460,"y":1460,"wires":[["be871eb6.576b"]]},{"id":"75cf1379.5dc6ac","type":"debug","z":"95ec0171.e3383","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":860,"y":1380,"wires":[]},{"id":"be871eb6.576b","type":"switch","z":"95ec0171.e3383","name":"switch unter 16 Grad","property":"payload.temperature_C","propertyType":"msg","rules":[{"t":"lt","v":"16.1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":660,"y":1460,"wires":[["ed010b95.978bc8","75cf1379.5dc6ac"]]},{"id":"50fb2938.1587b8","type":"telegram sender","z":"95ec0171.e3383","name":"kozo home","bot":"","haserroroutput":false,"outputs":1,"x":1190,"y":1460,"wires":[[]]},{"id":"77387733.1136b8","type":"trigger","z":"95ec0171.e3383","name":"","op1":"","op2":"0","op1type":"pay","op2type":"str","duration":"20","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1000,"y":1460,"wires":[["50fb2938.1587b8"]]},{"id":"ed010b95.978bc8","type":"function","z":"95ec0171.e3383","name":"","func":"let payload = {\n\"chatId\":xxxxx,\n\"type\":\"message\",\n\"content\": \"Zimmer Fenster ist offen, unter 16 Grad!\"\n\n};\nreturn {payload};","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":1460,"wires":[["77387733.1136b8"]]},{"id":"374c133.986c9ec","type":"inject","z":"95ec0171.e3383","name":"Reset Trigger","props":[{"p":"reset","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"45 05 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":820,"y":1500,"wires":[["77387733.1136b8"]]},{"id":"fdd3c090.0e24","type":"mqtt-broker","name":"localHost - iot1","broker":"10.18.42.175","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.