jonwilliams
(Jon Williams)
January 11, 2023, 8:16am
145
Hi, Where can I get the phone app from?
blakadder
(Blakadder)
January 11, 2023, 8:51am
146
Latest HLKRadarTool can be found here
1 Like
MrBlowfish
(Gergely Poppe)
January 12, 2023, 10:26am
147
Only for Android, and only as a sideloaded app. for now.
Maco65
(Maciek)
January 12, 2023, 12:15pm
148
There isl HLKRadarTool for iPhone (from App Store):
1 Like
the-mentor
(TheMentor)
January 13, 2023, 1:18pm
149
Do you mind sharing links to what you got?
I found a 5 pin JST 1.25mm on aliexpress but I’m not sure what you did on the LD2410 side.
Mine has 5 pins but it doesn’t look like yours.
Thanks
Maco65
(Maciek)
January 13, 2023, 6:39pm
150
I also used JST GH 1,25 mm 5 PIN connector. Different then on the picture from NorbertReinhold - i just used female connector and pushed it into existing 5 pins on the module.
Check here: LD2410 esphome tips - #61 by Maco65
Azmr1978
(заур акаимов)
January 15, 2023, 10:38am
151
hello, I understand correctly, you changed the module as in my picture to LD1115h and does it work for you? does not detect the presence of .
Thanks for the thread! So I use KS-811 switches at home:
Which only have indicators on the left side and a blank plastic panel on the right. With a bit of modification to the internal plastic ribs:
There’s enough room to mount a LD2410 right behind that blank panel:
Powered by the 5V internal rail (plenty of spare current as I’m not using all 3 relays in these switches), and mounted above the power entry to the front PCB. Wired up the hardware UART of the ESP8266, working great with the
@amandel custom component. Thanks! There’s actually even enough room to angle the module slightly, to aim the module when the light switch is in the corner of the room.
7 Likes
Can you share your .yaml for esp8266?
I’m using this repository, note the sample .yaml. Key thing would be to use the hardware UART on the esp8266. Do you specifically want a config for the ks811 switches?
But this repo for ESP32 only, that’s why I asked.
LoopOn
(LoopOn)
February 3, 2023, 8:23pm
157
Switching to ESP8266 shouldn’t be difficult. Replace the esp32:
block with the information in here ESP8266 Platform — ESPHome .
Make sure to select the correct UART pins for your board.
Thanks for the link @FeromonDE , I’d also got these compilation errors for esp8266, but hadn’t seen that particular issue thread. At the time I assumed it must have been an issue with my out-of-date esphome installation, so I didn’t put any thought into it.
I’ve uploaded the changes I made here , simply removing the unused ESP_LOGD_HEX functions that were causing the compliation errors:
opened 01:09PM - 13 Jan 23 UTC
closed 09:08AM - 14 Jan 23 UTC
After compiling the include file contains errors (Using esphome 2022.12.3):
C… ompiling /data/ld2410-presence-sensor/.pioenvs/ld2410-presence-sensor/lib67b/ESP8266WiFi/WiFiClient.cpp.o
In file included from src/main.cpp:111:
src/ld2410.h:84:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
84 | static constexpr char *const TAG = "ld2410";
| ^~~~~~~~
In file included from src/esphome/core/log.h:8,
from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/ld2410.h: In member function 'void LD2410::ESP_LOGD_HEX()':
src/ld2410.h:269:32: error: initializer fails to determine size of '__pstr__'
269 | ESP_LOGD(TAG, res.c_str());
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
67 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
92 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/ld2410.h:269:9: note: in expansion of macro 'ESP_LOGD'
269 | ESP_LOGD(TAG, res.c_str());
| ^~~~~~~~
src/ld2410.h:269:32: error: array must be initialized with a brace-enclosed initializer
269 | ESP_LOGD(TAG, res.c_str());
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
67 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
92 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/ld2410.h:269:9: note: in expansion of macro 'ESP_LOGD'
269 | ESP_LOGD(TAG, res.c_str());
| ^~~~~~~~
src/ld2410.h: In member function 'void LD2410::ESP_LOGD_HEX(std::vector<unsigned char>, uint8_t)':
src/ld2410.h:283:32: error: initializer fails to determine size of '__pstr__'
283 | ESP_LOGD(TAG, res.c_str());
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
67 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
92 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/ld2410.h:283:9: note: in expansion of macro 'ESP_LOGD'
283 | ESP_LOGD(TAG, res.c_str());
| ^~~~~~~~
src/ld2410.h:283:32: error: array must be initialized with a brace-enclosed initializer
283 | ESP_LOGD(TAG, res.c_str());
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
67 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
92 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/ld2410.h:283:9: note: in expansion of macro 'ESP_LOGD'
283 | ESP_LOGD(TAG, res.c_str());
| ^~~~~~~~
Compiling /data/ld2410-presence-sensor/.pioenvs/ld2410-presence-sensor/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/ld2410-presence-sensor/.pioenvs/ld2410-presence-sensor/lib67b/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/ld2410-presence-sensor/.pioenvs/ld2410-presence-sensor/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
*** [/data/ld2410-presence-sensor/.pioenvs/ld2410-presence-sensor/src/main.cpp.o] Error 1
========================== [FAILED] Took 5.64 seconds ==========================
Who know, what this Setting mean?
Appeared after firmware and App update.
Thinking about ordering a few of these, how did it go for you with these?
And is it possible to use ESPresense with these (get the presence, not only motion)
MrBlowfish
(Gergely Poppe)
February 9, 2023, 9:06am
162
Works perfcetly fine with ESP32.
HA interface:
Settings (distance, sensitivity) are possible from the ESP web server. I can’t connect to it over BT, but that issue is probably on my end. Using the repo from amandel (LD2410C is the same as 2410B just in a different form).
bachoo786
(Bachoo786)
February 10, 2023, 4:17pm
163
hey guys so I have just come across this thread and I can see something beautiful going on here. May I just ask what is the best mmWave sensor I can buy and the best board to run it on? i.e. ESP8266 or ESP32? thanks.
If you have Bluetooth setup on your HA, 2022.3 has support for directly integrating a HLK-LD2410B over Bluetooth. I’ve tried it and it works great, no need for an esp32 or esp8266.
3 Likes
bachoo786
(Bachoo786)
February 10, 2023, 4:33pm
165
I have bluetooth setup however my bluetooth node is meters away (on the first floor) from where I would want to have my mmWave sensor (on the ground floor). Would it still work reliably?