mirror of
https://github.com/esphome/esphome.git
synced 2025-03-12 13:48:14 +00:00
[CI] Consolidate some tests (K, L) (#8201)
This commit is contained in:
parent
f8fae676b1
commit
4273449003
28
tests/components/key_collector/common.yaml
Normal file
28
tests/components/key_collector/common.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: ${pin_r0}
|
||||
- pin: ${pin_r1}
|
||||
columns:
|
||||
- pin: ${pin_c0}
|
||||
- pin: ${pin_c1}
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 12
|
||||
- pin: 13
|
||||
columns:
|
||||
- pin: 14
|
||||
- pin: 15
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO12
|
||||
pin_r1: GPIO13
|
||||
pin_c0: GPIO14
|
||||
pin_c1: GPIO15
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 1
|
||||
- pin: 2
|
||||
columns:
|
||||
- pin: 3
|
||||
- pin: 4
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO2
|
||||
pin_r1: GPIO3
|
||||
pin_c0: GPIO4
|
||||
pin_c1: GPIO5
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 1
|
||||
- pin: 2
|
||||
columns:
|
||||
- pin: 3
|
||||
- pin: 4
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO2
|
||||
pin_r1: GPIO3
|
||||
pin_c0: GPIO4
|
||||
pin_c1: GPIO5
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 12
|
||||
- pin: 13
|
||||
columns:
|
||||
- pin: 14
|
||||
- pin: 15
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO12
|
||||
pin_r1: GPIO13
|
||||
pin_c0: GPIO14
|
||||
pin_c1: GPIO15
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 12
|
||||
- pin: 13
|
||||
columns:
|
||||
- pin: 14
|
||||
- pin: 15
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO12
|
||||
pin_r1: GPIO13
|
||||
pin_c0: GPIO14
|
||||
pin_c1: GPIO15
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,28 +1,7 @@
|
||||
matrix_keypad:
|
||||
id: keypad
|
||||
rows:
|
||||
- pin: 1
|
||||
- pin: 2
|
||||
columns:
|
||||
- pin: 3
|
||||
- pin: 4
|
||||
keys: "1234"
|
||||
has_pulldowns: true
|
||||
substitutions:
|
||||
pin_r0: GPIO2
|
||||
pin_r1: GPIO3
|
||||
pin_c0: GPIO4
|
||||
pin_c1: GPIO5
|
||||
|
||||
key_collector:
|
||||
- id: reader
|
||||
source_id: keypad
|
||||
min_length: 4
|
||||
max_length: 4
|
||||
on_progress:
|
||||
- logger.log:
|
||||
format: "input progress: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
on_result:
|
||||
- logger.log:
|
||||
format: "input result: '%s', started by '%c', ended by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)"]
|
||||
on_timeout:
|
||||
- logger.log:
|
||||
format: "input timeout: '%s', started by '%c'"
|
||||
args: ['x.c_str()', "(start == 0 ? '~' : start)"]
|
||||
<<: !include common.yaml
|
||||
|
12
tests/components/kmeteriso/common.yaml
Normal file
12
tests/components/kmeteriso/common.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_kmeteriso
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: kmeteriso
|
||||
temperature:
|
||||
name: Outside Temperature
|
||||
internal_temperature:
|
||||
name: Internal Temperature
|
||||
update_interval: 15s
|
||||
<<: !include common.yaml
|
||||
|
15
tests/components/kuntze/common.yaml
Normal file
15
tests/components/kuntze/common.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
flow_control_pin: ${flow_control_pin}
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
flow_control_pin: GPIO13
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 13
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
flow_control_pin: GPIO3
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 3
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
flow_control_pin: GPIO3
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 3
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
flow_control_pin: GPIO13
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 13
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
flow_control_pin: GPIO13
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 13
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
@ -1,15 +1,6 @@
|
||||
uart:
|
||||
- id: uart_kuntze
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
flow_control_pin: GPIO3
|
||||
|
||||
modbus:
|
||||
flow_control_pin: 3
|
||||
|
||||
sensor:
|
||||
- platform: kuntze
|
||||
ph:
|
||||
name: Kuntze pH
|
||||
temperature:
|
||||
name: Kuntze temperature
|
||||
<<: !include common.yaml
|
||||
|
13
tests/components/lcd_gpio/common.yaml
Normal file
13
tests/components/lcd_gpio/common.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: ${d0_pin}
|
||||
- number: ${d1_pin}
|
||||
- number: ${d2_pin}
|
||||
- number: ${d3_pin}
|
||||
enable_pin: ${enable_pin}
|
||||
rs_pin: ${rs_pin}
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,13 +1,9 @@
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
<<: !include common.yaml
|
||||
|
118
tests/components/lcd_menu/common.yaml
Normal file
118
tests/components/lcd_menu/common.yaml
Normal file
@ -0,0 +1,118 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: ${d0_pin}
|
||||
- number: ${d1_pin}
|
||||
- number: ${d2_pin}
|
||||
- number: ${d3_pin}
|
||||
enable_pin: ${enable_pin}
|
||||
rs_pin: ${rs_pin}
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO12
|
||||
d1_pin: GPIO13
|
||||
d2_pin: GPIO14
|
||||
d3_pin: GPIO15
|
||||
enable_pin: GPIO16
|
||||
rs_pin: GPIO5
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 12
|
||||
- number: 13
|
||||
- number: 14
|
||||
- number: 15
|
||||
enable_pin: 16
|
||||
rs_pin: 5
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
@ -1,118 +1,9 @@
|
||||
number:
|
||||
- platform: template
|
||||
id: test_number
|
||||
min_value: 0
|
||||
step: 1
|
||||
max_value: 10
|
||||
optimistic: true
|
||||
substitutions:
|
||||
d0_pin: GPIO1
|
||||
d1_pin: GPIO2
|
||||
d2_pin: GPIO3
|
||||
d3_pin: GPIO4
|
||||
enable_pin: GPIO5
|
||||
rs_pin: GPIO6
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: Template Switch
|
||||
id: my_switch
|
||||
optimistic: true
|
||||
|
||||
display:
|
||||
- platform: lcd_gpio
|
||||
id: my_lcd_gpio
|
||||
dimensions: 18x4
|
||||
data_pins:
|
||||
- number: 1
|
||||
- number: 2
|
||||
- number: 3
|
||||
- number: 4
|
||||
enable_pin: 5
|
||||
rs_pin: 6
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
|
||||
lcd_menu:
|
||||
id: test_lcd_menu
|
||||
display_id: my_lcd_gpio
|
||||
mark_back: 0x5e
|
||||
mark_selected: 0x3e
|
||||
mark_editing: 0x2a
|
||||
mark_submenu: 0x7e
|
||||
active: false
|
||||
mode: rotary
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: label
|
||||
- type: menu
|
||||
text: Submenu 1
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: menu
|
||||
text: Submenu 21
|
||||
items:
|
||||
- type: back
|
||||
text: Back
|
||||
- type: command
|
||||
text: Show Main
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.show_main: test_lcd_menu
|
||||
- type: select
|
||||
text: Enum Item
|
||||
immediate_edit: true
|
||||
select: test_select
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: number
|
||||
text: Number
|
||||
number: test_number
|
||||
on_enter:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_leave:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
||||
- type: command
|
||||
text: Hide
|
||||
on_value:
|
||||
then:
|
||||
- display_menu.hide: test_lcd_menu
|
||||
- type: switch
|
||||
text: Switch
|
||||
switch: my_switch
|
||||
on_text: Bright
|
||||
off_text: Dark
|
||||
immediate_edit: false
|
||||
on_value:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
||||
- type: custom
|
||||
text: !lambda 'return "Custom";'
|
||||
value_lambda: 'return "Val";'
|
||||
on_next:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
||||
on_prev:
|
||||
then:
|
||||
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
||||
<<: !include common.yaml
|
||||
|
22
tests/components/lcd_pcf8574/common.yaml
Normal file
22
tests/components/lcd_pcf8574/common.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_lcd_pcf8574
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
display:
|
||||
- platform: lcd_pcf8574
|
||||
dimensions: 18x4
|
||||
address: 0x3F
|
||||
user_characters:
|
||||
- position: 0
|
||||
data:
|
||||
- 0b00000
|
||||
- 0b01010
|
||||
- 0b00000
|
||||
- 0b00100
|
||||
- 0b00100
|
||||
- 0b10001
|
||||
- 0b01110
|
||||
- 0b00000
|
||||
lambda: |-
|
||||
it.print("Hello World!");
|
||||
<<: !include common.yaml
|
||||
|
169
tests/components/ld2410/common.yaml
Normal file
169
tests/components/ld2410/common.yaml
Normal file
@ -0,0 +1,169 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
@ -1,169 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2410
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2410:
|
||||
id: my_ld2410
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2410
|
||||
has_target:
|
||||
name: presence
|
||||
has_moving_target:
|
||||
name: movement
|
||||
has_still_target:
|
||||
name: still
|
||||
out_pin_presence_status:
|
||||
name: out pin presence status
|
||||
|
||||
button:
|
||||
- platform: ld2410
|
||||
factory_reset:
|
||||
name: factory reset
|
||||
restart:
|
||||
name: restart
|
||||
query_params:
|
||||
name: query params
|
||||
|
||||
number:
|
||||
- platform: ld2410
|
||||
light_threshold:
|
||||
name: light threshold
|
||||
timeout:
|
||||
name: timeout
|
||||
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
|
||||
|
||||
select:
|
||||
- platform: ld2410
|
||||
distance_resolution:
|
||||
name: distance resolution
|
||||
baud_rate:
|
||||
name: baud rate
|
||||
light_function:
|
||||
name: light function
|
||||
out_pin_level:
|
||||
name: out ping level
|
||||
|
||||
sensor:
|
||||
- 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: Distance Detection
|
||||
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
|
||||
|
||||
switch:
|
||||
- platform: ld2410
|
||||
engineering_mode:
|
||||
name: control ld2410 engineering mode
|
||||
bluetooth:
|
||||
name: control ld2410 bluetooth
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2410
|
||||
version:
|
||||
name: presenece sensor version
|
||||
mac_address:
|
||||
name: presenece sensor mac address
|
||||
<<: !include common.yaml
|
||||
|
132
tests/components/ld2420/common.yaml
Normal file
132
tests/components/ld2420/common.yaml
Normal file
@ -0,0 +1,132 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
@ -1,132 +1,5 @@
|
||||
uart:
|
||||
- id: uart_ld2420
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
ld2420:
|
||||
id: my_ld2420
|
||||
|
||||
binary_sensor:
|
||||
- platform: ld2420
|
||||
has_target:
|
||||
name: Presence
|
||||
|
||||
button:
|
||||
- platform: ld2420
|
||||
apply_config:
|
||||
name: Apply Config
|
||||
factory_reset:
|
||||
name: Factory Reset
|
||||
restart_module:
|
||||
name: Restart Module
|
||||
revert_config:
|
||||
name: Undo Edits
|
||||
|
||||
number:
|
||||
- platform: ld2420
|
||||
presence_timeout:
|
||||
name: Detection Presence Timeout
|
||||
min_gate_distance:
|
||||
name: Detection Gate Minimum
|
||||
max_gate_distance:
|
||||
name: Detection Gate Maximum
|
||||
gate_move_sensitivity:
|
||||
name: Move Calibration Sensitivity Factor
|
||||
gate_still_sensitivity:
|
||||
name: Still Calibration 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
|
||||
|
||||
select:
|
||||
- platform: ld2420
|
||||
operating_mode:
|
||||
name: Operating Mode
|
||||
|
||||
sensor:
|
||||
- platform: ld2420
|
||||
moving_distance:
|
||||
name: "Moving distance (cm)"
|
||||
|
||||
text_sensor:
|
||||
- platform: ld2420
|
||||
fw_version:
|
||||
name: LD2420 Firmware
|
||||
<<: !include common.yaml
|
||||
|
24
tests/components/lilygo_t5_47/common.yaml
Normal file
24
tests/components/lilygo_t5_47/common.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${reset_pin}
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 14
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 6
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 6
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 13
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 14
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
interrupt_pin: GPIO12
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 12
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,24 +1,7 @@
|
||||
i2c:
|
||||
- id: i2c_lilygo_t5_47
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: lilygo_t5_47
|
||||
id: lilygo_touchscreen
|
||||
interrupt_pin: 6
|
||||
display: ssd1306_display
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
38
tests/components/ltr390/common.yaml
Normal file
38
tests/components/ltr390/common.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain:
|
||||
ambient_light: X9
|
||||
uv: X3
|
||||
resolution:
|
||||
ambient_light: 18
|
||||
uv: 13
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
@ -1,38 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain:
|
||||
ambient_light: X9
|
||||
uv: X3
|
||||
resolution:
|
||||
ambient_light: 18
|
||||
uv: 13
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,22 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain:
|
||||
ambient_light: X9
|
||||
uv: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,20 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ltr390
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ltr390
|
||||
uv:
|
||||
name: LTR390 UV
|
||||
uv_index:
|
||||
name: LTR390 UVI
|
||||
light:
|
||||
name: LTR390 Light
|
||||
ambient_light:
|
||||
name: LTR390 ALS
|
||||
gain: X3
|
||||
resolution: 18
|
||||
window_correction_factor: 1.0
|
||||
address: 0x53
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user