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

Add MQ2 and MQ135 Support #30

Open firstof9 opened 6 years ago

firstof9 commented 6 years ago

Added code to support MQ2 and MQ135 sensors.

Support is togglable via defines in the code and are commented out (left off) for compatibility.

DanielXYZ2000 commented 6 years ago

Why is the diff function not working for this pull request? Linux vs Windows?

firstof9 commented 6 years ago

No idea.

DanielXYZ2000 commented 6 years ago

Hi, I tried to compile this verison with MQ135 - but I have no MQ135 installed. Could you add in the comment, which library must be added.

firstof9 commented 6 years ago

Sorry this was linked to a post on Home-Assistant.io which library to add, here's the one to use for MQ135: https://github.com/GeorgK/MQ135

kevinshane commented 6 years ago

Thank you very much for sharing this, noob questions:

  1. Would u please consider adding a buzzer alert when gas leak detected?
  2. Does MQ other type like MQ6 and MQ9 can also use this? Thanks
firstof9 commented 6 years ago

@kevinshane Give this version a try with your MQ6 or MQ9. No buzzer added yet.