JSONPATH Transform Chocking

Hi all, having an issue with one of my transforms. I have other transforms that are working just fine and I just followed along with what I did with them but no joy. I’m on 2.5.11

This is for a CO2 sensor…

tele/DVES_009006/SENSOR = {"Time":"2021-01-18T18:35:34","MHZ19B":{"CarbonDioxide":537,"Temperature":71.6},"TempUnit":"F"}

MQTT State Topic In Channel Setup

tele/DVES_009006/SENSOR

Incoming Value Transform

JSONPATH:$:MHZ19B:CarbonDioxide

That all aligns with other Sensor values that work just fine. But I get this error…

Executing the JSONPATH-transformation failed: An error occurred while transforming JSON expression.

Thanks!

You have colons instead of periods in your transformation expression.

Incoming Value Transformation should be:

JSONPATH:$.MHZ19B.CarbonDioxide

Typo there too! Should be:

JSONPATH:$.MHZ19B.CarbonDioxide
1 Like

That wasn’t the only typo I made :crazy_face: thanks for catching it

Ouch, that was a miss. Thanks so much for getting back so quick. All better now!