bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

fix #36, now with humidity>1 #40

Open DanielXYZ2000 opened 6 years ago

DanielXYZ2000 commented 6 years ago

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

rdbahm commented 6 years ago

Fixes #41 and #36.

epleypa commented 6 years ago

@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?

DanielXYZ2000 commented 6 years ago

@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