Skip to content

Commit

Permalink
Add some components to the new testing framework (B) (esphome#6173)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbx81 authored Feb 6, 2024
1 parent cfe16c9 commit 05da0fb
Show file tree
Hide file tree
Showing 130 changed files with 2,650 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/components/b_parasite/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
esp32_ble_tracker:

sensor:
- platform: b_parasite
mac_address: F0:CA:F0:CA:01:01
humidity:
name: b-parasite Air Humidity
temperature:
name: b-parasite Air Temperature
moisture:
name: b-parasite Soil Moisture
battery_voltage:
name: b-parasite Battery Voltage
illuminance:
name: b-parasite Illuminance
15 changes: 15 additions & 0 deletions tests/components/b_parasite/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
esp32_ble_tracker:

sensor:
- platform: b_parasite
mac_address: F0:CA:F0:CA:01:01
humidity:
name: b-parasite Air Humidity
temperature:
name: b-parasite Air Temperature
moisture:
name: b-parasite Soil Moisture
battery_voltage:
name: b-parasite Battery Voltage
illuminance:
name: b-parasite Illuminance
15 changes: 15 additions & 0 deletions tests/components/b_parasite/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
esp32_ble_tracker:

sensor:
- platform: b_parasite
mac_address: F0:CA:F0:CA:01:01
humidity:
name: b-parasite Air Humidity
temperature:
name: b-parasite Air Temperature
moisture:
name: b-parasite Soil Moisture
battery_voltage:
name: b-parasite Battery Voltage
illuminance:
name: b-parasite Illuminance
15 changes: 15 additions & 0 deletions tests/components/b_parasite/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
esp32_ble_tracker:

sensor:
- platform: b_parasite
mac_address: F0:CA:F0:CA:01:01
humidity:
name: b-parasite Air Humidity
temperature:
name: b-parasite Air Temperature
moisture:
name: b-parasite Soil Moisture
battery_voltage:
name: b-parasite Battery Voltage
illuminance:
name: b-parasite Illuminance
12 changes: 12 additions & 0 deletions tests/components/ballu/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%

climate:
- platform: heatpumpir
protocol: ballu
horizontal_default: middle
vertical_default: middle
name: HeatpumpIR Climate
min_temperature: 18
max_temperature: 30
12 changes: 12 additions & 0 deletions tests/components/ballu/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
remote_transmitter:
pin: 5
carrier_duty_percent: 50%

climate:
- platform: heatpumpir
protocol: ballu
horizontal_default: middle
vertical_default: middle
name: HeatpumpIR Climate
min_temperature: 18
max_temperature: 30
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
35 changes: 35 additions & 0 deletions tests/components/bang_bang/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true

sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s

climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C
33 changes: 33 additions & 0 deletions tests/components/bedjet/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
wifi:
ssid: MySSID
password: password1

time:
- platform: sntp
id: sntp_time
servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 192.168.178.1

esp32_ble_tracker:

ble_client:
- mac_address: 01:02:03:04:05:06
id: bedjet_blec

bedjet:
- id: bedjet_hub
ble_client_id: bedjet_blec
time_id: sntp_time

climate:
- platform: bedjet
name: My Bedjet
bedjet_id: bedjet_hub
heat_mode: extended

fan:
- platform: bedjet
name: My Bedjet fan
bedjet_id: bedjet_hub
33 changes: 33 additions & 0 deletions tests/components/bedjet/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
wifi:
ssid: MySSID
password: password1

time:
- platform: sntp
id: sntp_time
servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 192.168.178.1

esp32_ble_tracker:

ble_client:
- mac_address: 01:02:03:04:05:06
id: bedjet_blec

bedjet:
- id: bedjet_hub
ble_client_id: bedjet_blec
time_id: sntp_time

climate:
- platform: bedjet
name: My Bedjet
bedjet_id: bedjet_hub
heat_mode: extended

fan:
- platform: bedjet
name: My Bedjet fan
bedjet_id: bedjet_hub
Loading

0 comments on commit 05da0fb

Please sign in to comment.