Skip to content

Commit

Permalink
add xsns_102_ld2410s.ino (#22253)
Browse files Browse the repository at this point in the history
Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
  • Loading branch information
md5sum-as and arendst authored Oct 25, 2024
1 parent 33e1da8 commit 41442a5
Show file tree
Hide file tree
Showing 30 changed files with 804 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasmota/include/tasmota_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ enum UserSelectablePins {
GPIO_ADC_VOLTAGE, GPIO_ADC_CURRENT, // Analog Voltage and Current
GPIO_BL0906_RX, // BL0906 Serial interface
GPIO_DALI_RX_INV, GPIO_DALI_TX_INV, // DALI
GPIO_LD2410S_TX, GPIO_LD2410S_RX, // HLK-LD2410S
GPIO_SENSOR_END };

// Error as warning to rethink GPIO usage with max 2045
Expand Down Expand Up @@ -497,6 +498,7 @@ const char kSensorNames[] PROGMEM =
D_SENSOR_ADC_VOLTAGE "|" D_SENSOR_ADC_CURRENT "|"
D_SENSOR_BL0906_RX "|"
D_SENSOR_DALI_RX "_i|" D_SENSOR_DALI_TX "_i|"
D_SENSOR_LD2410S_TX "|" D_SENSOR_LD2410S_RX "|"
;

const char kSensorNamesFixed[] PROGMEM =
Expand Down Expand Up @@ -1104,6 +1106,10 @@ const uint16_t kGpioNiceList[] PROGMEM = {
AGPIO(GPIO_LD2410_TX), // HLK-LD2410 Serial interface
AGPIO(GPIO_LD2410_RX), // HLK-LD2410 Serial interface
#endif
#ifdef USE_LD2410S // xsns_102_ld2410s.ino
AGPIO(GPIO_LD2410S_TX), // HLK-LD2410S Serial interface
AGPIO(GPIO_LD2410S_RX), // HLK-LD2410S Serial interface
#endif
#ifdef USE_LOX_O2 // xsns_105_lox_o2.ino
AGPIO(GPIO_LOX_O2_RX), // LuminOx Oxygen Sensor LOX-O2 Serial interface
#endif
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/af_AF.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/bg_BG.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/ca_AD.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/cs_CZ.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/de_DE.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/el_GR.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/en_GB.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/es_ES.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/fr_FR.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 Wr"
#define D_GPIO_TM1621_RD "TM1621 Rd"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/fy_NL.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/he_HE.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/hu_HU.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/it_IT.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 - RX"
#define D_SENSOR_LD2410_TX "LD2410 - TX"
#define D_SENSOR_LD2410_RX "LD2410 - RX"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 - CS"
#define D_GPIO_TM1621_WR "TM1621 - WR"
#define D_GPIO_TM1621_RD "TM1621 - RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/ko_KO.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/nl_NL.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/pl_PL.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/pt_BR.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/pt_PT.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/ro_RO.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/ru_RU.h
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/sk_SK.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/sv_SE.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/tr_TR.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/uk_UA.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/vi_VN.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/zh_CN.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
2 changes: 2 additions & 0 deletions tasmota/language/zh_TW.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@
#define D_SENSOR_WE517_RX "WE517 Rx"
#define D_SENSOR_LD2410_TX "LD2410 Tx"
#define D_SENSOR_LD2410_RX "LD2410 Rx"
#define D_SENSOR_LD2410S_TX "LD2410S Tx"
#define D_SENSOR_LD2410S_RX "LD2410S Rx"
#define D_GPIO_TM1621_CS "TM1621 CS"
#define D_GPIO_TM1621_WR "TM1621 WR"
#define D_GPIO_TM1621_RD "TM1621 RD"
Expand Down
1 change: 1 addition & 0 deletions tasmota/my_user_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@
// #define VINDRIKTNING_SHOW_PM1 // Display undocumented/supposed PM1.0 values
// #define VINDRIKTNING_SHOW_PM10 // Display undocumented/supposed PM10 values
//#define USE_LD2410 // Add support for HLK-LD2410 24GHz smart wave motion sensor (+3k7 code)
//#define USE_LD2410S // Add support for HLK-LD2410S 24GHz smart wave motion sensor (+4k6 code)
//#define USE_LOX_O2 // Add support for LuminOx LOX O2 Sensor (+0k8 code)
//#define USE_GM861 // Add support for GM861 1D and 2D Bar Code Reader (+1k3 code)
// #define GM861_DECODE_AIM // Decode AIM-id (+0k3 code)
Expand Down
Loading

0 comments on commit 41442a5

Please sign in to comment.