diff --git a/BUILDS.md b/BUILDS.md index ec5a87e2e..89f522bce 100644 --- a/BUILDS.md +++ b/BUILDS.md @@ -171,6 +171,7 @@ Note: `minimal` variant is not listed as it shouldn't be used outside of the [up | USE_HDC2010 | - | - / - | - | - | - | - | | USE_PCF85363 | - | - / - | - | - | - | - | | USE_DS3502 | - | - / - | - | - | - | - | +| USE_HYT | - | - / - | - | - | - | - | | | | | | | | | | Feature or Sensor | l | t | k | s | i | d | Remarks | USE_SPI | - | - / - | - | - | - | x | diff --git a/I2CDEVICES.md b/I2CDEVICES.md index cb3d0ab83..f3af8c973 100644 --- a/I2CDEVICES.md +++ b/I2CDEVICES.md @@ -101,3 +101,5 @@ Index | Define | Driver | Device | Address(es) | Description 65 | USE_ADE7880 | xnrg_23 | ADE7880 | 0x38 | Energy monitor 66 | USE_PCF85363 | xsns_99 | PCF85363 | 0x51 | Real time clock 67 | USE_DS3502 | xdrv_61 | DS3502 | 0x28 - 0x2B | Digital potentiometer + 68 | USE_HYT | xsns_97 | HYTxxx | 0x28 | Temperature and Humidity sensor + \ No newline at end of file diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 8f632349c..b8c9901a8 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -674,6 +674,7 @@ // #define HM330X_HIDE_OUT_OF_DATE false // Option: change to true to hide data from web GUI and SENSOR while sensor is asleep // #define USE_HDC2010 // [I2cDriver64] Enable HDC2010 temperature/humidity sensor (I2C address 0x40) (+1k5 code) // #define USE_DS3502 // [I2CDriver67] Enable DS3502 digital potentiometer (I2C address 0x28 - 0x2B) (+0k4 code) +// #define USE_HYT // [I2CDriver68] Enable HYTxxx temperature and humidity sensor (I2C address 0x28) (+0k5 code) // #define USE_RTC_CHIPS // Enable RTC chip support and NTP server - Select only one // #define USE_DS3231 // [I2cDriver26] Enable DS3231 RTC (I2C address 0x68) (+1k2 code) diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 262990005..aae6e897c 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -812,7 +812,9 @@ void ResponseAppendFeatures(void) #if defined(USE_LIGHT) && defined(USE_BP5758D) feature8 |= 0x10000000; // xlgt_08_bp5758d.ino #endif -// feature8 |= 0x20000000; +#if defined(USE_I2C) && defined(USE_HYT) + feature8 |= 0x20000000; // xsns_97_hyt.ino +#endif // feature8 |= 0x40000000; // feature8 |= 0x80000000; } diff --git a/tools/decode-status.py b/tools/decode-status.py index 89b879720..21b75ed3b 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -279,7 +279,7 @@ a_features = [[ "USE_HDC2010","USE_LSC_MCSL","USE_SONOFF_SPM","USE_SHIFT595", "USE_SDM230","USE_CM110x","USE_BL6523","USE_ADE7880", "USE_PCF85363","USE_DS3502","USE_IMPROV","USE_FLOWRATEMETER", - "USE_BP5758D","","","" + "USE_BP5758D","USE_HYT","","" ],[ "","","","", "","","","",