I have an ESP-8266EX with Tasmota and I am reading the values via MQTT. I get the following topic:
I get the correct value of PM10.
But reading PM2.5 does not work with
because of the “.”
How to do it correctly? Thanks a lot!
JSONPATH should accept both
[ ] forms. So in this case:
Executing the JSONPATH-transformation failed: An error occurred while transforming JSON expression.
[ ] is for arrays and I don’t think that’s what we have here. Shouldn’t it be something like the following?
@liveislife Note the escaped
. has meaning to JSONPATH and without escaping it I would expect it to fail.
As I understand it, the implementation of JOSNPATH used should accept the bracket notation in general instances too:
However, you may have to put the key in quotes inside the bracket, so perhaps:
But, escaping the period should also work.
Configuration model 'mqtt.things' has errors, therefore ignoring it: [6,124]: mismatched character '.' expecting set null [6,149]: mismatched character '<EOF>' expecting '"'
Thank you for your efforts!