mirror of
https://github.com/esphome/esphome.git
synced 2025-03-12 05:38:16 +00:00
[CI] Consolidate some tests (D) (#8189)
This commit is contained in:
parent
61ad2510fc
commit
693d813c4b
43
tests/components/dac7678/common.yaml
Normal file
43
tests/components/dac7678/common.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dac7678
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
dac7678:
|
||||||
|
address: 0x4A
|
||||||
|
id: dac7678_hub
|
||||||
|
internal_reference: true
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 0
|
||||||
|
id: dac7678_1_ch0
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 1
|
||||||
|
id: dac7678_1_ch1
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 2
|
||||||
|
id: dac7678_1_ch2
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 3
|
||||||
|
id: dac7678_1_ch3
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 4
|
||||||
|
id: dac7678_1_ch4
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 5
|
||||||
|
id: dac7678_1_ch5
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 6
|
||||||
|
id: dac7678_1_ch6
|
||||||
|
- platform: dac7678
|
||||||
|
dac7678_id: dac7678_hub
|
||||||
|
channel: 7
|
||||||
|
id: dac7678_1_ch7
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
@ -1,43 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dac7678
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
dac7678:
|
<<: !include common.yaml
|
||||||
address: 0x4A
|
|
||||||
id: dac7678_hub
|
|
||||||
internal_reference: true
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 0
|
|
||||||
id: dac7678_1_ch0
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 1
|
|
||||||
id: dac7678_1_ch1
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 2
|
|
||||||
id: dac7678_1_ch2
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 3
|
|
||||||
id: dac7678_1_ch3
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 4
|
|
||||||
id: dac7678_1_ch4
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 5
|
|
||||||
id: dac7678_1_ch5
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 6
|
|
||||||
id: dac7678_1_ch6
|
|
||||||
- platform: dac7678
|
|
||||||
dac7678_id: dac7678_hub
|
|
||||||
channel: 7
|
|
||||||
id: dac7678_1_ch7
|
|
||||||
|
12
tests/components/daikin/common.yaml
Normal file
12
tests/components/daikin/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: daikin
|
||||||
|
horizontal_default: middle
|
||||||
|
vertical_default: middle
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
@ -1,12 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: daikin
|
|
||||||
horizontal_default: middle
|
|
||||||
vertical_default: middle
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: daikin
|
|
||||||
horizontal_default: middle
|
|
||||||
vertical_default: middle
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
19
tests/components/daikin_arc/common.yaml
Normal file
19
tests/components/daikin_arc/common.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${tx_pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
id: tsvr
|
||||||
|
|
||||||
|
remote_receiver:
|
||||||
|
id: rcvr
|
||||||
|
pin:
|
||||||
|
number: ${rx_pin}
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
tolerance: 40%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_arc
|
||||||
|
name: Daikin AC
|
||||||
|
receiver_id: rcvr
|
@ -1,19 +1,5 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
tx_pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
rx_pin: GPIO4
|
||||||
id: tsvr
|
|
||||||
|
|
||||||
remote_receiver:
|
<<: !include common.yaml
|
||||||
id: rcvr
|
|
||||||
pin:
|
|
||||||
number: 27
|
|
||||||
inverted: true
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
tolerance: 40%
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: daikin_arc
|
|
||||||
name: "AC"
|
|
||||||
receiver_id: rcvr
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
tx_pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
rx_pin: GPIO4
|
||||||
id: tsvr
|
|
||||||
|
|
||||||
remote_receiver:
|
<<: !include common.yaml
|
||||||
id: rcvr
|
|
||||||
pin:
|
|
||||||
number: 2
|
|
||||||
inverted: true
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
tolerance: 40%
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: daikin_arc
|
|
||||||
name: "AC"
|
|
||||||
receiver_id: rcvr
|
|
||||||
|
7
tests/components/daikin_brc/common.yaml
Normal file
7
tests/components/daikin_brc/common.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: daikin_brc
|
||||||
|
name: Daikin_brc Climate
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: daikin_brc
|
|
||||||
name: Daikin_brc Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: daikin_brc
|
|
||||||
name: Daikin_brc Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: daikin_brc
|
|
||||||
name: Daikin_brc Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: daikin_brc
|
|
||||||
name: Daikin_brc Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: daikin_brc
|
|
||||||
name: Daikin_brc Climate
|
|
||||||
|
53
tests/components/daly_bms/common.yaml
Normal file
53
tests/components/daly_bms/common.yaml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_daly_bms
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
daly_bms:
|
||||||
|
update_interval: 20s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
charging_mos_enabled:
|
||||||
|
name: Charging MOS
|
||||||
|
discharging_mos_enabled:
|
||||||
|
name: Discharging MOS
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
voltage:
|
||||||
|
name: Battery Voltage
|
||||||
|
current:
|
||||||
|
name: Battery Current
|
||||||
|
battery_level:
|
||||||
|
name: Battery Level
|
||||||
|
max_cell_voltage:
|
||||||
|
name: Max Cell Voltage
|
||||||
|
max_cell_voltage_number:
|
||||||
|
name: Max Cell Voltage Number
|
||||||
|
min_cell_voltage:
|
||||||
|
name: Min Cell Voltage
|
||||||
|
min_cell_voltage_number:
|
||||||
|
name: Min Cell Voltage Number
|
||||||
|
max_temperature:
|
||||||
|
name: Max Temperature
|
||||||
|
max_temperature_probe_number:
|
||||||
|
name: Max Temperature Probe Number
|
||||||
|
min_temperature:
|
||||||
|
name: Min Temperature
|
||||||
|
min_temperature_probe_number:
|
||||||
|
name: Min Temperature Probe Number
|
||||||
|
remaining_capacity:
|
||||||
|
name: Remaining Capacity
|
||||||
|
cells_number:
|
||||||
|
name: Cells Number
|
||||||
|
temperature_1:
|
||||||
|
name: Temperature 1
|
||||||
|
temperature_2:
|
||||||
|
name: Temperature 2
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: daly_bms
|
||||||
|
status:
|
||||||
|
name: BMS Status
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO7
|
||||||
tx_pin:
|
rx_pin: GPIO8
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO12
|
||||||
tx_pin:
|
rx_pin: GPIO14
|
||||||
number: 17
|
|
||||||
rx_pin:
|
|
||||||
number: 16
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO1
|
||||||
tx_pin:
|
rx_pin: GPIO3
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
@ -1,55 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_daly_bms
|
tx_pin: GPIO4
|
||||||
tx_pin:
|
rx_pin: GPIO5
|
||||||
number: 4
|
|
||||||
rx_pin:
|
|
||||||
number: 5
|
|
||||||
baud_rate: 4800
|
|
||||||
|
|
||||||
daly_bms:
|
<<: !include common.yaml
|
||||||
update_interval: 20s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
|
7
tests/components/deep_sleep/common-esp32.yaml
Normal file
7
tests/components/deep_sleep/common-esp32.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
deep_sleep:
|
||||||
|
run_duration:
|
||||||
|
default: 10s
|
||||||
|
gpio_wakeup_reason: 30s
|
||||||
|
sleep_duration: 50s
|
||||||
|
wakeup_pin: ${wakeup_pin}
|
||||||
|
wakeup_pin_mode: INVERT_WAKEUP
|
6
tests/components/deep_sleep/common.yaml
Normal file
6
tests/components/deep_sleep/common.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- deep_sleep.prevent
|
||||||
|
- delay: 1s
|
||||||
|
- deep_sleep.allow
|
@ -1,14 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
wakeup_pin: GPIO4
|
||||||
then:
|
|
||||||
- deep_sleep.prevent
|
|
||||||
- delay: 1s
|
|
||||||
- deep_sleep.allow
|
|
||||||
|
|
||||||
deep_sleep:
|
<<: !include common.yaml
|
||||||
run_duration:
|
<<: !include common-esp32.yaml
|
||||||
default: 10s
|
|
||||||
gpio_wakeup_reason: 30s
|
|
||||||
sleep_duration: 50s
|
|
||||||
wakeup_pin: 4
|
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
wakeup_pin: GPIO4
|
||||||
then:
|
|
||||||
- deep_sleep.prevent
|
|
||||||
- delay: 1s
|
|
||||||
- deep_sleep.allow
|
|
||||||
|
|
||||||
deep_sleep:
|
<<: !include common.yaml
|
||||||
run_duration:
|
<<: !include common-esp32.yaml
|
||||||
default: 10s
|
|
||||||
gpio_wakeup_reason: 30s
|
|
||||||
sleep_duration: 50s
|
|
||||||
wakeup_pin: 4
|
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
wakeup_pin: GPIO4
|
||||||
then:
|
|
||||||
- deep_sleep.prevent
|
|
||||||
- delay: 1s
|
|
||||||
- deep_sleep.allow
|
|
||||||
|
|
||||||
deep_sleep:
|
<<: !include common.yaml
|
||||||
run_duration:
|
<<: !include common-esp32.yaml
|
||||||
default: 10s
|
|
||||||
gpio_wakeup_reason: 30s
|
|
||||||
sleep_duration: 50s
|
|
||||||
wakeup_pin: 4
|
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
wakeup_pin: GPIO4
|
||||||
then:
|
|
||||||
- deep_sleep.prevent
|
|
||||||
- delay: 1s
|
|
||||||
- deep_sleep.allow
|
|
||||||
|
|
||||||
deep_sleep:
|
<<: !include common.yaml
|
||||||
run_duration:
|
<<: !include common-esp32.yaml
|
||||||
default: 10s
|
|
||||||
gpio_wakeup_reason: 30s
|
|
||||||
sleep_duration: 50s
|
|
||||||
wakeup_pin: 4
|
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
esphome:
|
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- deep_sleep.prevent
|
|
||||||
- delay: 1s
|
|
||||||
- deep_sleep.allow
|
|
||||||
|
|
||||||
deep_sleep:
|
deep_sleep:
|
||||||
run_duration: 10s
|
run_duration: 10s
|
||||||
sleep_duration: 50s
|
sleep_duration: 50s
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
7
tests/components/delonghi/common.yaml
Normal file
7
tests/components/delonghi/common.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: delonghi
|
||||||
|
name: Delonghi Climate
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: delonghi
|
|
||||||
name: Delonghi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: delonghi
|
|
||||||
name: Delonghi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: delonghi
|
|
||||||
name: Delonghi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: delonghi
|
|
||||||
name: Delonghi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: delonghi
|
|
||||||
name: Delonghi Climate
|
|
||||||
|
42
tests/components/dfplayer/common.yaml
Normal file
42
tests/components/dfplayer/common.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfplayer.play: 5
|
||||||
|
- dfplayer.play:
|
||||||
|
file: 4
|
||||||
|
loop: true
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
file: 3
|
||||||
|
- dfplayer.play_folder:
|
||||||
|
folder: 1
|
||||||
|
loop: true
|
||||||
|
- dfplayer.set_device:
|
||||||
|
device: TF_CARD
|
||||||
|
- dfplayer.set_volume: 5
|
||||||
|
- dfplayer.set_eq: ROCK
|
||||||
|
- dfplayer.play_next
|
||||||
|
- dfplayer.play_previous
|
||||||
|
- dfplayer.reset
|
||||||
|
- dfplayer.start
|
||||||
|
- dfplayer.pause
|
||||||
|
- dfplayer.stop
|
||||||
|
- dfplayer.random
|
||||||
|
- dfplayer.volume_up
|
||||||
|
- dfplayer.volume_down
|
||||||
|
- dfplayer.sleep
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfplayer
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfplayer:
|
||||||
|
on_finished_playback:
|
||||||
|
then:
|
||||||
|
if:
|
||||||
|
condition:
|
||||||
|
not: dfplayer.is_playing
|
||||||
|
then:
|
||||||
|
logger.log: Playback finished event
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 17
|
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO7
|
||||||
then:
|
rx_pin: GPIO8
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO7
|
||||||
then:
|
rx_pin: GPIO8
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 17
|
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO1
|
||||||
then:
|
rx_pin: GPIO3
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
@ -1,42 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- dfplayer.play: 5
|
|
||||||
- dfplayer.play:
|
|
||||||
file: 4
|
|
||||||
loop: true
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
file: 3
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: 1
|
|
||||||
loop: true
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
- dfplayer.set_volume: 5
|
|
||||||
- dfplayer.set_eq: ROCK
|
|
||||||
- dfplayer.play_next
|
|
||||||
- dfplayer.play_previous
|
|
||||||
- dfplayer.reset
|
|
||||||
- dfplayer.start
|
|
||||||
- dfplayer.pause
|
|
||||||
- dfplayer.stop
|
|
||||||
- dfplayer.random
|
|
||||||
- dfplayer.volume_up
|
|
||||||
- dfplayer.volume_down
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfplayer
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
|
28
tests/components/dfrobot_sen0395/common.yaml
Normal file
28
tests/components/dfrobot_sen0395/common.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- dfrobot_sen0395.settings:
|
||||||
|
id: mmwave
|
||||||
|
factory_reset: true
|
||||||
|
detection_segments:
|
||||||
|
- [0cm, 5m]
|
||||||
|
- 600cm
|
||||||
|
- !lambda "return 7;"
|
||||||
|
output_latency:
|
||||||
|
delay_after_detect: 0s
|
||||||
|
delay_after_disappear: 0s
|
||||||
|
sensitivity: 6
|
||||||
|
- dfrobot_sen0395.reset
|
||||||
|
|
||||||
|
uart:
|
||||||
|
- id: uart_dfrobot_sen0395
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dfrobot_sen0395:
|
||||||
|
- id: mmwave
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: dfrobot_sen0395
|
||||||
|
id: mmwave_detected
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 17
|
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO7
|
||||||
then:
|
rx_pin: GPIO8
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO7
|
||||||
then:
|
rx_pin: GPIO8
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 17
|
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO1
|
||||||
then:
|
rx_pin: GPIO3
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
@ -1,28 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- dfrobot_sen0395.settings:
|
|
||||||
id: mmwave
|
|
||||||
factory_reset: true
|
|
||||||
detection_segments:
|
|
||||||
- [0cm, 5m]
|
|
||||||
- 600cm
|
|
||||||
- !lambda "return 7;"
|
|
||||||
output_latency:
|
|
||||||
delay_after_detect: 0s
|
|
||||||
delay_after_disappear: 0s
|
|
||||||
sensitivity: 6
|
|
||||||
- dfrobot_sen0395.reset
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- id: uart_dfrobot_sen0395
|
|
||||||
tx_pin: 4
|
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dfrobot_sen0395:
|
|
||||||
- id: mmwave
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: dfrobot_sen0395
|
|
||||||
id: mmwave_detected
|
|
||||||
|
12
tests/components/dht12/common.yaml
Normal file
12
tests/components/dht12/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dht12
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht12
|
||||||
|
temperature:
|
||||||
|
name: DHT12 Temperature
|
||||||
|
humidity:
|
||||||
|
name: DHT12 Humidity
|
||||||
|
update_interval: 15s
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dht12
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dht12
|
|
||||||
temperature:
|
|
||||||
name: DHT12 Temperature
|
|
||||||
humidity:
|
|
||||||
name: DHT12 Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
12
tests/components/dps310/common.yaml
Normal file
12
tests/components/dps310/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_dps310
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dps310
|
||||||
|
temperature:
|
||||||
|
name: DPS310 Temperature
|
||||||
|
pressure:
|
||||||
|
name: DPS310 Pressure
|
||||||
|
address: 0x77
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_dps310
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: dps310
|
|
||||||
temperature:
|
|
||||||
name: DPS310 Temperature
|
|
||||||
pressure:
|
|
||||||
name: DPS310 Pressure
|
|
||||||
address: 0x77
|
|
||||||
|
9
tests/components/ds1307/common.yaml
Normal file
9
tests/components/ds1307/common.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_ds1307
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: ds1307_time
|
||||||
|
update_interval: never
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ds1307
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
time:
|
<<: !include common.yaml
|
||||||
- platform: ds1307
|
|
||||||
id: ds1307_time
|
|
||||||
update_interval: never
|
|
||||||
|
12
tests/components/dsmr/common.yaml
Normal file
12
tests/components/dsmr/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_dsmr
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
dsmr:
|
||||||
|
decryption_key: 00112233445566778899aabbccddeeff
|
||||||
|
max_telegram_length: 1000
|
||||||
|
request_pin: ${request_pin}
|
||||||
|
request_interval: 20s
|
||||||
|
receive_timeout: 100ms
|
@ -1,12 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_dsmr
|
tx_pin: GPIO12
|
||||||
tx_pin: 17
|
rx_pin: GPIO14
|
||||||
rx_pin: 16
|
request_pin: GPIO15
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dsmr:
|
<<: !include common.yaml
|
||||||
decryption_key: 00112233445566778899aabbccddeeff
|
|
||||||
max_telegram_length: 1000
|
|
||||||
request_pin: 15
|
|
||||||
request_interval: 20s
|
|
||||||
receive_timeout: 100ms
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_dsmr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
request_pin: GPIO6
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dsmr:
|
<<: !include common.yaml
|
||||||
decryption_key: 00112233445566778899aabbccddeeff
|
|
||||||
max_telegram_length: 1000
|
|
||||||
request_pin: 6
|
|
||||||
request_interval: 20s
|
|
||||||
receive_timeout: 100ms
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_dsmr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
request_pin: GPIO15
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dsmr:
|
<<: !include common.yaml
|
||||||
decryption_key: 00112233445566778899aabbccddeeff
|
|
||||||
max_telegram_length: 1000
|
|
||||||
request_pin: 15
|
|
||||||
request_interval: 20s
|
|
||||||
receive_timeout: 100ms
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_dsmr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
request_pin: GPIO6
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
dsmr:
|
<<: !include common.yaml
|
||||||
decryption_key: 00112233445566778899aabbccddeeff
|
|
||||||
max_telegram_length: 1000
|
|
||||||
request_pin: 6
|
|
||||||
request_interval: 20s
|
|
||||||
receive_timeout: 100ms
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user