various incl zha quirks

This commit is contained in:
root
2024-12-13 14:33:44 +13:00
parent 20044d73ea
commit 70ed59fef8
34 changed files with 1432 additions and 902 deletions

View File

@@ -151,6 +151,8 @@ mqtt:
topic_prefix: ${mqtt_topic}/${devicename}
username: ${mqtt_username}
password: ${mqtt_password}
discovery: True # enable entity discovery (true is default)
discover_ip: True # enable device discovery (true is default)
#############################################
# i2c bus
@@ -169,14 +171,14 @@ mqtt:
# hardware on EPS32, but software, and can be glitchy on ESP8266
# https://esphome.io/components/uart.html
#############################################
#uart:
# id: ld2410_uart
# rx_pin: GPIO16 #For ESP32, you can use any pin, Recommend Use UART_2, Don't use UART_0, It might Cause Boot Fail or System Hang
# tx_pin: GPIO17 #For ESP32, you can use any pin, Recommend Use UART_2, Don't use UART_0, It might Cause Boot Fail or System Hang
# baud_rate: 256000 # default for LD2410 is 25600, 8, 0, NONE
# data_bits: 8
# stop_bits: 1
# parity: NONE
uart:
id: ld2410_uart
rx_pin: GPIO16 #For ESP32, you can use any pin, Recommend Use UART_2, Don't use UART_0, It might Cause Boot Fail or System Hang
tx_pin: GPIO17 #For ESP32, you can use any pin, Recommend Use UART_2, Don't use UART_0, It might Cause Boot Fail or System Hang
baud_rate: 256000 # default for LD2410 is 25600, 8, 0, NONE
data_bits: 8
stop_bits: 1
parity: NONE
#############################################
# Bluetooth
@@ -223,68 +225,68 @@ status_led:
# https://esphome.io/components/sensor/ld2410.html
# https://www.hlktech.net/index.php?id=988
#############################################
#ld2410:
# uart_id: ld2410_uart
ld2410:
uart_id: ld2410_uart
#############################################
# Number Sensors (custom component)
# refer https://github.com/ssieb/esphome_components/tree/master/components/serial
#############################################
#number:
# - platform: ld2410
# timeout:
# name: Timeout
# light_threshold:
# name: Light Threshold
# max_move_distance_gate:
# name: Max Move Distance Gate
# max_still_distance_gate:
# name: Max Still Distance Gate
# g0:
# move_threshold:
# name: g0 move threshold
# still_threshold:
# name: g0 still threshold
# g1:
# move_threshold:
# name: g1 move threshold
# still_threshold:
# name: g1 still threshold
# g2:
# move_threshold:
# name: g2 move threshold
# still_threshold:
# name: g2 still threshold
# g3:
# move_threshold:
# name: g3 move threshold
# still_threshold:
# name: g3 still threshold
# g4:
# move_threshold:
# name: g4 move threshold
# still_threshold:
# name: g4 still threshold
# g5:
# move_threshold:
# name: g5 move threshold
# still_threshold:
# name: g5 still threshold
# g6:
# move_threshold:
# name: g6 move threshold
# still_threshold:
# name: g6 still threshold
# g7:
# move_threshold:
# name: g7 move threshold
# still_threshold:
# name: g7 still threshold
# g8:
# move_threshold:
# name: g8 move threshold
# still_threshold:
# name: g8 still threshold
number:
- platform: ld2410
timeout:
name: Timeout
light_threshold:
name: Light Threshold
max_move_distance_gate:
name: Max Move Distance Gate
max_still_distance_gate:
name: Max Still Distance Gate
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
g2:
move_threshold:
name: g2 move threshold
still_threshold:
name: g2 still threshold
g3:
move_threshold:
name: g3 move threshold
still_threshold:
name: g3 still threshold
g4:
move_threshold:
name: g4 move threshold
still_threshold:
name: g4 still threshold
g5:
move_threshold:
name: g5 move threshold
still_threshold:
name: g5 still threshold
g6:
move_threshold:
name: g6 move threshold
still_threshold:
name: g6 still threshold
g7:
move_threshold:
name: g7 move threshold
still_threshold:
name: g7 still threshold
g8:
move_threshold:
name: g8 move threshold
still_threshold:
name: g8 still threshold
#The ld2410 select allows you to control your LD2410 Sensor.
#distance_resolution (Optional): Control the gates distance resolution. Can be 0.75m or 0.2m. Defaults to 0.75m. All options from Select.
@@ -292,16 +294,16 @@ status_led:
#light_function (Optional): If set, will affect the OUT pin value, based on light threshold. Can be off, low or above. Defaults to off. All options from Select.
#out_pin_level (Optional): Control OUT pin away value. Can be low or high. Defaults to low. All options from Select.
#ld2410_id (Optional, ID): Manually specify the ID for the LD2410 Sensor component if you are using multiple components.
#select:
# - platform: ld2410
# distance_resolution:
# name: ${friendly_name} LD2140 Distance Resolution
# baud_rate:
# name: ${friendly_name} LD2140 Baud Rate
# light_function:
# name: ${friendly_name} LD2140 Light Function
# out_pin_level:
# name: ${friendly_name} LD2140 Out Pin Level
select:
- platform: ld2410
distance_resolution:
name: ${friendly_name} LD2140 Distance Resolution
baud_rate:
name: ${friendly_name} LD2140 Baud Rate
light_function:
name: ${friendly_name} LD2140 Light Function
out_pin_level:
name: ${friendly_name} LD2140 Out Pin Level
#############################################
# General Sensors
@@ -339,71 +341,71 @@ sensor:
#The ld2410 sensor values
# - platform: ld2410
# light:
# name: Light
# 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
# g0:
# move_energy:
# name: g0 move energy
# still_energy:
# name: g0 still energy
# g1:
# move_energy:
# name: g1 move energy
# still_energy:
# name: g1 still energy
# g2:
# move_energy:
# name: g2 move energy
# still_energy:
# name: g2 still energy
# g3:
# move_energy:
# name: g3 move energy
# still_energy:
# name: g3 still energy
# g4:
# move_energy:
# name: g4 move energy
# still_energy:
# name: g4 still energy
# g5:
# move_energy:
# name: g5 move energy
# still_energy:
# name: g5 still energy
# g6:
# move_energy:
# name: g6 move energy
# still_energy:
# name: g6 still energy
# g7:
# move_energy:
# name: g7 move energy
# still_energy:
# name: g7 still energy
# g8:
# move_energy:
# name: g8 move energy
# still_energy:
# name: g8 still energy
- platform: ld2410
light:
name: Light
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
g0:
move_energy:
name: g0 move energy
still_energy:
name: g0 still energy
g1:
move_energy:
name: g1 move energy
still_energy:
name: g1 still energy
g2:
move_energy:
name: g2 move energy
still_energy:
name: g2 still energy
g3:
move_energy:
name: g3 move energy
still_energy:
name: g3 still energy
g4:
move_energy:
name: g4 move energy
still_energy:
name: g4 still energy
g5:
move_energy:
name: g5 move energy
still_energy:
name: g5 still energy
g6:
move_energy:
name: g6 move energy
still_energy:
name: g6 still energy
g7:
move_energy:
name: g7 move energy
still_energy:
name: g7 still energy
g8:
move_energy:
name: g8 move energy
still_energy:
name: g8 still energy
# The ld2410 switch allows you to control your LD2410 Sensor.
#Bluetooth switch is only useful of you have a B or C model
#switch:
# - platform: ld2410
# engineering_mode:
# name: ${friendly_name} LD2140 Engineering Mode
switch:
- platform: ld2410
engineering_mode:
name: ${friendly_name} LD2140 Engineering Mode
#bluetooth:
#name: ${friendly_name} LD2140 Control Bluetooth
@@ -438,15 +440,15 @@ sensor:
#############################################
binary_sensor:
# - platform: ld2410
# has_target:
# name: ${friendly_name} Presence
# has_moving_target:
# name: ${friendly_name} Moving Target
# has_still_target:
# name: ${friendly_name} Still Target
# out_pin_presence_status:
# name: ${friendly_name} LD2140 Out Pin Presence Status
- platform: ld2410
has_target:
name: ${friendly_name} Presence
has_moving_target:
name: ${friendly_name} Moving Target
has_still_target:
name: ${friendly_name} Still Target
out_pin_presence_status:
name: ${friendly_name} LD2140 Out Pin Presence Status
#Standard PIR Sensor
- platform: gpio
@@ -454,10 +456,10 @@ binary_sensor:
number: GPIO13
mode:
input: True
pullup: True
pullup: False
inverted: True
filters:
- delayed_on: 200ms
- delayed_on: 50ms
name: ${friendly_name} PIR Sensor
device_class: motion