Extract data from payload (sonoff ihost)

Hello, I am using node red on a Sonoff ihost box and I want to isolate the temperature and humidity value from a payload. I'm trying to use the "change" node to extract an object but I have the impression that my payloas has no object (see photo


). Can you help me ? Thanks
(i'm french)

Looks like payload is a JSON string, pass it through a JSON node to create a JS object, then the change node may work.

But it looks like there is no temperature property in the JSON string anyway.

If the node on the extreme left of your flow is a standard MQTT-In node, then you could set the 'Output' option to 'auto-detect' to output a parsed JSON object (so no need for an additional JSON node).
auto_detect

Thank you !

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