The LD2420 sensor works fine with the NodeMCU. But when I connect to a MQTT Broker with esphome then I get weird values.
The values are jumping very high and then back again. Why could be the reason?
[19:53:56][D][sensor:093]: 'Moving Distance': Sending state 71.00000 cm with 0 decimals of accuracy
[19:53:57][D][sensor:093]: 'Moving Distance': Sending state 80.00000 cm with 0 decimals of accuracy
[19:53:58][D][sensor:093]: 'Moving Distance': Sending state 113.00000 cm with 0 decimals of accuracy
[19:54:00][D][sensor:093]: 'Moving Distance': Sending state 142.00000 cm with 0 decimals of accuracy
[19:54:04][D][sensor:093]: 'Moving Distance': Sending state 104.00000 cm with 0 decimals of accuracy
[19:54:05][D][sensor:093]: 'Moving Distance': Sending state 76.00000 cm with 0 decimals of accuracy
[19:54:06][D][sensor:093]: 'Moving Distance': Sending state 63.00000 cm with 0 decimals of accuracy
[19:54:07][D][sensor:093]: 'Moving Distance': Sending state 58.00000 cm with 0 decimals of accuracy
[19:54:08][D][sensor:093]: 'Moving Distance': Sending state 32826.00000 cm with 0 decimals of accuracy
[19:54:09][D][sensor:093]: 'Moving Distance': Sending state 58.00000 cm with 0 decimals of accuracy
[19:54:12][D][sensor:093]: 'Moving Distance': Sending state 75.00000 cm with 0 decimals of accuracy
[19:54:13][D][sensor:093]: 'Moving Distance': Sending state 25409.00000 cm with 0 decimals of accuracy
[19:54:14][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:54:22][D][sensor:093]: 'Moving Distance': Sending state 57856.00000 cm with 0 decimals of accuracy
[19:54:23][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:54:37][D][sensor:093]: 'Moving Distance': Sending state 32840.00000 cm with 0 decimals of accuracy
[19:54:38][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:04][D][sensor:093]: 'Moving Distance': Sending state 32840.00000 cm with 0 decimals of accuracy
[19:55:05][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:14][D][sensor:093]: 'Moving Distance': Sending state 45322.00000 cm with 0 decimals of accuracy
[19:55:15][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:16][D][sensor:093]: 'Moving Distance': Sending state 32840.00000 cm with 0 decimals of accuracy
[19:55:17][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:22][D][sensor:093]: 'Moving Distance': Sending state 32840.00000 cm with 0 decimals of accuracy
[19:55:23][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:27][D][sensor:093]: 'Moving Distance': Sending state 60068.00000 cm with 0 decimals of accuracy
[19:55:29][D][sensor:093]: 'Moving Distance': Sending state 72.00000 cm with 0 decimals of accuracy
[19:55:36][D][sensor:093]: 'Moving Distance': Sending state 12800.00000 cm with 0 decimals of accuracy
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
The LD2420 sensor works fine with the NodeMCU. But when I connect to a MQTT Broker with esphome then I get weird values. The values are jumping very high and then back again. Why could be the reason?
Many thanks
Which version of ESPHome has the issue?
2023.12.5
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP8266
Board
NodeMCU
Component causing the issue
LD2420 and MQTT
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response