Unfortunately did not work either. Still an error symbol.
But payload is already an object.
Incoming message is
{"topic":"raw_data/tasmota_D2EE70/SENSOR","payload":{"Time":"2023-09-07T22:51:07","ATC0d5c0c":{"mac":"a4c1380d5c0c","Temperature":21.5,"Humidity":63.2,"DewPoint":14.2,"Btn":0,"Battery":40,"RSSI":-71},"ATC4e211d":{"mac":"a4c1384e211d","Temperature":33.2,"Humidity":33.6,"DewPoint":15,"Btn":1,"Battery":82,"RSSI":-67},"TempUnit":"C"},"qos":0,"retain":false,"_msgid":"33ec289d8866a035"}
and the outgoing is (when I remove the broken line of code):
{"topic":"tele/xiaomi/ATC4e211d","payload":{"mac":"a4c1384e211d","Temperature":33.2,"Humidity":33.6,"DewPoint":15,"Btn":1,"Battery":82,"RSSI":-67},"_msgid":"33ec289d8866a035"}
So the incoming message has an object payload and the outgoing still does.
All the node does is separate the incoming one into the individual devices. The payload remains an object.
That's what is confusing me.
So all I want to do is add another property to that existing payload object under the respective ATC*.
So instead of this:
{"topic":"tele/xiaomi/ATC4e211d","payload":{"mac":"a4c1384e211d","Temperature":33.2,"Humidity":33.6,"DewPoint":15,"Btn":1,"Battery":82,"RSSI":-67},"_msgid":"33ec289d8866a035"}
I want to output this:
{"topic":"tele/xiaomi/ATC4e211d","payload":{"mac":"a4c1384e211d","Temperature":33.2,"Humidity":33.6,"DewPoint":15,"Btn":1,"Battery":82,"RSSI":-67},"_msgid":"33ec289d8866a035","Time":"2023-09-07T22:51:07"}