mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add some components to the new testing framework (P) (#6213)
This commit is contained in:
44
tests/components/pvvx_mithermometer/test.esp32-c3-idf.yaml
Normal file
44
tests/components/pvvx_mithermometer/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: pvvx_ble_display
|
||||
|
||||
display:
|
||||
- platform: pvvx_mithermometer
|
||||
ble_client_id: pvvx_ble_display
|
||||
time_id: sntp_time
|
||||
disconnect_delay: 3s
|
||||
update_interval: 10min
|
||||
validity_period: 20min
|
||||
lambda: |-
|
||||
it.print_bignum(188.8);
|
||||
it.print_unit(pvvx_mithermometer::UNIT_DEG_E);
|
||||
it.print_smallnum(88);
|
||||
it.print_percent(true);
|
||||
it.print_happy(true);
|
||||
it.print_sad(true);
|
||||
it.print_bracket(true);
|
||||
it.print_battery(true);
|
||||
|
||||
sensor:
|
||||
- platform: pvvx_mithermometer
|
||||
mac_address: A4:C1:38:4E:16:78
|
||||
temperature:
|
||||
name: PVVX Temperature
|
||||
humidity:
|
||||
name: PVVX Humidity
|
||||
battery_level:
|
||||
name: PVVX Battery-Level
|
||||
battery_voltage:
|
||||
name: PVVX Battery-Voltage
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
44
tests/components/pvvx_mithermometer/test.esp32-c3.yaml
Normal file
44
tests/components/pvvx_mithermometer/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: pvvx_ble_display
|
||||
|
||||
display:
|
||||
- platform: pvvx_mithermometer
|
||||
ble_client_id: pvvx_ble_display
|
||||
time_id: sntp_time
|
||||
disconnect_delay: 3s
|
||||
update_interval: 10min
|
||||
validity_period: 20min
|
||||
lambda: |-
|
||||
it.print_bignum(188.8);
|
||||
it.print_unit(pvvx_mithermometer::UNIT_DEG_E);
|
||||
it.print_smallnum(88);
|
||||
it.print_percent(true);
|
||||
it.print_happy(true);
|
||||
it.print_sad(true);
|
||||
it.print_bracket(true);
|
||||
it.print_battery(true);
|
||||
|
||||
sensor:
|
||||
- platform: pvvx_mithermometer
|
||||
mac_address: A4:C1:38:4E:16:78
|
||||
temperature:
|
||||
name: PVVX Temperature
|
||||
humidity:
|
||||
name: PVVX Humidity
|
||||
battery_level:
|
||||
name: PVVX Battery-Level
|
||||
battery_voltage:
|
||||
name: PVVX Battery-Voltage
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
44
tests/components/pvvx_mithermometer/test.esp32-idf.yaml
Normal file
44
tests/components/pvvx_mithermometer/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: pvvx_ble_display
|
||||
|
||||
display:
|
||||
- platform: pvvx_mithermometer
|
||||
ble_client_id: pvvx_ble_display
|
||||
time_id: sntp_time
|
||||
disconnect_delay: 3s
|
||||
update_interval: 10min
|
||||
validity_period: 20min
|
||||
lambda: |-
|
||||
it.print_bignum(188.8);
|
||||
it.print_unit(pvvx_mithermometer::UNIT_DEG_E);
|
||||
it.print_smallnum(88);
|
||||
it.print_percent(true);
|
||||
it.print_happy(true);
|
||||
it.print_sad(true);
|
||||
it.print_bracket(true);
|
||||
it.print_battery(true);
|
||||
|
||||
sensor:
|
||||
- platform: pvvx_mithermometer
|
||||
mac_address: A4:C1:38:4E:16:78
|
||||
temperature:
|
||||
name: PVVX Temperature
|
||||
humidity:
|
||||
name: PVVX Humidity
|
||||
battery_level:
|
||||
name: PVVX Battery-Level
|
||||
battery_voltage:
|
||||
name: PVVX Battery-Voltage
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
44
tests/components/pvvx_mithermometer/test.esp32.yaml
Normal file
44
tests/components/pvvx_mithermometer/test.esp32.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: pvvx_ble_display
|
||||
|
||||
display:
|
||||
- platform: pvvx_mithermometer
|
||||
ble_client_id: pvvx_ble_display
|
||||
time_id: sntp_time
|
||||
disconnect_delay: 3s
|
||||
update_interval: 10min
|
||||
validity_period: 20min
|
||||
lambda: |-
|
||||
it.print_bignum(188.8);
|
||||
it.print_unit(pvvx_mithermometer::UNIT_DEG_E);
|
||||
it.print_smallnum(88);
|
||||
it.print_percent(true);
|
||||
it.print_happy(true);
|
||||
it.print_sad(true);
|
||||
it.print_bracket(true);
|
||||
it.print_battery(true);
|
||||
|
||||
sensor:
|
||||
- platform: pvvx_mithermometer
|
||||
mac_address: A4:C1:38:4E:16:78
|
||||
temperature:
|
||||
name: PVVX Temperature
|
||||
humidity:
|
||||
name: PVVX Humidity
|
||||
battery_level:
|
||||
name: PVVX Battery-Level
|
||||
battery_voltage:
|
||||
name: PVVX Battery-Voltage
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
Reference in New Issue
Block a user