mirror of
https://github.com/esphome/esphome.git
synced 2025-07-12 01:53:10 +01:00
Consolidate test files where all tests are identical (#6690)
This commit is contained in:
tests/components
absolute_humidity
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
airthings_wave_mini
airthings_wave_plus
alarm_control_panel
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
alpha3
am43
analog_threshold
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
anova
api
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
atc_mithermometer
b_parasite
bang_bang
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
bedjet
binary_sensor_map
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
ble_client
ble_presence
ble_rssi
ble_scanner
button
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
canbus
captive_portal
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
color
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
combination
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
cst226
cst816
dallas
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
datetime
debug
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.host.yamltest.rp2040.yaml
dht
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
display
duty_cycle
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
duty_time
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
endstop
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
esp32_ble
esp32_ble_beacon
esp32_ble_client
esp32_ble_server
esp32_ble_tracker
esp32_camera
esp32_camera_web_server
esp32_dac
esp32_hall
esp32_improv
esp32_touch
esp8266_pwm
ethernet
ethernet_info
event
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
exposure_notifications
external_components
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
factory_reset
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
fastled_clockless
fastled_spi
feedback
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
globals
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
host
improv_serial
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
inkbird_ibsth1_mini
inkplate6
interval
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
ledc
lightwaverf
lock
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
logger
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
mdns
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
media_player
micro_wake_word
midea_ir
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
mitsubishi
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
mopeka_ble
mopeka_pro_check
mopeka_std_check
my9231
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
network
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
noblex
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
ota
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
pid
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
power_supply
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
prometheus
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
psram
pulse_counter
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
pulse_meter
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
pulse_width
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
pvvx_mithermometer
qspi_amoled
radon_eye_ble
radon_eye_rd200
restart
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
rp2040_pio_led_strip
rp2040_pwm
rpi_dpi_rgb
ruuvi_ble
ruuvitag
safe_mode
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
shelly_dimmer
shutdown
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sigma_delta_output
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
slow_pwm
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sm16716
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sm2135
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sm2235
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sm2335
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sntp
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sprinkler
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
st7701s
status
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
status_led
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
stepper
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
sun
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
thermostat
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
time
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
time_based
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
tm1638
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
tm1651
tx20
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
ultrasonic
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
uptime
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
version
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
wake_on_lan
web_server
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yaml
wiegand
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
wifi
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
wifi_info
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
wifi_signal
common.yamltest.esp32-c3-idf.yamltest.esp32-c3.yamltest.esp32-idf.yamltest.esp32.yamltest.esp8266.yamltest.rp2040.yaml
xiaomi_ble
xiaomi_cgd1
xiaomi_cgdk2
xiaomi_cgg1
xiaomi_cgpr1
xiaomi_gcls002
xiaomi_hhccjcy01
xiaomi_hhccpot002
xiaomi_jqjcy01ym
xiaomi_lywsd02
xiaomi_lywsd03mmc
xiaomi_lywsdcgq
xiaomi_mhoc303
xiaomi_mhoc401
xiaomi_miscale copy
xiaomi_miscale
xiaomi_mjyd02yla
xiaomi_mue4094rt
xiaomi_rtcgq02lm
xiaomi_wx08zm
21
tests/components/absolute_humidity/common.yaml
Normal file
21
tests/components/absolute_humidity/common.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: absolute_humidity
|
||||||
|
name: Absolute Humidity
|
||||||
|
temperature: template_temperature
|
||||||
|
humidity: template_humidity
|
||||||
|
- platform: template
|
||||||
|
id: template_humidity
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 0.6;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: template_temperature
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
@ -1,21 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: absolute_humidity
|
|
||||||
name: Absolute Humidity
|
|
||||||
temperature: template_temperature
|
|
||||||
humidity: template_humidity
|
|
||||||
- platform: template
|
|
||||||
id: template_humidity
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 0.6;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: template_temperature
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
22
tests/components/airthings_wave_mini/common.yaml
Normal file
22
tests/components/airthings_wave_mini/common.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthingsmini01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswm
|
||||||
|
platform: airthings_wave_mini
|
||||||
|
ble_client_id: airthingsmini01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Mini Temperature
|
||||||
|
humidity:
|
||||||
|
name: Wave Mini Humidity
|
||||||
|
pressure:
|
||||||
|
name: Wave Mini Pressure
|
||||||
|
tvoc:
|
||||||
|
name: Wave Mini VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Mini Battery Voltage
|
@ -1,22 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthingsmini01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswm
|
|
||||||
platform: airthings_wave_mini
|
|
||||||
ble_client_id: airthingsmini01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Mini Temperature
|
|
||||||
humidity:
|
|
||||||
name: Wave Mini Humidity
|
|
||||||
pressure:
|
|
||||||
name: Wave Mini Pressure
|
|
||||||
tvoc:
|
|
||||||
name: Wave Mini VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Mini Battery Voltage
|
|
||||||
|
@ -1,22 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthingsmini01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswm
|
|
||||||
platform: airthings_wave_mini
|
|
||||||
ble_client_id: airthingsmini01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Mini Temperature
|
|
||||||
humidity:
|
|
||||||
name: Wave Mini Humidity
|
|
||||||
pressure:
|
|
||||||
name: Wave Mini Pressure
|
|
||||||
tvoc:
|
|
||||||
name: Wave Mini VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Mini Battery Voltage
|
|
||||||
|
@ -1,22 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthingsmini01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswm
|
|
||||||
platform: airthings_wave_mini
|
|
||||||
ble_client_id: airthingsmini01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Mini Temperature
|
|
||||||
humidity:
|
|
||||||
name: Wave Mini Humidity
|
|
||||||
pressure:
|
|
||||||
name: Wave Mini Pressure
|
|
||||||
tvoc:
|
|
||||||
name: Wave Mini VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Mini Battery Voltage
|
|
||||||
|
@ -1,22 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthingsmini01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswm
|
|
||||||
platform: airthings_wave_mini
|
|
||||||
ble_client_id: airthingsmini01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Mini Temperature
|
|
||||||
humidity:
|
|
||||||
name: Wave Mini Humidity
|
|
||||||
pressure:
|
|
||||||
name: Wave Mini Pressure
|
|
||||||
tvoc:
|
|
||||||
name: Wave Mini VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Mini Battery Voltage
|
|
||||||
|
28
tests/components/airthings_wave_plus/common.yaml
Normal file
28
tests/components/airthings_wave_plus/common.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: airthings01
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- id: airthingswp
|
||||||
|
platform: airthings_wave_plus
|
||||||
|
ble_client_id: airthings01
|
||||||
|
update_interval: 5min
|
||||||
|
battery_update_interval: 12h
|
||||||
|
temperature:
|
||||||
|
name: Wave Plus Temperature
|
||||||
|
radon:
|
||||||
|
name: Wave Plus Radon
|
||||||
|
radon_long_term:
|
||||||
|
name: Wave Plus Radon Long Term
|
||||||
|
pressure:
|
||||||
|
name: Wave Plus Pressure
|
||||||
|
humidity:
|
||||||
|
name: Wave Plus Humidity
|
||||||
|
co2:
|
||||||
|
name: Wave Plus CO2
|
||||||
|
tvoc:
|
||||||
|
name: Wave Plus VOC
|
||||||
|
battery_voltage:
|
||||||
|
name: Wave Plus Battery Voltage
|
@ -1,28 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthings01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswp
|
|
||||||
platform: airthings_wave_plus
|
|
||||||
ble_client_id: airthings01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Plus Temperature
|
|
||||||
radon:
|
|
||||||
name: Wave Plus Radon
|
|
||||||
radon_long_term:
|
|
||||||
name: Wave Plus Radon Long Term
|
|
||||||
pressure:
|
|
||||||
name: Wave Plus Pressure
|
|
||||||
humidity:
|
|
||||||
name: Wave Plus Humidity
|
|
||||||
co2:
|
|
||||||
name: Wave Plus CO2
|
|
||||||
tvoc:
|
|
||||||
name: Wave Plus VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Plus Battery Voltage
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthings01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswp
|
|
||||||
platform: airthings_wave_plus
|
|
||||||
ble_client_id: airthings01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Plus Temperature
|
|
||||||
radon:
|
|
||||||
name: Wave Plus Radon
|
|
||||||
radon_long_term:
|
|
||||||
name: Wave Plus Radon Long Term
|
|
||||||
pressure:
|
|
||||||
name: Wave Plus Pressure
|
|
||||||
humidity:
|
|
||||||
name: Wave Plus Humidity
|
|
||||||
co2:
|
|
||||||
name: Wave Plus CO2
|
|
||||||
tvoc:
|
|
||||||
name: Wave Plus VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Plus Battery Voltage
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthings01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswp
|
|
||||||
platform: airthings_wave_plus
|
|
||||||
ble_client_id: airthings01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Plus Temperature
|
|
||||||
radon:
|
|
||||||
name: Wave Plus Radon
|
|
||||||
radon_long_term:
|
|
||||||
name: Wave Plus Radon Long Term
|
|
||||||
pressure:
|
|
||||||
name: Wave Plus Pressure
|
|
||||||
humidity:
|
|
||||||
name: Wave Plus Humidity
|
|
||||||
co2:
|
|
||||||
name: Wave Plus CO2
|
|
||||||
tvoc:
|
|
||||||
name: Wave Plus VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Plus Battery Voltage
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: airthings01
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- id: airthingswp
|
|
||||||
platform: airthings_wave_plus
|
|
||||||
ble_client_id: airthings01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Plus Temperature
|
|
||||||
radon:
|
|
||||||
name: Wave Plus Radon
|
|
||||||
radon_long_term:
|
|
||||||
name: Wave Plus Radon Long Term
|
|
||||||
pressure:
|
|
||||||
name: Wave Plus Pressure
|
|
||||||
humidity:
|
|
||||||
name: Wave Plus Humidity
|
|
||||||
co2:
|
|
||||||
name: Wave Plus CO2
|
|
||||||
tvoc:
|
|
||||||
name: Wave Plus VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Plus Battery Voltage
|
|
||||||
|
64
tests/components/alarm_control_panel/common.yaml
Normal file
64
tests/components/alarm_control_panel/common.yaml
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
id: bin1
|
||||||
|
pin: 1
|
||||||
|
|
||||||
|
alarm_control_panel:
|
||||||
|
- platform: template
|
||||||
|
id: alarmcontrolpanel1
|
||||||
|
name: Alarm Panel
|
||||||
|
codes:
|
||||||
|
- "1234"
|
||||||
|
requires_code_to_arm: true
|
||||||
|
arming_home_time: 1s
|
||||||
|
arming_night_time: 1s
|
||||||
|
arming_away_time: 15s
|
||||||
|
pending_time: 15s
|
||||||
|
trigger_time: 30s
|
||||||
|
binary_sensors:
|
||||||
|
- input: bin1
|
||||||
|
bypass_armed_home: true
|
||||||
|
bypass_armed_night: true
|
||||||
|
on_state:
|
||||||
|
then:
|
||||||
|
- lambda: !lambda |-
|
||||||
|
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
||||||
|
- platform: template
|
||||||
|
id: alarmcontrolpanel2
|
||||||
|
name: Alarm Panel
|
||||||
|
codes:
|
||||||
|
- "1234"
|
||||||
|
requires_code_to_arm: true
|
||||||
|
arming_home_time: 1s
|
||||||
|
arming_night_time: 1s
|
||||||
|
arming_away_time: 15s
|
||||||
|
pending_time: 15s
|
||||||
|
trigger_time: 30s
|
||||||
|
binary_sensors:
|
||||||
|
- input: bin1
|
||||||
|
bypass_armed_home: true
|
||||||
|
bypass_armed_night: true
|
||||||
|
on_disarmed:
|
||||||
|
then:
|
||||||
|
- logger.log: "### DISARMED ###"
|
||||||
|
on_pending:
|
||||||
|
then:
|
||||||
|
- logger.log: "### PENDING ###"
|
||||||
|
on_arming:
|
||||||
|
then:
|
||||||
|
- logger.log: "### ARMING ###"
|
||||||
|
on_armed_home:
|
||||||
|
then:
|
||||||
|
- logger.log: "### ARMED HOME ###"
|
||||||
|
on_armed_night:
|
||||||
|
then:
|
||||||
|
- logger.log: "### ARMED NIGHT ###"
|
||||||
|
on_armed_away:
|
||||||
|
then:
|
||||||
|
- logger.log: "### ARMED AWAY ###"
|
||||||
|
on_triggered:
|
||||||
|
then:
|
||||||
|
- logger.log: "### TRIGGERED ###"
|
||||||
|
on_cleared:
|
||||||
|
then:
|
||||||
|
- logger.log: "### CLEARED ###"
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
@ -1,64 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: gpio
|
|
||||||
id: bin1
|
|
||||||
pin: 1
|
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", LOG_STR_ARG(alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state())));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
17
tests/components/alpha3/common.yaml
Normal file
17
tests/components/alpha3/common.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: alpha3_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: alpha3
|
||||||
|
ble_client_id: alpha3_blec
|
||||||
|
flow:
|
||||||
|
name: "Radiator Pump Flow"
|
||||||
|
head:
|
||||||
|
name: "Radiator Pump Head"
|
||||||
|
power:
|
||||||
|
name: "Radiator Pump Power"
|
||||||
|
speed:
|
||||||
|
name: "Radiator Pump Speed"
|
@ -1,17 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: alpha3_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: alpha3
|
|
||||||
ble_client_id: alpha3_blec
|
|
||||||
flow:
|
|
||||||
name: "Radiator Pump Flow"
|
|
||||||
head:
|
|
||||||
name: "Radiator Pump Head"
|
|
||||||
power:
|
|
||||||
name: "Radiator Pump Power"
|
|
||||||
speed:
|
|
||||||
name: "Radiator Pump Speed"
|
|
||||||
|
@ -1,17 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: alpha3_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: alpha3
|
|
||||||
ble_client_id: alpha3_blec
|
|
||||||
flow:
|
|
||||||
name: "Radiator Pump Flow"
|
|
||||||
head:
|
|
||||||
name: "Radiator Pump Head"
|
|
||||||
power:
|
|
||||||
name: "Radiator Pump Power"
|
|
||||||
speed:
|
|
||||||
name: "Radiator Pump Speed"
|
|
||||||
|
@ -1,17 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: alpha3_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: alpha3
|
|
||||||
ble_client_id: alpha3_blec
|
|
||||||
flow:
|
|
||||||
name: "Radiator Pump Flow"
|
|
||||||
head:
|
|
||||||
name: "Radiator Pump Head"
|
|
||||||
power:
|
|
||||||
name: "Radiator Pump Power"
|
|
||||||
speed:
|
|
||||||
name: "Radiator Pump Speed"
|
|
||||||
|
@ -1,17 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: alpha3_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: alpha3
|
|
||||||
ble_client_id: alpha3_blec
|
|
||||||
flow:
|
|
||||||
name: "Radiator Pump Flow"
|
|
||||||
head:
|
|
||||||
name: "Radiator Pump Head"
|
|
||||||
power:
|
|
||||||
name: "Radiator Pump Power"
|
|
||||||
speed:
|
|
||||||
name: "Radiator Pump Speed"
|
|
||||||
|
19
tests/components/am43/common.yaml
Normal file
19
tests/components/am43/common.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: am43_blec
|
||||||
|
|
||||||
|
cover:
|
||||||
|
- platform: am43
|
||||||
|
name: Test AM43 Cover
|
||||||
|
id: am43_test
|
||||||
|
ble_client_id: am43_blec
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: am43
|
||||||
|
ble_client_id: am43_blec
|
||||||
|
battery_level:
|
||||||
|
name: Kitchen blinds battery
|
||||||
|
illuminance:
|
||||||
|
name: Kitchen blinds light
|
@ -1,19 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: am43_blec
|
|
||||||
|
|
||||||
cover:
|
|
||||||
- platform: am43
|
|
||||||
name: Test AM43 Cover
|
|
||||||
id: am43_test
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: am43
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
battery_level:
|
|
||||||
name: Kitchen blinds battery
|
|
||||||
illuminance:
|
|
||||||
name: Kitchen blinds light
|
|
||||||
|
@ -1,19 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: am43_blec
|
|
||||||
|
|
||||||
cover:
|
|
||||||
- platform: am43
|
|
||||||
name: Test AM43 Cover
|
|
||||||
id: am43_test
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: am43
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
battery_level:
|
|
||||||
name: Kitchen blinds battery
|
|
||||||
illuminance:
|
|
||||||
name: Kitchen blinds light
|
|
||||||
|
@ -1,19 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: am43_blec
|
|
||||||
|
|
||||||
cover:
|
|
||||||
- platform: am43
|
|
||||||
name: Test AM43 Cover
|
|
||||||
id: am43_test
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: am43
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
battery_level:
|
|
||||||
name: Kitchen blinds battery
|
|
||||||
illuminance:
|
|
||||||
name: Kitchen blinds light
|
|
||||||
|
@ -1,19 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: am43_blec
|
|
||||||
|
|
||||||
cover:
|
|
||||||
- platform: am43
|
|
||||||
name: Test AM43 Cover
|
|
||||||
id: am43_test
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: am43
|
|
||||||
ble_client_id: am43_blec
|
|
||||||
battery_level:
|
|
||||||
name: Kitchen blinds battery
|
|
||||||
illuminance:
|
|
||||||
name: Kitchen blinds light
|
|
||||||
|
28
tests/components/analog_threshold/common.yaml
Normal file
28
tests/components/analog_threshold/common.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: template
|
||||||
|
id: template_sensor
|
||||||
|
name: Template Sensor
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return 42.0;
|
||||||
|
} else {
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
update_interval: 15s
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: analog_threshold
|
||||||
|
name: Analog Threshold 1
|
||||||
|
sensor_id: template_sensor
|
||||||
|
threshold:
|
||||||
|
upper: 110
|
||||||
|
lower: 90
|
||||||
|
filters:
|
||||||
|
- delayed_on: 0s
|
||||||
|
- delayed_off: 10s
|
||||||
|
- platform: analog_threshold
|
||||||
|
name: Analog Threshold 2
|
||||||
|
sensor_id: template_sensor
|
||||||
|
threshold: 100
|
||||||
|
filters:
|
||||||
|
- invert:
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
@ -1,28 +1 @@
|
|||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: template_sensor
|
|
||||||
name: Template Sensor
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return 42.0;
|
|
||||||
} else {
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
update_interval: 15s
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 1
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold:
|
|
||||||
upper: 110
|
|
||||||
lower: 90
|
|
||||||
filters:
|
|
||||||
- delayed_on: 0s
|
|
||||||
- delayed_off: 10s
|
|
||||||
- platform: analog_threshold
|
|
||||||
name: Analog Threshold 2
|
|
||||||
sensor_id: template_sensor
|
|
||||||
threshold: 100
|
|
||||||
filters:
|
|
||||||
- invert:
|
|
||||||
|
11
tests/components/anova/common.yaml
Normal file
11
tests/components/anova/common.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: anova_blec
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: anova
|
||||||
|
name: Anova cooker
|
||||||
|
ble_client_id: anova_blec
|
||||||
|
unit_of_measurement: c
|
@ -1,11 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: anova_blec
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: anova
|
|
||||||
name: Anova cooker
|
|
||||||
ble_client_id: anova_blec
|
|
||||||
unit_of_measurement: c
|
|
||||||
|
@ -1,11 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: anova_blec
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: anova
|
|
||||||
name: Anova cooker
|
|
||||||
ble_client_id: anova_blec
|
|
||||||
unit_of_measurement: c
|
|
||||||
|
@ -1,11 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: anova_blec
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: anova
|
|
||||||
name: Anova cooker
|
|
||||||
ble_client_id: anova_blec
|
|
||||||
unit_of_measurement: c
|
|
||||||
|
@ -1,11 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: anova_blec
|
|
||||||
|
|
||||||
climate:
|
|
||||||
- platform: anova
|
|
||||||
name: Anova cooker
|
|
||||||
ble_client_id: anova_blec
|
|
||||||
unit_of_measurement: c
|
|
||||||
|
63
tests/components/api/common.yaml
Normal file
63
tests/components/api/common.yaml
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- homeassistant.event:
|
||||||
|
event: esphome.button_pressed
|
||||||
|
data:
|
||||||
|
message: Button was pressed
|
||||||
|
- homeassistant.service:
|
||||||
|
service: notify.html5
|
||||||
|
data:
|
||||||
|
message: Button was pressed
|
||||||
|
- homeassistant.tag_scanned: pulse
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
api:
|
||||||
|
port: 8000
|
||||||
|
password: pwd
|
||||||
|
reboot_timeout: 0min
|
||||||
|
encryption:
|
||||||
|
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
||||||
|
services:
|
||||||
|
- service: hello_world
|
||||||
|
variables:
|
||||||
|
name: string
|
||||||
|
then:
|
||||||
|
- logger.log:
|
||||||
|
format: Hello World %s!
|
||||||
|
args:
|
||||||
|
- name.c_str()
|
||||||
|
- service: empty_service
|
||||||
|
then:
|
||||||
|
- logger.log: Service Called
|
||||||
|
- service: all_types
|
||||||
|
variables:
|
||||||
|
bool_: bool
|
||||||
|
int_: int
|
||||||
|
float_: float
|
||||||
|
string_: string
|
||||||
|
then:
|
||||||
|
- logger.log: Something happened
|
||||||
|
- service: array_types
|
||||||
|
variables:
|
||||||
|
bool_arr: bool[]
|
||||||
|
int_arr: int[]
|
||||||
|
float_arr: float[]
|
||||||
|
string_arr: string[]
|
||||||
|
then:
|
||||||
|
- logger.log:
|
||||||
|
# yamllint disable rule:line-length
|
||||||
|
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
||||||
|
# yamllint enable rule:line-length
|
||||||
|
args:
|
||||||
|
- YESNO(bool_arr[0])
|
||||||
|
- bool_arr.size()
|
||||||
|
- int_arr[0]
|
||||||
|
- int_arr.size()
|
||||||
|
- float_arr[0]
|
||||||
|
- float_arr.size()
|
||||||
|
- string_arr[0].c_str()
|
||||||
|
- string_arr.size()
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
@ -1,63 +1 @@
|
|||||||
esphome:
|
<<: !include common.yaml
|
||||||
on_boot:
|
|
||||||
then:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.button_pressed
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.service:
|
|
||||||
service: notify.html5
|
|
||||||
data:
|
|
||||||
message: Button was pressed
|
|
||||||
- homeassistant.tag_scanned: pulse
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: MySSID
|
|
||||||
password: password1
|
|
||||||
|
|
||||||
api:
|
|
||||||
port: 8000
|
|
||||||
password: pwd
|
|
||||||
reboot_timeout: 0min
|
|
||||||
encryption:
|
|
||||||
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
|
||||||
services:
|
|
||||||
- service: hello_world
|
|
||||||
variables:
|
|
||||||
name: string
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
format: Hello World %s!
|
|
||||||
args:
|
|
||||||
- name.c_str()
|
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
|
13
tests/components/atc_mithermometer/common.yaml
Normal file
13
tests/components/atc_mithermometer/common.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: atc_mithermometer
|
||||||
|
mac_address: A4:C1:38:4E:16:78
|
||||||
|
temperature:
|
||||||
|
name: ATC Temperature
|
||||||
|
humidity:
|
||||||
|
name: ATC Humidity
|
||||||
|
battery_level:
|
||||||
|
name: ATC Battery-Level
|
||||||
|
battery_voltage:
|
||||||
|
name: ATC Battery-Voltage
|
@ -1,13 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: atc_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: ATC Temperature
|
|
||||||
humidity:
|
|
||||||
name: ATC Humidity
|
|
||||||
battery_level:
|
|
||||||
name: ATC Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: ATC Battery-Voltage
|
|
||||||
|
@ -1,13 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: atc_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: ATC Temperature
|
|
||||||
humidity:
|
|
||||||
name: ATC Humidity
|
|
||||||
battery_level:
|
|
||||||
name: ATC Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: ATC Battery-Voltage
|
|
||||||
|
@ -1,13 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: atc_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: ATC Temperature
|
|
||||||
humidity:
|
|
||||||
name: ATC Humidity
|
|
||||||
battery_level:
|
|
||||||
name: ATC Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: ATC Battery-Voltage
|
|
||||||
|
@ -1,13 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: atc_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: ATC Temperature
|
|
||||||
humidity:
|
|
||||||
name: ATC Humidity
|
|
||||||
battery_level:
|
|
||||||
name: ATC Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: ATC Battery-Voltage
|
|
||||||
|
15
tests/components/b_parasite/common.yaml
Normal file
15
tests/components/b_parasite/common.yaml
Normal file
@ -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
|
@ -1,15 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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
|
|
||||||
|
@ -1,15 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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
|
|
||||||
|
@ -1,15 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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
|
|
||||||
|
@ -1,15 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
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
|
|
||||||
|
35
tests/components/bang_bang/common.yaml
Normal file
35
tests/components/bang_bang/common.yaml
Normal file
@ -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
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,35 +1 @@
|
|||||||
switch:
|
<<: !include common.yaml
|
||||||
- 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
tests/components/bedjet/common.yaml
Normal file
33
tests/components/bedjet/common.yaml
Normal file
@ -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
|
@ -1,33 +1 @@
|
|||||||
wifi:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
@ -1,33 +1 @@
|
|||||||
wifi:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
@ -1,33 +1 @@
|
|||||||
wifi:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
@ -1,33 +1 @@
|
|||||||
wifi:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
61
tests/components/binary_sensor_map/common.yaml
Normal file
61
tests/components/binary_sensor_map/common.yaml
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
binary_sensor:
|
||||||
|
- platform: template
|
||||||
|
id: bin1
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 10000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: bin2
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 20000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
- platform: template
|
||||||
|
id: bin3
|
||||||
|
lambda: |-
|
||||||
|
if (millis() > 30000) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: binary_sensor_map
|
||||||
|
name: Binary Sensor Map
|
||||||
|
type: group
|
||||||
|
channels:
|
||||||
|
- binary_sensor: bin1
|
||||||
|
value: 10.0
|
||||||
|
- binary_sensor: bin2
|
||||||
|
value: 15.0
|
||||||
|
- binary_sensor: bin3
|
||||||
|
value: 100.0
|
||||||
|
- platform: binary_sensor_map
|
||||||
|
name: Binary Sensor Map
|
||||||
|
type: sum
|
||||||
|
channels:
|
||||||
|
- binary_sensor: bin1
|
||||||
|
value: 10.0
|
||||||
|
- binary_sensor: bin2
|
||||||
|
value: 15.0
|
||||||
|
- binary_sensor: bin3
|
||||||
|
value: 100.0
|
||||||
|
- platform: binary_sensor_map
|
||||||
|
name: Binary Sensor Map
|
||||||
|
type: bayesian
|
||||||
|
prior: 0.4
|
||||||
|
observations:
|
||||||
|
- binary_sensor: bin1
|
||||||
|
prob_given_true: 0.9
|
||||||
|
prob_given_false: 0.4
|
||||||
|
- binary_sensor: bin2
|
||||||
|
prob_given_true: 0.7
|
||||||
|
prob_given_false: 0.05
|
||||||
|
- binary_sensor: bin3
|
||||||
|
prob_given_true: 0.8
|
||||||
|
prob_given_false: 0.2
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
@ -1,61 +1 @@
|
|||||||
binary_sensor:
|
<<: !include common.yaml
|
||||||
- platform: template
|
|
||||||
id: bin1
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 10000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin2
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 20000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
- platform: template
|
|
||||||
id: bin3
|
|
||||||
lambda: |-
|
|
||||||
if (millis() > 30000) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
5
tests/components/ble_client/common.yaml
Normal file
5
tests/components/ble_client/common.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
ble_client:
|
||||||
|
- mac_address: 01:02:03:04:05:06
|
||||||
|
id: test_blec
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: test_blec
|
|
||||||
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: test_blec
|
|
||||||
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: test_blec
|
|
||||||
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
ble_client:
|
|
||||||
- mac_address: 01:02:03:04:05:06
|
|
||||||
id: test_blec
|
|
||||||
|
24
tests/components/ble_presence/common.yaml
Normal file
24
tests/components/ble_presence/common.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: ble_presence
|
||||||
|
mac_address: AC:37:43:77:5F:4C
|
||||||
|
name: ESP32 BLE Tracker Google Home Mini
|
||||||
|
- platform: ble_presence
|
||||||
|
service_uuid: 11aa
|
||||||
|
name: BLE Test Service 16 Presence
|
||||||
|
- platform: ble_presence
|
||||||
|
service_uuid: "11223344"
|
||||||
|
name: BLE Test Service 32 Presence
|
||||||
|
- platform: ble_presence
|
||||||
|
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
||||||
|
name: BLE Test Service 128 Presence
|
||||||
|
- platform: ble_presence
|
||||||
|
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
||||||
|
ibeacon_major: 100
|
||||||
|
ibeacon_minor: 1
|
||||||
|
name: BLE Test iBeacon Presence
|
||||||
|
- platform: ble_presence
|
||||||
|
irk: 1234567890abcdef1234567890abcdef
|
||||||
|
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
||||||
|
|
@ -1,24 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: ble_presence
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: ESP32 BLE Tracker Google Home Mini
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
ibeacon_major: 100
|
|
||||||
ibeacon_minor: 1
|
|
||||||
name: BLE Test iBeacon Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
irk: 1234567890abcdef1234567890abcdef
|
|
||||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
|
||||||
|
|
||||||
|
@ -1,24 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: ble_presence
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: ESP32 BLE Tracker Google Home Mini
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
ibeacon_major: 100
|
|
||||||
ibeacon_minor: 1
|
|
||||||
name: BLE Test iBeacon Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
irk: 1234567890abcdef1234567890abcdef
|
|
||||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
|
||||||
|
|
||||||
|
@ -1,24 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: ble_presence
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: ESP32 BLE Tracker Google Home Mini
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
ibeacon_major: 100
|
|
||||||
ibeacon_minor: 1
|
|
||||||
name: BLE Test iBeacon Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
irk: 1234567890abcdef1234567890abcdef
|
|
||||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
|
||||||
|
|
||||||
|
@ -1,24 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: ble_presence
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: ESP32 BLE Tracker Google Home Mini
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
ibeacon_major: 100
|
|
||||||
ibeacon_minor: 1
|
|
||||||
name: BLE Test iBeacon Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
irk: 1234567890abcdef1234567890abcdef
|
|
||||||
name: "ESP32 BLE Tracker with Identity Resolving Key"
|
|
||||||
|
|
||||||
|
18
tests/components/ble_rssi/common.yaml
Normal file
18
tests/components/ble_rssi/common.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: ble_rssi
|
||||||
|
mac_address: AC:37:43:77:5F:4C
|
||||||
|
name: BLE Google Home Mini RSSI value
|
||||||
|
- platform: ble_rssi
|
||||||
|
service_uuid: 11aa
|
||||||
|
name: BLE Test Service 16
|
||||||
|
- platform: ble_rssi
|
||||||
|
service_uuid: "11223344"
|
||||||
|
name: BLE Test Service 32
|
||||||
|
- platform: ble_rssi
|
||||||
|
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
||||||
|
name: BLE Test Service 128
|
||||||
|
- platform: ble_rssi
|
||||||
|
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
||||||
|
name: BLE Test iBeacon UUID
|
@ -1,18 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: ble_rssi
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: BLE Google Home Mini RSSI value
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test iBeacon UUID
|
|
||||||
|
@ -1,18 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: ble_rssi
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: BLE Google Home Mini RSSI value
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test iBeacon UUID
|
|
||||||
|
@ -1,18 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: ble_rssi
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: BLE Google Home Mini RSSI value
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test iBeacon UUID
|
|
||||||
|
@ -1,18 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: ble_rssi
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: BLE Google Home Mini RSSI value
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test iBeacon UUID
|
|
||||||
|
5
tests/components/ble_scanner/common.yaml
Normal file
5
tests/components/ble_scanner/common.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
esp32_ble_tracker:
|
||||||
|
|
||||||
|
text_sensor:
|
||||||
|
- platform: ble_scanner
|
||||||
|
name: Scanner
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: ble_scanner
|
|
||||||
name: Scanner
|
|
||||||
|
@ -1,5 +1 @@
|
|||||||
esp32_ble_tracker:
|
<<: !include common.yaml
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- platform: ble_scanner
|
|
||||||
name: Scanner
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user