mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Add some components to the new testing framework (C) (#6174)
This commit is contained in:
parent
a91937dca5
commit
3eaf59cc5a
97 changed files with 2217 additions and 0 deletions
46
tests/components/canbus/test.esp32-c3-idf.yaml
Normal file
46
tests/components/canbus/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
canbus:
|
||||
- platform: esp32_can
|
||||
id: esp32_internal_can
|
||||
rx_pin: 4
|
||||
tx_pin: 5
|
||||
can_id: 4
|
||||
bit_rate: 50kbps
|
||||
on_frame:
|
||||
- can_id: 500
|
||||
then:
|
||||
- lambda: |-
|
||||
std::string b(x.begin(), x.end());
|
||||
ESP_LOGD("canid 500", "%s", b.c_str());
|
||||
- can_id: 23
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: "return x[0] == 0x11;"
|
||||
then:
|
||||
logger.log: Truth
|
||||
- can_id: 0b00000000000000000000001000000
|
||||
can_id_mask: 0b11111000000000011111111000000
|
||||
use_extended_id: true
|
||||
then:
|
||||
- lambda: |-
|
||||
auto pdo_id = can_id >> 14;
|
||||
switch (pdo_id)
|
||||
{
|
||||
case 117:
|
||||
ESP_LOGD("canbus", "exhaust_fan_duty");
|
||||
break;
|
||||
case 118:
|
||||
ESP_LOGD("canbus", "supply_fan_duty");
|
||||
break;
|
||||
case 119:
|
||||
ESP_LOGD("canbus", "supply_fan_flow");
|
||||
break;
|
||||
}
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Canbus Actions
|
||||
on_press:
|
||||
- canbus.send: "abc"
|
||||
- canbus.send: [0, 1, 2]
|
||||
- canbus.send: !lambda return {0, 1, 2};
|
46
tests/components/canbus/test.esp32-c3.yaml
Normal file
46
tests/components/canbus/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
canbus:
|
||||
- platform: esp32_can
|
||||
id: esp32_internal_can
|
||||
rx_pin: 4
|
||||
tx_pin: 5
|
||||
can_id: 4
|
||||
bit_rate: 50kbps
|
||||
on_frame:
|
||||
- can_id: 500
|
||||
then:
|
||||
- lambda: |-
|
||||
std::string b(x.begin(), x.end());
|
||||
ESP_LOGD("canid 500", "%s", b.c_str());
|
||||
- can_id: 23
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: "return x[0] == 0x11;"
|
||||
then:
|
||||
logger.log: Truth
|
||||
- can_id: 0b00000000000000000000001000000
|
||||
can_id_mask: 0b11111000000000011111111000000
|
||||
use_extended_id: true
|
||||
then:
|
||||
- lambda: |-
|
||||
auto pdo_id = can_id >> 14;
|
||||
switch (pdo_id)
|
||||
{
|
||||
case 117:
|
||||
ESP_LOGD("canbus", "exhaust_fan_duty");
|
||||
break;
|
||||
case 118:
|
||||
ESP_LOGD("canbus", "supply_fan_duty");
|
||||
break;
|
||||
case 119:
|
||||
ESP_LOGD("canbus", "supply_fan_flow");
|
||||
break;
|
||||
}
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Canbus Actions
|
||||
on_press:
|
||||
- canbus.send: "abc"
|
||||
- canbus.send: [0, 1, 2]
|
||||
- canbus.send: !lambda return {0, 1, 2};
|
46
tests/components/canbus/test.esp32-idf.yaml
Normal file
46
tests/components/canbus/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
canbus:
|
||||
- platform: esp32_can
|
||||
id: esp32_internal_can
|
||||
rx_pin: 4
|
||||
tx_pin: 5
|
||||
can_id: 4
|
||||
bit_rate: 50kbps
|
||||
on_frame:
|
||||
- can_id: 500
|
||||
then:
|
||||
- lambda: |-
|
||||
std::string b(x.begin(), x.end());
|
||||
ESP_LOGD("canid 500", "%s", b.c_str());
|
||||
- can_id: 23
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: "return x[0] == 0x11;"
|
||||
then:
|
||||
logger.log: Truth
|
||||
- can_id: 0b00000000000000000000001000000
|
||||
can_id_mask: 0b11111000000000011111111000000
|
||||
use_extended_id: true
|
||||
then:
|
||||
- lambda: |-
|
||||
auto pdo_id = can_id >> 14;
|
||||
switch (pdo_id)
|
||||
{
|
||||
case 117:
|
||||
ESP_LOGD("canbus", "exhaust_fan_duty");
|
||||
break;
|
||||
case 118:
|
||||
ESP_LOGD("canbus", "supply_fan_duty");
|
||||
break;
|
||||
case 119:
|
||||
ESP_LOGD("canbus", "supply_fan_flow");
|
||||
break;
|
||||
}
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Canbus Actions
|
||||
on_press:
|
||||
- canbus.send: "abc"
|
||||
- canbus.send: [0, 1, 2]
|
||||
- canbus.send: !lambda return {0, 1, 2};
|
46
tests/components/canbus/test.esp32.yaml
Normal file
46
tests/components/canbus/test.esp32.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
canbus:
|
||||
- platform: esp32_can
|
||||
id: esp32_internal_can
|
||||
rx_pin: 4
|
||||
tx_pin: 5
|
||||
can_id: 4
|
||||
bit_rate: 50kbps
|
||||
on_frame:
|
||||
- can_id: 500
|
||||
then:
|
||||
- lambda: |-
|
||||
std::string b(x.begin(), x.end());
|
||||
ESP_LOGD("canid 500", "%s", b.c_str());
|
||||
- can_id: 23
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
lambda: "return x[0] == 0x11;"
|
||||
then:
|
||||
logger.log: Truth
|
||||
- can_id: 0b00000000000000000000001000000
|
||||
can_id_mask: 0b11111000000000011111111000000
|
||||
use_extended_id: true
|
||||
then:
|
||||
- lambda: |-
|
||||
auto pdo_id = can_id >> 14;
|
||||
switch (pdo_id)
|
||||
{
|
||||
case 117:
|
||||
ESP_LOGD("canbus", "exhaust_fan_duty");
|
||||
break;
|
||||
case 118:
|
||||
ESP_LOGD("canbus", "supply_fan_duty");
|
||||
break;
|
||||
case 119:
|
||||
ESP_LOGD("canbus", "supply_fan_flow");
|
||||
break;
|
||||
}
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Canbus Actions
|
||||
on_press:
|
||||
- canbus.send: "abc"
|
||||
- canbus.send: [0, 1, 2]
|
||||
- canbus.send: !lambda return {0, 1, 2};
|
11
tests/components/cap1188/test.esp32-c3-idf.yaml
Normal file
11
tests/components/cap1188/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
11
tests/components/cap1188/test.esp32-c3.yaml
Normal file
11
tests/components/cap1188/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
11
tests/components/cap1188/test.esp32-idf.yaml
Normal file
11
tests/components/cap1188/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
11
tests/components/cap1188/test.esp32.yaml
Normal file
11
tests/components/cap1188/test.esp32.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
11
tests/components/cap1188/test.esp8266.yaml
Normal file
11
tests/components/cap1188/test.esp8266.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
11
tests/components/cap1188/test.rp2040.yaml
Normal file
11
tests/components/cap1188/test.rp2040.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
5
tests/components/captive_portal/test.esp32-c3-idf.yaml
Normal file
5
tests/components/captive_portal/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
captive_portal:
|
5
tests/components/captive_portal/test.esp32-c3.yaml
Normal file
5
tests/components/captive_portal/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
captive_portal:
|
5
tests/components/captive_portal/test.esp32-idf.yaml
Normal file
5
tests/components/captive_portal/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
captive_portal:
|
5
tests/components/captive_portal/test.esp32.yaml
Normal file
5
tests/components/captive_portal/test.esp32.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
captive_portal:
|
5
tests/components/captive_portal/test.esp8266.yaml
Normal file
5
tests/components/captive_portal/test.esp8266.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
captive_portal:
|
13
tests/components/ccs811/test.esp32-c3-idf.yaml
Normal file
13
tests/components/ccs811/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
13
tests/components/ccs811/test.esp32-c3.yaml
Normal file
13
tests/components/ccs811/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
13
tests/components/ccs811/test.esp32-idf.yaml
Normal file
13
tests/components/ccs811/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
13
tests/components/ccs811/test.esp32.yaml
Normal file
13
tests/components/ccs811/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
13
tests/components/ccs811/test.esp8266.yaml
Normal file
13
tests/components/ccs811/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
13
tests/components/ccs811/test.rp2040.yaml
Normal file
13
tests/components/ccs811/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
18
tests/components/cd74hc4067/test.esp32-c3-idf.yaml
Normal file
18
tests/components/cd74hc4067/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 0
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
18
tests/components/cd74hc4067/test.esp32-c3.yaml
Normal file
18
tests/components/cd74hc4067/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 0
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
18
tests/components/cd74hc4067/test.esp32-idf.yaml
Normal file
18
tests/components/cd74hc4067/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 39
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
18
tests/components/cd74hc4067/test.esp32.yaml
Normal file
18
tests/components/cd74hc4067/test.esp32.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 39
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
18
tests/components/cd74hc4067/test.esp8266.yaml
Normal file
18
tests/components/cd74hc4067/test.esp8266.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: A0
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
18
tests/components/cd74hc4067/test.rp2040.yaml
Normal file
18
tests/components/cd74hc4067/test.rp2040.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 26
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
7
tests/components/climate_ir_lg/test.esp32-c3-idf.yaml
Normal file
7
tests/components/climate_ir_lg/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
7
tests/components/climate_ir_lg/test.esp32-c3.yaml
Normal file
7
tests/components/climate_ir_lg/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
7
tests/components/climate_ir_lg/test.esp32-idf.yaml
Normal file
7
tests/components/climate_ir_lg/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
7
tests/components/climate_ir_lg/test.esp32.yaml
Normal file
7
tests/components/climate_ir_lg/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
7
tests/components/climate_ir_lg/test.esp8266.yaml
Normal file
7
tests/components/climate_ir_lg/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
11
tests/components/color/test.esp32-c3-idf.yaml
Normal file
11
tests/components/color/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
11
tests/components/color/test.esp32-c3.yaml
Normal file
11
tests/components/color/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
11
tests/components/color/test.esp32-idf.yaml
Normal file
11
tests/components/color/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
11
tests/components/color/test.esp32.yaml
Normal file
11
tests/components/color/test.esp32.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
11
tests/components/color/test.esp8266.yaml
Normal file
11
tests/components/color/test.esp8266.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
11
tests/components/color/test.rp2040.yaml
Normal file
11
tests/components/color/test.rp2040.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
color:
|
||||
- id: kbx_red
|
||||
red: 100%
|
||||
green_int: 123
|
||||
blue: 2%
|
||||
- id: kbx_blue
|
||||
red: 0%
|
||||
green: 1%
|
||||
blue: 100%
|
||||
- id: kbx_green
|
||||
hex: "3DEC55"
|
15
tests/components/color_temperature/test.esp32-c3-idf.yaml
Normal file
15
tests/components/color_temperature/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
15
tests/components/color_temperature/test.esp32-c3.yaml
Normal file
15
tests/components/color_temperature/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
15
tests/components/color_temperature/test.esp32-idf.yaml
Normal file
15
tests/components/color_temperature/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
15
tests/components/color_temperature/test.esp32.yaml
Normal file
15
tests/components/color_temperature/test.esp32.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
15
tests/components/color_temperature/test.esp8266.yaml
Normal file
15
tests/components/color_temperature/test.esp8266.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
15
tests/components/color_temperature/test.rp2040.yaml
Normal file
15
tests/components/color_temperature/test.rp2040.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: color_temperature
|
||||
name: Lights
|
||||
color_temperature: light_output_1
|
||||
brightness: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
76
tests/components/combination/test.esp32-c3-idf.yaml
Normal file
76
tests/components/combination/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
76
tests/components/combination/test.esp32-c3.yaml
Normal file
76
tests/components/combination/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
76
tests/components/combination/test.esp32-idf.yaml
Normal file
76
tests/components/combination/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
76
tests/components/combination/test.esp32.yaml
Normal file
76
tests/components/combination/test.esp32.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
76
tests/components/combination/test.esp8266.yaml
Normal file
76
tests/components/combination/test.esp8266.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
76
tests/components/combination/test.rp2040.yaml
Normal file
76
tests/components/combination/test.rp2040.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
sensor:
|
||||
- platform: template
|
||||
id: template_temperature1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature2
|
||||
lambda: |-
|
||||
if (millis() > 20000) {
|
||||
return 0.8;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: combination
|
||||
type: kalman
|
||||
name: Kalman-filtered temperature
|
||||
process_std_dev: 0.00139
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
error: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
error: 1.5
|
||||
- platform: combination
|
||||
type: linear
|
||||
name: Linearly combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
coeffecient: !lambda "return 0.4 + std::abs(x - 25) * 0.023;"
|
||||
- source: template_temperature2
|
||||
coeffecient: 1.5
|
||||
- platform: combination
|
||||
type: max
|
||||
name: Max of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: mean
|
||||
name: Mean of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: median
|
||||
name: Median of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: min
|
||||
name: Min of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: most_recently_updated
|
||||
name: Most recently updated of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: range
|
||||
name: Range of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
||||
- platform: combination
|
||||
type: sum
|
||||
name: Sum of combined temperatures
|
||||
sources:
|
||||
- source: template_temperature1
|
||||
- source: template_temperature2
|
7
tests/components/coolix/test.esp32-c3-idf.yaml
Normal file
7
tests/components/coolix/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
7
tests/components/coolix/test.esp32-c3.yaml
Normal file
7
tests/components/coolix/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
7
tests/components/coolix/test.esp32-idf.yaml
Normal file
7
tests/components/coolix/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
7
tests/components/coolix/test.esp32.yaml
Normal file
7
tests/components/coolix/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
7
tests/components/coolix/test.esp8266.yaml
Normal file
7
tests/components/coolix/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
23
tests/components/copy/test.esp32-c3-idf.yaml
Normal file
23
tests/components/copy/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
23
tests/components/copy/test.esp32-c3.yaml
Normal file
23
tests/components/copy/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
23
tests/components/copy/test.esp32-idf.yaml
Normal file
23
tests/components/copy/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
23
tests/components/copy/test.esp32.yaml
Normal file
23
tests/components/copy/test.esp32.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
23
tests/components/copy/test.esp8266.yaml
Normal file
23
tests/components/copy/test.esp8266.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
23
tests/components/copy/test.rp2040.yaml
Normal file
23
tests/components/copy/test.rp2040.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
27
tests/components/cs5460a/test.esp32-c3-idf.yaml
Normal file
27
tests/components/cs5460a/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 8
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
27
tests/components/cs5460a/test.esp32-c3.yaml
Normal file
27
tests/components/cs5460a/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 8
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
27
tests/components/cs5460a/test.esp32-idf.yaml
Normal file
27
tests/components/cs5460a/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 12
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
27
tests/components/cs5460a/test.esp32.yaml
Normal file
27
tests/components/cs5460a/test.esp32.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 12
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
27
tests/components/cs5460a/test.esp8266.yaml
Normal file
27
tests/components/cs5460a/test.esp8266.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 15
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
27
tests/components/cs5460a/test.rp2040.yaml
Normal file
27
tests/components/cs5460a/test.rp2040.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: 6
|
||||
current:
|
||||
name: Socket current
|
||||
voltage:
|
||||
name: Mains voltage
|
||||
power:
|
||||
name: Socket power
|
||||
on_value:
|
||||
then:
|
||||
cs5460a.restart: cs5460a1
|
||||
samples: 1600
|
||||
pga_gain: 10X
|
||||
current_gain: 0.01
|
||||
voltage_gain: 0.000573
|
||||
current_hpf: true
|
||||
voltage_hpf: true
|
||||
phase_offset: 20
|
||||
pulse_energy: 0.01 kWh
|
20
tests/components/cse7761/test.esp32-c3-idf.yaml
Normal file
20
tests/components/cse7761/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
20
tests/components/cse7761/test.esp32-c3.yaml
Normal file
20
tests/components/cse7761/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
20
tests/components/cse7761/test.esp32-idf.yaml
Normal file
20
tests/components/cse7761/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
20
tests/components/cse7761/test.esp32.yaml
Normal file
20
tests/components/cse7761/test.esp32.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
20
tests/components/cse7761/test.esp8266.yaml
Normal file
20
tests/components/cse7761/test.esp8266.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
20
tests/components/cse7761/test.rp2040.yaml
Normal file
20
tests/components/cse7761/test.rp2040.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uart:
|
||||
- id: uart_cse7761
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 38400
|
||||
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
voltage:
|
||||
name: CSE7761 Voltage
|
||||
current_1:
|
||||
name: CSE7761 Current 1
|
||||
current_2:
|
||||
name: CSE7761 Current 2
|
||||
active_power_1:
|
||||
name: CSE7761 Active Power 1
|
||||
active_power_2:
|
||||
name: CSE7761 Active Power 2
|
16
tests/components/cse7766/test.esp32-c3-idf.yaml
Normal file
16
tests/components/cse7766/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
16
tests/components/cse7766/test.esp32-c3.yaml
Normal file
16
tests/components/cse7766/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
16
tests/components/cse7766/test.esp32-idf.yaml
Normal file
16
tests/components/cse7766/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
16
tests/components/cse7766/test.esp32.yaml
Normal file
16
tests/components/cse7766/test.esp32.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
16
tests/components/cse7766/test.esp8266.yaml
Normal file
16
tests/components/cse7766/test.esp8266.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
16
tests/components/cse7766/test.rp2040.yaml
Normal file
16
tests/components/cse7766/test.rp2040.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uart:
|
||||
- id: uart_cse7766
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 4800
|
||||
|
||||
sensor:
|
||||
- platform: cse7766
|
||||
voltage:
|
||||
name: CSE7766 Voltage
|
||||
current:
|
||||
name: CSE7766 Current
|
||||
power:
|
||||
name: CSE776 Power
|
9
tests/components/ct_clamp/test.esp32-c3-idf.yaml
Normal file
9
tests/components/ct_clamp/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 0
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
9
tests/components/ct_clamp/test.esp32-c3.yaml
Normal file
9
tests/components/ct_clamp/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 0
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
9
tests/components/ct_clamp/test.esp32-idf.yaml
Normal file
9
tests/components/ct_clamp/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 39
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
9
tests/components/ct_clamp/test.esp32.yaml
Normal file
9
tests/components/ct_clamp/test.esp32.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 39
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
9
tests/components/ct_clamp/test.esp8266.yaml
Normal file
9
tests/components/ct_clamp/test.esp8266.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: A0
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
9
tests/components/ct_clamp/test.rp2040.yaml
Normal file
9
tests/components/ct_clamp/test.rp2040.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: 26
|
||||
- platform: ct_clamp
|
||||
sensor: esp_adc_sensor
|
||||
name: CT Clamp
|
||||
sample_duration: 500ms
|
||||
update_interval: 5s
|
68
tests/components/current_based/test.esp32-c3-idf.yaml
Normal file
68
tests/components/current_based/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
68
tests/components/current_based/test.esp32-c3.yaml
Normal file
68
tests/components/current_based/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
68
tests/components/current_based/test.esp32-idf.yaml
Normal file
68
tests/components/current_based/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
68
tests/components/current_based/test.esp32.yaml
Normal file
68
tests/components/current_based/test.esp32.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
68
tests/components/current_based/test.esp8266.yaml
Normal file
68
tests/components/current_based/test.esp8266.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
68
tests/components/current_based/test.rp2040.yaml
Normal file
68
tests/components/current_based/test.rp2040.yaml
Normal file
|
@ -0,0 +1,68 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
id: template_switch1
|
||||
optimistic: true
|
||||
- platform: template
|
||||
id: template_switch2
|
||||
optimistic: true
|
||||
|
||||
cover:
|
||||
- platform: current_based
|
||||
name: Current Based Cover
|
||||
id: current_based_cover
|
||||
open_sensor: ade7953_current_a
|
||||
open_moving_current_threshold: 0.5
|
||||
open_obstacle_current_threshold: 0.8
|
||||
open_duration: 12s
|
||||
open_action:
|
||||
- switch.turn_on: template_switch1
|
||||
close_sensor: ade7953_current_b
|
||||
close_moving_current_threshold: 0.5
|
||||
close_obstacle_current_threshold: 0.8
|
||||
close_duration: 10s
|
||||
close_action:
|
||||
- switch.turn_on: template_switch2
|
||||
stop_action:
|
||||
- switch.turn_off: template_switch1
|
||||
- switch.turn_off: template_switch2
|
||||
obstacle_rollback: 30%
|
||||
start_sensing_delay: 0.8s
|
||||
malfunction_detection: true
|
||||
malfunction_action:
|
||||
then:
|
||||
- logger.log: Malfunction Detected
|
16
tests/components/cwww/test.esp32-c3-idf.yaml
Normal file
16
tests/components/cwww/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
16
tests/components/cwww/test.esp32-c3.yaml
Normal file
16
tests/components/cwww/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
16
tests/components/cwww/test.esp32-idf.yaml
Normal file
16
tests/components/cwww/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
16
tests/components/cwww/test.esp32.yaml
Normal file
16
tests/components/cwww/test.esp32.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
16
tests/components/cwww/test.esp8266.yaml
Normal file
16
tests/components/cwww/test.esp8266.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
16
tests/components/cwww/test.rp2040.yaml
Normal file
16
tests/components/cwww/test.rp2040.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
|
||||
light:
|
||||
- platform: cwww
|
||||
name: CWWW Light
|
||||
cold_white: light_output_1
|
||||
warm_white: light_output_2
|
||||
cold_white_color_temperature: 153 mireds
|
||||
warm_white_color_temperature: 500 mireds
|
||||
constant_brightness: true
|
Loading…
Reference in a new issue