Open latetedemelon opened 5 months ago
@latetedemelon Sorry I need to update the example, will do shortly please use the following, also just found out that the captive_portal is broken after ESPhome version 2024.4.2. The esphome repo is recommended so the external is not required.
esphome:
name: presence-2
friendly_name: presence-2
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: <your key>
ota:
password: <your password>
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "presence-1"
password: ""
ap_timeout: 10s
captive_portal:
web_server:
port: 80
uart:
id: ld2420_uart
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 115200
parity: NONE
stop_bits: 1
# The LD2420 has 16 sense gates 0-15 and each gate detects 0.7 meters 15th gate = 9m
ld2420:
text_sensor:
- platform: ld2420
fw_version:
name: LD2420 Firmware
sensor:
- platform: ld2420
moving_distance:
name : Moving Distance
binary_sensor:
- platform: ld2420
has_target:
name: Presence
switch:
- platform: restart
name: Restart ESPHome Node
select:
- platform: ld2420
operating_mode:
name: Operating Mode
number:
- platform: ld2420
presence_timeout:
name: Detection Presence Timeout
min_gate_distance:
name: Detection Gate Minimum
max_gate_distance:
name: Detection Gate Maximum
# When gate select is defined the individual gate_n: threshold optionals are ignored.
# This mode offers a compressed UI.
# With gate_select still and move_threshold are required.
gate_select:
name: Select Gate to Set
still_threshold:
name: Set Still Threshold Value
move_threshold:
name: Set Move Threshold Value
gate_move_sensitivity:
name: Calibration Move Sensitivity Factor
gate_still_sensitivity:
name: Calibration Still Sensitivity Factor
gate_0:
move_threshold:
name: Gate 0 Move Threshold
still_threshold:
name: Gate 0 Still Threshold
gate_1:
move_threshold:
name: Gate 1 Move Threshold
still_threshold:
name: Gate 1 Still Threshold
gate_2:
move_threshold:
name: Gate 2 Move Threshold
still_threshold:
name: Gate 2 Still Threshold
gate_3:
move_threshold:
name: Gate 3 Move Threshold
still_threshold:
name: Gate 3 Still Threshold
gate_4:
move_threshold:
name: Gate 4 Move Threshold
still_threshold:
name: Gate 4 Still Threshold
gate_5:
move_threshold:
name: Gate 5 Move Threshold
still_threshold:
name: Gate 5 Still Threshold
gate_6:
move_threshold:
name: Gate 6 Move Threshold
still_threshold:
name: Gate 6 Still Threshold
gate_7:
move_threshold:
name: Gate 7 Move Threshold
still_threshold:
name: Gate 7 Still Threshold
gate_8:
move_threshold:
name: Gate 8 Move Threshold
still_threshold:
name: Gate 8 Still Threshold
gate_9:
move_threshold:
name: Gate 9 Move Threshold
still_threshold:
name: Gate 9 Still Threshold
gate_10:
move_threshold:
name: Gate 10 Move Threshold
still_threshold:
name: Gate 10 Still Threshold
gate_11:
move_threshold:
name: Gate 11 Move Threshold
still_threshold:
name: Gate 11 Still Threshold
gate_12:
move_threshold:
name: Gate 12 Move Threshold
still_threshold:
name: Gate 12 Still Threshold
gate_13:
move_threshold:
name: Gate 13 Move Threshold
still_threshold:
name: Gate 13 Still Threshold
gate_14:
move_threshold:
name: Gate 14 Move Threshold
still_threshold:
name: Gate 14 Still Threshold
gate_15:
move_threshold:
name: Gate 15 Move Threshold
still_threshold:
name: Gate 15 Still Threshold
button:
- platform: ld2420
apply_config:
name: Apply Config
factory_reset:
name: Factory Reset
restart_module:
name: Restart Module
revert_config:
name: Abort Edits
status_led:
pin: GPIO23
@latetedemelon can you share the BLE config specs you need, I can look at it and help out.
This is what I was looking to add:
esp32_ble_tracker:
scan_parameters:
continuous: false
on_scan_end:
- then:
- lambda: |-
ESP_LOGD("ble_auto", "The scan has ended!");
api:
on_client_connected:
- esp32_ble_tracker.start_scan:
continuous: true
on_client_disconnected:
- esp32_ble_tracker.stop_scan:
Ok, I will send you a replacement and do some work ups with the yaml.
I am a bit short on stock suddenly can it wait a week?
From: Rob @.> Sent: June 7, 2024 6:11 PM To: GelidusResearch/grps @.> Cc: GelidusResearch @.>; Comment @.> Subject: Re: [GelidusResearch/grps] ESPHome Flash (Issue #1)
This is what I was looking to add:
esp32_ble_tracker: scan_parameters: continuous: false on_scan_end:
api: on_client_connected:
— Reply to this email directly, view it on GitHub https://github.com/GelidusResearch/grps/issues/1#issuecomment-2155679459 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4UW4V7PQWWHYO4UIFTAB7DZGI4ZFAVCNFSM6AAAAABI7FTTMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGY3TSNBVHE . You are receiving this because you commented.Message ID: @.***>
I've attempted to flash an updated config with a BLE sensor and have had some issues so I'm trying to revert back to the standard configuration. However I'm continuing to have a problem. Can you please confirm that I should be using the following (from the readme)?