From e89b76adc7d44d1004d343806fd12ca52101ff73 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:05:17 +0100 Subject: [PATCH] Add support for Honeywell HPMA115S0 Add support for Honeywell HPMA115S0 particle concentration sensor by David Hunt (#6843) --- tasmota/_changelog.ino | 1 + tasmota/my_user_config.h | 2 +- tasmota/support_features.ino | 4 +++- tools/decode-status.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tasmota/_changelog.ino b/tasmota/_changelog.ino index 30d61ba20e84..06a6fc67093d 100644 --- a/tasmota/_changelog.ino +++ b/tasmota/_changelog.ino @@ -2,6 +2,7 @@ * 7.0.0.3 20191103 * Initial support for I2C driver runtime control using command I2CDriver and document I2CDEVICES.md * Fix random crash caused by UPNP flood + * Add support for Honeywell HPMA115S0 particle concentration sensor by David Hunt (#6843) * * 7.0.0.2 20191102 * Add command WebColor19 to control color of Module and Name (#6811) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 574d59146019..590ab02c42fd 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -456,7 +456,7 @@ //#define PMS_MODEL_PMS3003 // Enable support of PMS3003 instead of PMS5003/PMS7003 (needs the USE_PMS5003 above) #define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+1k5 code) #define STARTING_OFFSET 30 // Turn on NovaSDS XX-seconds before tele_period is reached -#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor +//#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor (+1k4) #define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+0k8 code) //#define USE_MP3_PLAYER // Use of the DFPlayer Mini MP3 Player RB-DFR-562 commands: play, volume and stop #define MP3_VOLUME 10 // Set the startup volume on init, the range can be 0..30(max) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 964d5058dcef..28dd97944f84 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -483,7 +483,9 @@ void GetFeatures(void) #ifdef USE_HIH6 feature5 |= 0x00020000; // xsns_55_hih_series.ino #endif -// feature5 |= 0x00040000; +#ifdef USE_HPMA + feature5 |= 0x00040000; +#endif // feature5 |= 0x00080000; // feature5 |= 0x00100000; diff --git a/tools/decode-status.py b/tools/decode-status.py index c0680ef55c31..fada498fb242 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -185,7 +185,7 @@ "USE_INA226","USE_A4988_STEPPER","USE_DDS2382","USE_SM2135", "USE_SHUTTER","USE_PCF8574","USE_DDSU666","USE_DEEPSLEEP", "USE_SONOFF_SC","USE_SONOFF_RF","USE_SONOFF_L1","USE_EXS_DIMMER", - "USE_ARDUINO_SLAVE","USE_HIH6","","", + "USE_ARDUINO_SLAVE","USE_HIH6","USE_HPMA","", "","","","", "","","","", "","","",""