Skip to content

Commit 0471ba2

Browse files
committed
Add support for QMP6988 temperature and pressure sensor
1 parent 7471d75 commit 0471ba2

File tree

9 files changed

+470
-12
lines changed

9 files changed

+470
-12
lines changed

BUILDS.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Note: the `minimal` variant is not listed as it shouldn't be used outside of the
88
| ------------------------- | ----- | ----- | ----- | ----- | ----- | ----- | --------------------------- |
99
| MY_LANGUAGE en_GB | x | x / x | x | x | x | x |
1010
| USE_IMPROV | x | x / x | x | x | x | x |
11-
| USE_UFILESYS | - | - / x | - | - | - | - |
11+
| USE_UFILESYS | - | - / x | - | - | - | - | Every ESP8266 > 1MB |
1212
| USE_ARDUINO_OTA | - | - / - | - | - | - | - |
1313
| USE_DOMOTICZ | - | x / x | x | x | x | - |
1414
| USE_HOME_ASSISTANT | - | - / - | - | - | - | - |
@@ -30,11 +30,14 @@ Note: the `minimal` variant is not listed as it shouldn't be used outside of the
3030
| USE_SUNRISE | x | x / x | x | x | x | x |
3131
| USE_RULES | x | x / x | x | x | x | x |
3232
| USE_SCRIPT | - | - / - | - | - | - | - |
33-
| USE_EXPRESSION | - | - / x | - | - | - | - | Every ESP32 + ESP8266 > 1MB |
34-
| SUPPORT_IF_STATEMENT | - | - / x | - | - | - | - | Every ESP32 + ESP8266 > 1MB |
33+
| USE_EXPRESSION | - | x / x | - | - | - | - |
34+
| SUPPORT_IF_STATEMENT | - | x / x | - | - | - | - |
3535
| USE_HOTPLUG | - | - / - | - | - | - | - |
3636
| USE_PROMETHEUS | - | - / - | - | - | - | - |
3737
| USE_PING | - | - / - | - | - | - | - |
38+
| USE_HDMI_CEC | - | - / - | - | - | - | - |
39+
| USE_MAGIC_SWITCH | - | - / x | - | - | - | - |
40+
| USE_GPIO_VIEWER | - | - / x | - | - | - | - |
3841
| | | | | | | |
3942
| **Feature or Sensor** | **l** | **t** | **k** | **s** | **i** | **d** | **Remarks** |
4043
| ROTARY_V1 | - | x / x | - | x | - | - |
@@ -105,6 +108,9 @@ Note: the `minimal` variant is not listed as it shouldn't be used outside of the
105108
| USE_HTU | - | - / x | - | x | - | - |
106109
| USE_BMP | - | - / x | - | x | - | - |
107110
| USE_BME68X | - | - / x | - | x | - | - |
111+
| USE_AMSX915 | - | - / - | - | - | - | - |
112+
| USE_SPL06_007 | - | - / - | - | - | - | - |
113+
| USE_QMP6988 | - | - / - | - | - | - | - |
108114
| USE_BH1750 | - | - / x | - | x | - | - |
109115
| USE_VEML6070 | - | - / x | - | x | - | - |
110116
| USE_ADS1115 | - | - / x | - | x | - | - |
@@ -192,11 +198,13 @@ Note: the `minimal` variant is not listed as it shouldn't be used outside of the
192198
| USE_LUXV30B | - | - / - | - | - | - | - |
193199
| USE_HMC5883L | - | - / - | - | - | - | - |
194200
| USE_QMC5883L | - | - / - | - | - | - | - |
201+
| USE_MAX17043 | - | - / - | - | - | - | - |
195202
| | | | | | | |
196203
| **Feature or Sensor** | **l** | **t** | **k** | **s** | **i** | **d** | **Remarks** |
197-
| USE_SPI | - | - / - | - | - | - | x |
204+
| USE_SPI | - | - / x | - | - | - | x |
198205
| USE_RC522 | - | - / - | - | - | - | - |
199206
| USE_CANSNIFFER | - | - / - | - | - | - | - |
207+
| USE_SPI_LORA | - | - / x | - | - | - | - |
200208
| USE_MHZ19 | - | - / x | - | x | - | - |
201209
| USE_SENSEAIR | - | - / x | - | x | - | - |
202210
| USE_PMS5003 | - | - / x | - | x | - | - |
@@ -220,6 +228,8 @@ Note: the `minimal` variant is not listed as it shouldn't be used outside of the
220228
| USE_LD2410 | - | - / - | - | - | - | - |
221229
| USE_GM861 | - | - / - | - | - | - | - |
222230
| USE_TCP_BRIDGE | - | - / - | - | - | - | - | zbbridge / zbbrdgpro |
231+
| USE_HC8 | - | - / - | - | - | - | - |
232+
| USE_PIPSOLAR | - | - / - | - | - | - | - |
223233
| | | | | | | |
224234
| USE_NRF24 | - | - / - | - | - | - | - |
225235
| USE_MIBLE | - | - / - | - | - | - | - |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
1111
- HASPmota rounds to nearest int values passed as 'real' (#21599)
1212
- Berry automatic rounding of float to int when calling C mapped functions (#21601)
1313
- Berry add `math.round` (#21602)
14+
- Support for QMP6988 temperature and pressure sensor
1415

1516
### Breaking Changed
1617

CODE_OWNERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ In addition to @arendst the following code is mainly owned by:
139139
| xsns_25_spl06-007_sensor | @rai68
140140
| xsns_26_lm75ad | Andre Thomas
141141
| xsns_27_apds9960 | Shawn Hymel
142-
| xsns_28 |
142+
| xsns_28_qmp6988 | @arendst
143143
| xsns_29_mcp230xx | Andre Thomas
144144
| xsns_30_mpr121 | Rene 'Renne' Bartsch
145145
| xsns_31_ccs811 | Gerhard Mutz

I2CDEVICES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Index | Define | Driver | Device | Address(es) | Bus2 | Descrip
123123
83 | USE_MAX17043 | xsns_110 | MAX17043 | 0x36 | | Fuel-gauge for 3.7 Volt Lipo battery
124124
84 | USE_ENS16x | xsns_111 | ENS16x | 0x52 - 0x53 | | Gas (TVOC, eCO2) and air quality sensor
125125
85 | USE_ENS210 | xsns_112 | ENS210 | 0x43 - 0x44 | | Temperature and humidity sensor
126-
86 | USE_AMSX915 | xsns_114 | AMS5915 | 0x28 | | Pressure (absolute/differential) and temperature sensor
127126
86 | USE_AMSX915 | xsns_114 | AMS6915 | 0x28 | | Pressure (absolute/differential) and temperature sensor
128-
87 | USE_SPL06_007 | xsns_25 | SPL06-007 | 0x76 | | Pressure and temperature sensor
127+
87 | USE_SPL06_007 | xsns_25 | SPL06-007 | 0x76 | | Pressure and temperature sensor
128+
88 | USE_QMP6988 | xsns_28 | QMP6988 | 0x56, 0x70 | Yes | Pressure and temperature sensor
129129
NOTE: Bus2 supported on ESP32 only.

RELEASENOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
121121

122122
## Changelog v14.1.0.1
123123
### Added
124+
- Support for QMP6988 temperature and pressure sensor
124125
- Berry solidification of `bytes` instances [#21558](https://github.com/arendst/Tasmota/issues/21558)
125126
- Berry automatic rounding of float to int when calling C mapped functions [#21601](https://github.com/arendst/Tasmota/issues/21601)
126127
- Berry add `math.round` [#21602](https://github.com/arendst/Tasmota/issues/21602)

tasmota/my_user_config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@
421421
#define MQTT_LWT_OFFLINE "Offline" // MQTT LWT offline topic message
422422
#define MQTT_LWT_ONLINE "Online" // MQTT LWT online topic message
423423

424-
#define MQTT_TELE_RETAIN 0 // Tele messages may send retain flag (0 = off, 1 = on)
425424
#define MQTT_CLEAN_SESSION 1 // Mqtt clean session connection (0 = No clean session, 1 = Clean session (default))
426425
#define MQTT_DISABLE_SSERIALRECEIVED 0 // 1 = Disable sserialreceived mqtt messages, 0 = Enable sserialreceived mqtt messages (default)
427426
#define MQTT_DISABLE_MODBUSRECEIVED 0 // 1 = Disable ModbusReceived mqtt messages, 0 = Enable ModbusReceived mqtt messages (default)
@@ -446,7 +445,8 @@
446445
// #define USE_MQTT_TLS_CA_CERT // [DEPRECATED] Now TLS supports dual mode using SetOption132 - this flag is now ignored
447446
// #define USE_MQTT_AWS_IOT_LIGHT // Enable MQTT for AWS IoT in light mode, with user/password instead of private certificate
448447
// #define USE_MQTT_AWS_IOT // [Deprecated] Enable MQTT for AWS IoT - requires a private key (+11.9k code, +0.4k mem)
449-
// Full documentation here: https://github.com/arendst/Tasmota/wiki/AWS-IoT
448+
// Note: you need to generate a private key + certificate per device and update 'tasmota/tasmota_aws_iot.cpp'
449+
// Full documentation here: https://github.com/arendst/Tasmota/wiki/AWS-IoT
450450
// for USE_4K_RSA (support for 4096 bits certificates, instead of 2048), you need to uncommend `-DUSE_4K_RSA` in `build_flags` from `platform.ini` or `platform_override.ini`
451451

452452
// -- MQTT - TLS - Azure IoT & IoT Central ---------
@@ -738,6 +738,7 @@
738738
// #define MAX17043_ALERT_THRESHOLD 32 // [I2cDriver83] Define the alert threshold for low battery level percentage 1-32
739739
// #define USE_AMSX915 // [I2CDriver86] Enable AMS5915/AMS6915 pressure/temperature sensor (+1k2 code)
740740
// #define USE_SPL06_007 // [I2cDriver87] Enable SPL06_007 pressure and temperature sensor (I2C addresses 0x76) (+2k5 code)
741+
// #define USE_QMP6988 // [I2cDriver88] Enable QMP6988 pressure and temperature sensor (I2C address 0x56 or 0x70) (+2k9 code)
741742

742743
// #define USE_RTC_CHIPS // Enable RTC chip support and NTP server - Select only one
743744
// #define USE_DS3231 // [I2cDriver26] Enable DS3231 RTC (I2C address 0x68) (+1k2 code)

tasmota/tasmota_support/support_features.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,9 @@ constexpr uint32_t feature[] = {
919919
#if defined(USE_I2C) && defined(USE_SPL06_007)
920920
0x00000020 | // xsns_25_spl006-7_sensor.ino
921921
#endif
922-
// 0x00000040 | //
922+
#if defined(USE_I2C) && defined(USE_QMP6988)
923+
0x00000040 | // xsns_28_qmp6988.ino
924+
#endif
923925
// 0x00000080 | //
924926
// 0x00000100 | //
925927
// 0x00000200 | //

0 commit comments

Comments
 (0)