From ae275d984f109d3690944502058a0a9b99f95c1b Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:33:08 +0100 Subject: [PATCH] Add support for HDC2010 temperature/humidity sensor Add support for HDC2010 temperature/humidity sensor by Luc Boudreau (#13633) --- CHANGELOG.md | 3 +++ RELEASENOTES.md | 1 + tasmota/support_features.ino | 6 ++++-- tools/decode-status.py | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 540535ab9..cd72e5052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development ## [10.0.0.2] +### Added +- Support for HDC2010 temperature/humidity sensor by Luc Boudreau (#13633) + ### Changed - ESP32 core library from v1.0.7.5 to v2.0.1 diff --git a/RELEASENOTES.md b/RELEASENOTES.md index e996c63f9..af4c13ba3 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -105,6 +105,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo - 1 second heartbeat GPIO - ESP32 Berry add module ``python_compat`` to be closer to Python syntax [#13428](https://github.com/arendst/Tasmota/issues/13428) - Command ``TcpConfig`` for TCPBridge protocol configuration [#13565](https://github.com/arendst/Tasmota/issues/13565) +- Support for HDC2010 temperature/humidity sensor by Luc Boudreau [#13633](https://github.com/arendst/Tasmota/issues/13633) ### Breaking Changed diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 6a2d73b37..6ed9eff6f 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -772,10 +772,12 @@ void ResponseAppendFeatures(void) feature8 |= 0x00004000; // xsns_92_scd40.ino #endif #if defined(USE_I2C) && defined(USE_HM330X) - feature8 |= 0x00008000; + feature8 |= 0x00008000; // xsns_93_hm330x.ino #endif -// feature8 |= 0x00010000; +#if defined(USE_I2C) && defined(USE_HDC2010) + feature8 |= 0x00010000; // xsns_94_hdc2010.ino +#endif // feature8 |= 0x00020000; // feature8 |= 0x00040000; // feature8 |= 0x00080000; diff --git a/tools/decode-status.py b/tools/decode-status.py index 0fef90db9..f6d8a9b36 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -259,7 +259,7 @@ a_features = [[ "USE_BM8563","USE_ENERGY_DUMMY","USE_AM2320","USE_T67XX", "USE_MCP2515","USE_TASMESH","USE_WIFI_RANGE_EXTENDER","USE_INFLUXDB", "USE_HRG15","USE_VINDRIKTNING","USE_SCD40","USE_HM330X", - "","","","", + "USE_HDC2010","","","", "","","","", "","","","", "","","","" @@ -290,7 +290,7 @@ else: obj = json.load(fp) def StartDecode(): - print ("\n*** decode-status.py v20211008 by Theo Arends and Jacek Ziolkowski ***") + print ("\n*** decode-status.py v20211111 by Theo Arends and Jacek Ziolkowski ***") # print("Decoding\n{}".format(obj))