ESPHome-LD2410 icon indicating copy to clipboard operation
ESPHome-LD2410 copied to clipboard

Not working with newer(different)versions of esp8266

Open Trigun opened this issue 1 year ago • 12 comments

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!

Trigun avatar Mar 25 '23 20:03 Trigun

image me too, it doesn't work

tientmit88 avatar Mar 26 '23 15:03 tientmit88

Can I soldier it to esp32?

captshadab avatar Mar 28 '23 18:03 captshadab

Same thing here. Doesn't work anymore.

krisalianne avatar Apr 02 '23 21:04 krisalianne

Same thing here. Doesn't work anymore.

Hey

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

captshadab avatar Apr 02 '23 21:04 captshadab

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

krisalianne avatar Apr 02 '23 22:04 krisalianne

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: github://esphome/esphome@dev 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

`

captshadab avatar Apr 03 '23 15:04 captshadab

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 avatar Apr 03 '23 15:04 krisalianne

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

krisalianne avatar Apr 04 '23 00:04 krisalianne

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

cmussoni avatar Apr 04 '23 03:04 cmussoni

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

Trigun avatar Apr 04 '23 17:04 Trigun

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

krisalianne avatar Apr 04 '23 22:04 krisalianne

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?