Skip to content
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

Config LD2410 motion sensor #684

Open
tuongbui15 opened this issue Sep 20, 2024 · 1 comment
Open

Config LD2410 motion sensor #684

tuongbui15 opened this issue Sep 20, 2024 · 1 comment

Comments

@tuongbui15
Copy link

Hi everyone,
I am trying to get status of LD2410, tasmota topic: 22:40:31.251 MQT: tele/X_SMART_LINK_26A908/SENSOR = {"Time":"2024-09-20T22:40:31","Switch1":"ON","LD2410":{"Distance":[75.0,73.0,72.0],"Energy":[94,100]}}
Screenshot 2024-09-20 at 9 47 36 PM
What should I config my mqtt thing
Screenshot 2024-09-20 at 9 47 16 PM

Thankyou

@rbswift
Copy link
Contributor

rbswift commented Dec 31, 2024

If you just want to get the Switch1 status from your tasmota message then this should work:

"topics": {
    "getMotionDetected": "tele/X_SMART_LINK_26A908/SENSOR$.Switch1"
},
"onValue": "ON",
"offValve": "OFF",

If you want to interpret the "Distance":[75.0,73.0,72.0] array then you could do that with an apply function and set a conditional threshold on whichever of the three elements is most relevant. See https://github.com/arachnetech/homebridge-mqttthing/blob/master/docs/Configuration.md#apply-functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants