Hi everybody,
I'm new to Node-RED and having some difficulty reformatting JSON outputted from the new series of Shelly Plus devices via MQTT.
I am receiving messages from Shelly OK but Node-RED appears to be getting incorrectly formatted JSON.
I've copied the raw JSON below as it appears in the debug window (which appears fine to me?), but when I try to isolate the "apower" value using a set.apower, I get undefined back. The screenshot from the debug window suggests to me that NR isn't recognising the JSON format properly but I'd be grateful advice while I learn these NR basics.
{"id":0, "source":"HTTP", "output":false, "apower":0.0, "voltage":229.1, "current":0.000, "aenergy":{"total":8338.817,"by_minute":[0.000,0.000,0.000],"minute_ts":1652445599},"temperature":{"tC":47.9, "tF":118.2}}
Many thanks.