update
This commit is contained in:
@@ -1,59 +1,48 @@
|
||||
|
||||
uart:
|
||||
- !include ../interfaces/uart_ld2420.yaml
|
||||
|
||||
external_components:
|
||||
- source: github://descipher/esphome@component.ld2420
|
||||
#github://pr#4847
|
||||
components: [ ld2420 ]
|
||||
refresh: 1days
|
||||
|
||||
# Example configuration entry
|
||||
ld2420:
|
||||
uart_id: uart_ld
|
||||
presence_time_window: 120s
|
||||
detection_gate_min: 1
|
||||
detection_gate_max: 12
|
||||
g0_move_threshold: 60000
|
||||
g0_still_threshold: 40000
|
||||
g1_move_threshold: 30000
|
||||
g1_still_threshold: 20000
|
||||
g2_move_threshold: 400
|
||||
g2_still_threshold: 200
|
||||
g3_move_threshold: 250
|
||||
g3_still_threshold: 200
|
||||
g4_move_threshold: 250
|
||||
g4_still_threshold: 200
|
||||
g5_move_threshold: 250
|
||||
g5_still_threshold: 200
|
||||
g6_move_threshold: 250
|
||||
g6_still_threshold: 200
|
||||
g7_move_threshold: 250
|
||||
g7_still_threshold: 150
|
||||
g8_move_threshold: 250
|
||||
g8_still_threshold: 150
|
||||
g9_move_threshold: 250
|
||||
g9_still_threshold: 100
|
||||
g10_move_threshold: 250
|
||||
g10_still_threshold: 100
|
||||
g11_move_threshold: 250
|
||||
g11_still_threshold: 100
|
||||
g12_move_threshold: 250
|
||||
g12_still_threshold: 100
|
||||
g13_move_threshold: 200
|
||||
g13_still_threshold: 100
|
||||
g14_move_threshold: 200
|
||||
g14_still_threshold: 100
|
||||
g15_move_threshold: 200
|
||||
g15_still_threshold: 100
|
||||
|
||||
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
|
||||
name: Presence
|
||||
|
||||
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
|
||||
# See "Number" section below for detail
|
||||
gate_select:
|
||||
name: Select Gate to Set
|
||||
still_threshold:
|
||||
name: Set Still Threshold Value
|
||||
move_threshold:
|
||||
name: Set Move Threshold Value
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
11
esphome/sensors/s3box_aht20.yaml
Normal file
11
esphome/sensors/s3box_aht20.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
sensor:
|
||||
- platform: aht10
|
||||
i2c_id: bus_b
|
||||
variant: AHT20
|
||||
temperature:
|
||||
name: "Temperature"
|
||||
id: temp_local
|
||||
humidity:
|
||||
name: "Humidity"
|
||||
update_interval: 60s
|
||||
29
esphome/sensors/s3box_battery.yaml
Normal file
29
esphome/sensors/s3box_battery.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
sensor:
|
||||
- platform: adc
|
||||
pin: ${pin_vbatt}
|
||||
name: "Battery voltage"
|
||||
id: battery_voltage
|
||||
unit_of_measurement: "V"
|
||||
accuracy_decimals: 1
|
||||
device_class: "voltage"
|
||||
entity_category: "diagnostic"
|
||||
disabled_by_default: true
|
||||
update_interval: 30s
|
||||
attenuation: auto
|
||||
filters:
|
||||
- multiply: 4.11
|
||||
|
||||
- platform: copy
|
||||
id: battery_percent
|
||||
source_id: battery_voltage
|
||||
name: "Battery level"
|
||||
unit_of_measurement: "%"
|
||||
accuracy_decimals: 0
|
||||
device_class: "battery"
|
||||
entity_category: "diagnostic"
|
||||
filters:
|
||||
- lambda: return (x - 2.7) / (4.2 - 2.7) * 100;
|
||||
- clamp:
|
||||
min_value: 0
|
||||
max_value: 100
|
||||
@@ -11,7 +11,7 @@ sensor:
|
||||
accuracy_decimals: 1
|
||||
temperature_offset: 1.5 °C
|
||||
address: 0x61
|
||||
update_interval: 1s
|
||||
update_interval: 5s
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
|
||||
Reference in New Issue
Block a user