mirror of
https://github.com/esphome/esphome.git
synced 2026-05-25 18:47:56 +08:00
[CI] Consolidate some tests (C) (#8186)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: ${reset_pin}
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
reset_pin: GPIO15
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
reset_pin: GPIO15
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO15
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 15
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_cap1188
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
cap1188:
|
||||
id: cap1188_component
|
||||
address: 0x29
|
||||
reset_pin: 6
|
||||
touch_threshold: 0x20
|
||||
allow_multiple_touches: true
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_ccs811
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: ccs811
|
||||
eco2:
|
||||
name: CCS811 eCO2
|
||||
tvoc:
|
||||
name: CCS811 TVOC
|
||||
baseline: 0x4242
|
||||
update_interval: 30s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
cd74hc4067:
|
||||
pin_s0: ${pin_s0}
|
||||
pin_s1: ${pin_s1}
|
||||
pin_s2: ${pin_s2}
|
||||
pin_s3: ${pin_s3}
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: esp_adc_sensor
|
||||
pin: ${pin}
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_0
|
||||
number: 0
|
||||
sensor: esp_adc_sensor
|
||||
- platform: cd74hc4067
|
||||
id: cd74hc4067_adc_1
|
||||
number: 1
|
||||
sensor: esp_adc_sensor
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
substitutions:
|
||||
pin_s0: GPIO12
|
||||
pin_s1: GPIO13
|
||||
pin_s2: GPIO14
|
||||
pin_s3: GPIO15
|
||||
pin: GPIO39
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
substitutions:
|
||||
pin_s0: GPIO2
|
||||
pin_s1: GPIO3
|
||||
pin_s2: GPIO4
|
||||
pin_s3: GPIO5
|
||||
pin: GPIO0
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
substitutions:
|
||||
pin_s0: GPIO2
|
||||
pin_s1: GPIO3
|
||||
pin_s2: GPIO4
|
||||
pin_s3: GPIO5
|
||||
pin: GPIO0
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
substitutions:
|
||||
pin_s0: GPIO12
|
||||
pin_s1: GPIO13
|
||||
pin_s2: GPIO14
|
||||
pin_s3: GPIO15
|
||||
pin: GPIO39
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 12
|
||||
pin_s1: 13
|
||||
pin_s2: 14
|
||||
pin_s3: 15
|
||||
substitutions:
|
||||
pin_s0: GPIO12
|
||||
pin_s1: GPIO13
|
||||
pin_s2: GPIO14
|
||||
pin_s3: GPIO15
|
||||
pin: A0
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
cd74hc4067:
|
||||
pin_s0: 2
|
||||
pin_s1: 3
|
||||
pin_s2: 4
|
||||
pin_s3: 5
|
||||
substitutions:
|
||||
pin_s0: GPIO2
|
||||
pin_s1: GPIO3
|
||||
pin_s2: GPIO4
|
||||
pin_s3: GPIO5
|
||||
pin: GPIO26
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: climate_ir_lg
|
||||
name: LG Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
output:
|
||||
- platform: ${light_platform}
|
||||
id: light_output_1
|
||||
pin: ${pin_o1}
|
||||
- platform: ${light_platform}
|
||||
id: light_output_2
|
||||
pin: ${pin_o2}
|
||||
|
||||
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
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin_o1: GPIO16
|
||||
pin_o2: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin_o1: GPIO6
|
||||
pin_o2: GPIO7
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin_o1: GPIO6
|
||||
pin_o2: GPIO7
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin_o1: GPIO16
|
||||
pin_o2: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
substitutions:
|
||||
light_platform: esp8266_pwm
|
||||
pin_o1: GPIO12
|
||||
pin_o2: GPIO13
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
substitutions:
|
||||
light_platform: rp2040_pwm
|
||||
pin_o1: GPIO12
|
||||
pin_o2: GPIO13
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: coolix
|
||||
name: Coolix Climate
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
output:
|
||||
- platform: ${pwm_platform}
|
||||
id: fan_output_1
|
||||
pin: ${pin}
|
||||
|
||||
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
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO12
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO2
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO2
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO12
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: rp2040_pwm
|
||||
pin: GPIO12
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
sensor:
|
||||
- platform: cs5460a
|
||||
id: cs5460a1
|
||||
cs_pin: ${cs_pin}
|
||||
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
|
||||
@@ -1,27 +1,7 @@
|
||||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,27 +1,7 @@
|
||||
spi:
|
||||
- id: spi_cs5460a
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user