ESP-MQTT-JSON-Multisensor icon indicating copy to clipboard operation
ESP-MQTT-JSON-Multisensor copied to clipboard

fix #36, now with humidity>1

Open DanielXYZ2000 opened this issue 8 years ago • 3 comments

add default value for motionStatus, only send dht22 values it humValue>1

DanielXYZ2000 avatar Oct 15 '17 09:10 DanielXYZ2000

Fixes #41 and #36.

rdbahm avatar Oct 24 '17 18:10 rdbahm

@DanielXYZ2000 I applied this to my sensors and I'm getting the following in my log

Error parsing value: 'dict object' has no attribute 'humidity'
Error parsing value: 'dict object' has no attribute 'temperature'
Error parsing value: 'dict object' has no attribute 'heatindex'

Is it possible to ignore these attributes when they are not passed by the sensor JSON without generating an error?

epleypa avatar Nov 26 '17 21:11 epleypa

@epleypa For me its compiling fine without any errors. Check if you have the libaries installed for ArduinoJson.h. I have the Version 5.11.2 installed

DanielXYZ2000 avatar Nov 27 '17 22:11 DanielXYZ2000