rainchi / ESPHome-LD2410

ESPHome LD2410 mmWave Radar Sensor Custom Component
189 stars 36 forks source link

Not working with newer(different)versions of esp8266 #14

Open Trigun opened 1 year ago

Trigun commented 1 year ago

Hi, it seems that the Ld2410 in combination with this code does not seem to work work with newer versions of esp8266. I soldered three. 1 with an older version of the esp which works great! Two with a newer(different) version which results in all entities being unknown in Home assistant. Is there something that needs to be changed in the code?

Thanks a lot!

tientmit88 commented 1 year ago
image

me too, it doesn't work

captshadab commented 1 year ago

Can I soldier it to esp32?

krisalianne commented 1 year ago

Same thing here. Doesn't work anymore.

captshadab commented 1 year ago

Same thing here. Doesn't work anymore.

Hey

I soldered the esp32 with ld2410b and it works however the yaml is slightly different

krisalianne commented 1 year ago

Hi, Thanks for your reply, could you share your config file, please?

Le dim. 2 avr. 2023 à 17:46, captshadab @.***> a écrit :

Same thing here. Doesn't work anymore.

Hey

I soldered the esp32 with ld2410b and it works however the yaml is slightly different

— Reply to this email directly, view it on GitHub https://github.com/rain931215/ESPHome-LD2410/issues/14#issuecomment-1493447472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGXHGMUJCSO4DH3YOKHVASDW7HXUFANCNFSM6AAAAAAWHXOU44 . You are receiving this because you commented.Message ID: @.***>

-- Vous en souhaitant bonne réception, Cordialement,

Valéry HELENON MICE ANTILLES Portable : 0696 192 717

captshadab commented 1 year ago

hi here you go

`substitutions: name: esp32-bluetooth-proxy-4ca418 friendly_name: xxxxxxxxx

esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name}

ota:

api: encryption: key: 1x7H+ykUVBotcXZ+ySbimRktvLAfGm5KW+Sk=

wifi: networks:

esp32_ble_tracker: scan_parameters: interval: 1100ms window: 1100ms active: False

bluetooth_proxy: active: True

esp32: board: esp32dev framework: type: esp-idf version: recommended

switch:

external_components:

logger: level: DEBUG baud_rate: 0

uart: id: uart1 tx_pin: GPIO17 rx_pin: GPIO16 baud_rate: 256000 parity: NONE stop_bits: 1

ld2410: timeout: 10s max_move_distance : 6m max_still_distance: 6m g0_move_threshold: 50 g0_still_threshold: 20 g1_move_threshold: 50 g1_still_threshold: 20 g2_move_threshold: 40 g2_still_threshold: 20 g3_move_threshold: 30 g3_still_threshold: 20 g4_move_threshold: 30 g4_still_threshold: 20 g5_move_threshold: 20 g5_still_threshold: 20 g6_move_threshold: 20 g6_still_threshold: 20 g7_move_threshold: 40 g7_still_threshold: 30 g8_move_threshold: 40 g8_still_threshold: 30

binary_sensor:

sensor:

`

krisalianne commented 1 year ago

Thank You very much, I'll give it a try today.

Le lun. 3 avr. 2023 à 11:45, captshadab @.***> a écrit :

hi here you go

`substitutions: name: esp32-bluetooth-proxy-4ca418 friendly_name: xxxxxxxxx

esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name}

ota:

api: encryption: key: 1x7H+ykUVBotcXZ+ySbimRktvLAfGm5KW+Sk=

wifi: networks:

  • ssid: "xxxxxx" password: "xxxxxxx" channel: X output_power: 19.5db fast_connect: True power_save_mode: light manual_ip: static_ip: 192.168.0.91 gateway: 192.168.0.1 subnet: 255.255.255.0 dns1: 192.168.0.1

esp32_ble_tracker: scan_parameters: interval: 1100ms window: 1100ms active: False

bluetooth_proxy: active: True

esp32: board: esp32dev framework: type: esp-idf version: recommended

switch:

  • platform: restart name: xxxxxxx restart

external_components:

  • source: @.*** components: [ ld2410 ]

logger: level: DEBUG baud_rate: 0

uart: id: uart1 tx_pin: GPIO17 rx_pin: GPIO16 baud_rate: 256000 parity: NONE stop_bits: 1

ld2410: timeout: 10s max_move_distance : 6m max_still_distance: 6m g0_move_threshold: 50 g0_still_threshold: 20 g1_move_threshold: 50 g1_still_threshold: 20 g2_move_threshold: 40 g2_still_threshold: 20 g3_move_threshold: 30 g3_still_threshold: 20 g4_move_threshold: 30 g4_still_threshold: 20 g5_move_threshold: 20 g5_still_threshold: 20 g6_move_threshold: 20 g6_still_threshold: 20 g7_move_threshold: 40 g7_still_threshold: 30 g8_move_threshold: 40 g8_still_threshold: 30

binary_sensor:

  • platform: ld2410 has_target: name: Presence has_moving_target: name: Moving Target has_still_target: name: Still Target

sensor:

  • platform: ld2410 moving_distance: name : Moving Distance still_distance: name: Still Distance moving_energy: name: Move Energy still_energy: name: Still Energy detection_distance: name: Detection Distance

`

— Reply to this email directly, view it on GitHub https://github.com/rain931215/ESPHome-LD2410/issues/14#issuecomment-1494561700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGXHGMST5WRFDYQ7DX4L4MTW7LWADANCNFSM6AAAAAAWHXOU44 . You are receiving this because you commented.Message ID: @.***>

-- Vous en souhaitant bonne réception, Cordialement,

Valéry HELENON MICE ANTILLES Portable : 0696 192 717

krisalianne commented 1 year ago

It works perfectly, thanks again.

Le lun. 3 avr. 2023 à 11:47, Valéry HELENON @.***> a écrit :

Thank You very much, I'll give it a try today.

Le lun. 3 avr. 2023 à 11:45, captshadab @.***> a écrit :

hi here you go

`substitutions: name: esp32-bluetooth-proxy-4ca418 friendly_name: xxxxxxxxx

esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name}

ota:

api: encryption: key: 1x7H+ykUVBotcXZ+ySbimRktvLAfGm5KW+Sk=

wifi: networks:

  • ssid: "xxxxxx" password: "xxxxxxx" channel: X output_power: 19.5db fast_connect: True power_save_mode: light manual_ip: static_ip: 192.168.0.91 gateway: 192.168.0.1 subnet: 255.255.255.0 dns1: 192.168.0.1

esp32_ble_tracker: scan_parameters: interval: 1100ms window: 1100ms active: False

bluetooth_proxy: active: True

esp32: board: esp32dev framework: type: esp-idf version: recommended

switch:

  • platform: restart name: xxxxxxx restart

external_components:

  • source: @.*** components: [ ld2410 ]

logger: level: DEBUG baud_rate: 0

uart: id: uart1 tx_pin: GPIO17 rx_pin: GPIO16 baud_rate: 256000 parity: NONE stop_bits: 1

ld2410: timeout: 10s max_move_distance : 6m max_still_distance: 6m g0_move_threshold: 50 g0_still_threshold: 20 g1_move_threshold: 50 g1_still_threshold: 20 g2_move_threshold: 40 g2_still_threshold: 20 g3_move_threshold: 30 g3_still_threshold: 20 g4_move_threshold: 30 g4_still_threshold: 20 g5_move_threshold: 20 g5_still_threshold: 20 g6_move_threshold: 20 g6_still_threshold: 20 g7_move_threshold: 40 g7_still_threshold: 30 g8_move_threshold: 40 g8_still_threshold: 30

binary_sensor:

  • platform: ld2410 has_target: name: Presence has_moving_target: name: Moving Target has_still_target: name: Still Target

sensor:

  • platform: ld2410 moving_distance: name : Moving Distance still_distance: name: Still Distance moving_energy: name: Move Energy still_energy: name: Still Energy detection_distance: name: Detection Distance

`

— Reply to this email directly, view it on GitHub https://github.com/rain931215/ESPHome-LD2410/issues/14#issuecomment-1494561700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGXHGMST5WRFDYQ7DX4L4MTW7LWADANCNFSM6AAAAAAWHXOU44 . You are receiving this because you commented.Message ID: @.***>

-- Vous en souhaitant bonne réception, Cordialement,

Valéry HELENON MICE ANTILLES Portable : 0696 192 717

-- Vous en souhaitant bonne réception, Cordialement,

Valéry HELENON MICE ANTILLES Portable : 0696 192 717

cmussoni commented 1 year ago

Hi, I'm also interested in this: what do you mean by "newer(different)versions" of esp8266 ? Thank you. Claudio.

Trigun commented 1 year ago

image

For example. In this image there are two esp8266 boards. The right one works perfectly with the LD2410b. The left one doesnt seems to work. The output gives all the sensors an unknown state. Same code only a different board

krisalianne commented 1 year ago

You're right, just test it with the board on the right, it work.

systemerror-codenotfound commented 1 year ago

image

For example. In this image there are two esp8266 boards. The right one works perfectly with the LD2410b. The left one doesnt seems to work. The output gives all the sensors an unknown state. Same code only a different board

i only have the left board, any idea about how i can use it?