-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[P159] Add LD2410 Radar presence detection #4852
[P159] Add LD2410 Radar presence detection #4852
Conversation
…feature/P159-ld2410-presence-detection
…feature/P159-ld2410-presence-detection
Add GetConfig support for fetching all available values Add ld2410,logall command for dumping all values in the log (INFO level) Code improvements
…feature/P159-ld2410-presence-detection
…t and data_valid checks
Add GetConfig support for sensitivity per gate values
You can mark "Testing on LD2410C" as completed. Thanks Ton for you job! |
…feature/P159-ld2410-presence-detection
…feature/P159-ld2410-presence-detection
…feature/P159-ld2410-presence-detection
…feature/P159-ld2410-presence-detection
@tonhuisman Ton please update also https://github.com/letscontrolit/ESPEasy/blob/mega/src/Custom-sample.h adding this new Plugin |
Oh sorry, I miss it due to viewing with mobile phone |
@tonhuisman as we know we well tested it on LD2410C and LD2410B models. |
On ESPHome it seems they have 2 different implementation between LD2410 and LD2420. https://esphome.io/components/sensor/ld2410 |
Originally I intended to support both the LD2410 and LD2420, but AFAIR, they are not I'll have a look at what the differences between the ESPHome implementation implies, maybe it's needed there because of the change in available values, IDK. |
OK, I totally agree with you, so if LD2410 and LD2420 are not very software compatible, it's better to leave this new Plugin as is it only for LD2410. About the other 60 GHz radar presence sensor, what is it? What chip? Thanks! |
and these new kind of Presence sensor using mmWave are much better than PIR. |
This seems the LD2420 implementation in ESPHome. |
Where can I get build that supports LD2410? This test build has expired links. Tested both releases on ESP8266 and ESP32 (normal_ESP8266_4M1M and normal_ESP32_4M316k). |
On the Plugin overview page you can see that the plugin is included in the Collection G builds. If you install that type of build you will be able to select the LD2410. |
I noticed considerable data flooding from this plugin to the mqtt broker - how can I reduce it? |
You can act on the events sent by the task in the rules. Sending to MQTT can then be done via the publish command, or you copy the required values from the event to a dummy task and then call |
By the way, it is better not to reply to closed issues or merged pull requests as not a lot of people will read them. |
Resolves #4673
P159 - Presence - LD2410 (24 GHz Radar human presence detector)
Using a beta version of nvmreynolds/ld2410 library, with an open PR included to have Engineering mode, and other experimental patches like the Ambient Light sensor support.
Features:
ld2410,factoryreset
: Reset sensor to factory default settings (no questions asked!)ld2410,logall
: Write all available values at INFO log[<taskName>#<valueName>]
Presence
: Presence (0/1)StatPres
: Stationary presence (0/1)MovPres
: Moving presence (0/1)Distance
: Distance in cmStatDist
: Stationary distance in cmMovDist
: Moving distance in cmStatEnergy
: Stationary object energy levelMovEnergy
: Moving object energy levelStatSensGate0
..StatSensGate8
: Stationary gate sensitivity value for gate 0..8 (range 0..100)MovSensGate0
..MovSensGate8
: Moving gate sensitivity value for gate 0..8 (range 0..100)AmbLight
: Ambient light level (0..255) (unknown unit)OutputPin
: State of the output pin (0/1)StatEnergyGate0
..StatEnergyGate8
: Stationary object energy level for gate 0..8, 75 cm/gateMovEnergyGate0
..MovEnergyGate8
: Moving object energy for gate 0..8, 75 cm/gateStatSensGate0
..StatSensGate8
: Stationary sensitivity setting gate 0..8MovSensGate0
..MovSensGate8
: Moving sensitivity setting gate 0..8TODO:
(currently tested on ESP32 only)