From bfbd52b9fcc4f857c61a4220b7385324f114adaf Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Sat, 7 Mar 2026 22:28:17 +0100 Subject: [PATCH 1/3] Add SHTXX TelemetrySensorType --- meshtastic/telemetry.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 8889718..2aef8ed 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -866,6 +866,11 @@ enum TelemetrySensorType { * SCD30 CO2, humidity, temperature sensor */ SCD30 = 49; + + /* + * SHT family of sensors for temperature and humidity + */ + SHTXX = 50; } /* From a4234ead1d75b5e6ff58d517113cd58ef9451457 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Sun, 8 Mar 2026 11:23:46 +0100 Subject: [PATCH 2/3] Add TODO - REMOVE on SHT31, SHT4X, SHT21 and SHTC3 --- meshtastic/telemetry.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 2aef8ed..bd27a7b 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -653,7 +653,7 @@ enum TelemetrySensorType { BMP280 = 6; /* - * High accuracy temperature and humidity + * TODO - REMOVE High accuracy temperature and humidity */ SHTC3 = 7; @@ -678,7 +678,7 @@ enum TelemetrySensorType { QMC5883L = 11; /* - * High accuracy temperature and humidity + * TODO - REMOVE High accuracy temperature and humidity */ SHT31 = 12; @@ -703,7 +703,7 @@ enum TelemetrySensorType { RCWL9620 = 16; /* - * Sensirion High accuracy temperature and humidity + * TODO - REMOVE Sensirion High accuracy temperature and humidity */ SHT4X = 17; @@ -853,7 +853,7 @@ enum TelemetrySensorType { HDC1080 = 46; /* - * STH21 Temperature and R. Humidity sensor + * TODO - REMOVE STH21 Temperature and R. Humidity sensor */ SHT21 = 47; From 29a82c7b63c7ffb8c2d8d52d4fa959b2b3ba815c Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Sun, 8 Mar 2026 12:37:24 +0100 Subject: [PATCH 3/3] Add admin command for SHT accuracy setting --- meshtastic/admin.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 5ecf310..ac29cc8 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -666,6 +666,11 @@ message SensorConfig { * SCD30 CO2 Sensor configuration */ SCD30_config scd30_config = 3; + + /* + * SHTXX temperature and relative humidity sensor configuration + */ + SHTXX_config shtxx_config = 4; } message SCD4X_config { @@ -748,3 +753,10 @@ message SCD30_config { */ optional bool soft_reset = 6; } + +message SHTXX_config { + /* + * Accuracy mode (0 = low, 1 = medium, 2 = high) + */ + optional uint32 set_accuracy = 1; +}