sieren / Homepoint

Espressif ESP32 Based Smarthome screen for MQTT
MIT License
630 stars 89 forks source link

nested JSON #178

Open g0lgs opened 3 years ago

g0lgs commented 3 years ago

I have a couple of the MH-Z19 CO2 sensors connected to Tasmota'd ESP32 modules which send the measurements to MQTT like:

SENSOR = {"Time":"2021-08-23T10:22:13","MHZ19B":{"Model":"B","CarbonDioxide":589,"Temperature":27.0},"ESP32":{"Temperature":34.4},"TempUnit":"C"}

Is it possible with the current build to extract the CarbonDioxide and Temperature Values from the inner MHZ19B structure ?

(I don't see any examples that appear to deal with this structure).

lfitt commented 1 day ago

I have also run into this issue.