From 72849f672e907ca5ed43c697fb13cf57a065c1f5 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 20 Dec 2019 15:48:40 +0100 Subject: [PATCH] Add support for DHT12 - Fix DeepSleep in case there is no wifi by Stefan Bode (#7213) - Add support for DHT12 Temperature and Humidity sensor by Stefan Oskamp --- BUILDS.md | 1 + RELEASENOTES.md | 2 ++ tasmota/CHANGELOG.md | 2 ++ tasmota/support_features.ino | 4 +++- tools/decode-status.py | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/BUILDS.md b/BUILDS.md index d21fd9f15..3b311a6eb 100644 --- a/BUILDS.md +++ b/BUILDS.md @@ -106,6 +106,7 @@ | USE_PAJ7620 | - | - | - | - | - | - | - | | USE_PCF8574 | - | - | - | - | - | - | - | | USE_HIH6 | - | - | - | - | x | - | - | +| USE_DHT12 | - | - | - | - | x | - | - | | | | | | | | | | | Feature or Sensor | minimal | lite | tasmota | knx | sensors | ir | display | Remarks | USE_SPI | - | - | - | - | - | - | x | diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 9224a1825..234258dab 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -58,6 +58,7 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Fix flashing H801 led at boot by Stefan Hadinger (#7165, #649) - Fix duplicated ``Backlog`` when using Event inside a Backlog by Adrian Scillato (#7178, #7147) - Fix Gui Timer when using a negative zero offset of -00:00 by Peter Ooms (#7174) +- Fix DeepSleep in case there is no wifi by Stefan Bode (#7213) - Add command ``SerialConfig 0..23`` or ``SerialConfig 8N1`` to select Serial Config based in PR by Luis Teixeira (#7108) - Add command ``Sensor34 9 `` to set minimum delta to trigger JSON message by @tobox (#7188) - Add rule var ``%topic%`` by Adrian Scillato (#5522) @@ -74,3 +75,4 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Add Shutter functions ramp up/down and MQTT reporting by Stefan Bode - Add fallback support from version 8.x - Add restriction if fallback firmware is incompatible with settings resulting in unreachable device +- Add support for DHT12 Temperature and Humidity sensor by Stefan Oskamp diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 2d5ae9077..2b32857c2 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -4,10 +4,12 @@ - Change some more Settings locations freeing up space for future single char allowing variable length text - Change tasmota-basic.bin and FIRMWARE_BASIC to tasmota-lite.bin and FIRMWARE_LITE +- Fix DeepSleep in case there is no wifi by Stefan Bode (#7213) - Add Zigbee send automatic ZigbeeRead after sending a command - Add Zigbee improving Occupancy:false detection for Aqara sensor - Add fallback support from version 8.x - Add restriction if fallback firmware is incompatible with settings resulting in unreachable device +- Add support for DHT12 Temperature and Humidity sensor by Stefan Oskamp ### 7.1.2.5 20191213 diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index be4c8f6a4..31428d03b 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -489,7 +489,9 @@ void GetFeatures(void) #ifdef USE_TSL2591 feature5 |= 0x00080000; #endif -// feature5 |= 0x00100000; +#ifdef USE_DHT12 + feature5 |= 0x00100000; +#endif // feature5 |= 0x00200000; // feature5 |= 0x00400000; // feature5 |= 0x00800000; diff --git a/tools/decode-status.py b/tools/decode-status.py index be79cf921..e6751ae92 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -187,7 +187,7 @@ a_features = [[ "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_HPMA","USE_TSL2591", - "","","","", + "USE_DHT12","","","", "","","","", "","","","" ]]