mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
151
tests/test2.yaml
151
tests/test2.yaml
@@ -44,16 +44,14 @@ ota:
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
web_server:
|
||||
auth:
|
||||
username: admin
|
||||
password: admin
|
||||
|
||||
as3935_i2c:
|
||||
irq_pin: GPIO12
|
||||
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.hello_world
|
||||
id: ha_hello_world
|
||||
- platform: ble_rssi
|
||||
mac_address: AC:37:43:77:5F:4C
|
||||
name: "BLE Google Home Mini RSSI value"
|
||||
@@ -66,40 +64,6 @@ sensor:
|
||||
- platform: ble_rssi
|
||||
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
||||
name: "BLE Test Service 128"
|
||||
- platform: xiaomi_hhccjcy01
|
||||
mac_address: 94:2B:FF:5C:91:61
|
||||
temperature:
|
||||
name: "Xiaomi HHCCJCY01 Temperature"
|
||||
moisture:
|
||||
name: "Xiaomi HHCCJCY01 Moisture"
|
||||
illuminance:
|
||||
name: "Xiaomi HHCCJCY01 Illuminance"
|
||||
conductivity:
|
||||
name: "Xiaomi HHCCJCY01 Soil Conductivity"
|
||||
battery_level:
|
||||
name: "Xiaomi HHCCJCY01 Battery Level"
|
||||
- platform: xiaomi_lywsdcgq
|
||||
mac_address: 7A:80:8E:19:36:BA
|
||||
temperature:
|
||||
name: "Xiaomi LYWSDCGQ Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi LYWSDCGQ Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi LYWSDCGQ Battery Level"
|
||||
- platform: xiaomi_lywsd02
|
||||
mac_address: 3F:5B:7D:82:58:4E
|
||||
temperature:
|
||||
name: "Xiaomi LYWSD02 Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi LYWSD02 Humidity"
|
||||
- platform: xiaomi_cgg1
|
||||
mac_address: 7A:80:8E:19:36:BA
|
||||
temperature:
|
||||
name: "Xiaomi CGG1 Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi CGG1 Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi CGG1 Battery Level"
|
||||
- platform: ruuvitag
|
||||
mac_address: FF:56:D3:2F:7D:E8
|
||||
humidity:
|
||||
@@ -122,14 +86,88 @@ sensor:
|
||||
name: "RuuviTag Movement Counter"
|
||||
measurement_sequence_number:
|
||||
name: "RuuviTag Measurement Sequence Number"
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.hello_world
|
||||
id: ha_hello_world
|
||||
- platform: as3935
|
||||
lightning_energy:
|
||||
name: "Lightning Energy"
|
||||
distance:
|
||||
name: "Distance Storm"
|
||||
- platform: xiaomi_hhccjcy01
|
||||
mac_address: 94:2B:FF:5C:91:61
|
||||
temperature:
|
||||
name: "Xiaomi HHCCJCY01 Temperature"
|
||||
moisture:
|
||||
name: "Xiaomi HHCCJCY01 Moisture"
|
||||
illuminance:
|
||||
name: "Xiaomi HHCCJCY01 Illuminance"
|
||||
conductivity:
|
||||
name: "Xiaomi HHCCJCY01 Soil Conductivity"
|
||||
- platform: xiaomi_lywsdcgq
|
||||
mac_address: 7A:80:8E:19:36:BA
|
||||
temperature:
|
||||
name: "Xiaomi LYWSDCGQ Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi LYWSDCGQ Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi LYWSDCGQ Battery Level"
|
||||
- platform: xiaomi_lywsd02
|
||||
mac_address: 3F:5B:7D:82:58:4E
|
||||
temperature:
|
||||
name: "Xiaomi LYWSD02 Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi LYWSD02 Humidity"
|
||||
- platform: xiaomi_cgg1
|
||||
mac_address: 7A:80:8E:19:36:BA
|
||||
temperature:
|
||||
name: "Xiaomi CGG1 Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi CGG1 Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi CGG1 Battery Level"
|
||||
- platform: xiaomi_gcls002
|
||||
mac_address: "94:2B:FF:5C:91:61"
|
||||
temperature:
|
||||
name: "GCLS02 Temperature"
|
||||
moisture:
|
||||
name: "GCLS02 Moisture"
|
||||
conductivity:
|
||||
name: "GCLS02 Soil Conductivity"
|
||||
illuminance:
|
||||
name: "GCLS02 Illuminance"
|
||||
- platform: xiaomi_hhccpot002
|
||||
mac_address: "94:2B:FF:5C:91:61"
|
||||
moisture:
|
||||
name: "HHCCPOT002 Moisture"
|
||||
conductivity:
|
||||
name: "HHCCPOT002 Soil Conductivity"
|
||||
- platform: xiaomi_lywsd03mmc
|
||||
mac_address: "A4:C1:38:4E:16:78"
|
||||
bindkey: "e9efaa6873f9f9c87a5e75a5f814801c"
|
||||
temperature:
|
||||
name: "Xiaomi LYWSD03MMC Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi LYWSD03MMC Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi LYWSD03MMC Battery Level"
|
||||
- platform: xiaomi_cgd1
|
||||
mac_address: "A4:C1:38:D1:61:7D"
|
||||
bindkey: "c99d2313182473b38001086febf781bd"
|
||||
temperature:
|
||||
name: "Xiaomi CGD1 Temperature"
|
||||
humidity:
|
||||
name: "Xiaomi CGD1 Humidity"
|
||||
battery_level:
|
||||
name: "Xiaomi CGD1 Battery Level"
|
||||
- platform: xiaomi_jqjcy01ym
|
||||
mac_address: "7A:80:8E:19:36:BA"
|
||||
temperature:
|
||||
name: "JQJCY01YM Temperature"
|
||||
humidity:
|
||||
name: "JQJCY01YM Humidity"
|
||||
formaldehyde:
|
||||
name: "JQJCY01YM Formaldehyde"
|
||||
battery_level:
|
||||
name: "JQJCY01YM Battery Level"
|
||||
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
@@ -142,6 +180,9 @@ esp32_touch:
|
||||
setup_mode: True
|
||||
|
||||
binary_sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: binary_sensor.hello_world
|
||||
id: ha_hello_world_binary
|
||||
- platform: ble_presence
|
||||
mac_address: AC:37:43:77:5F:4C
|
||||
name: "ESP32 BLE Tracker Google Home Mini"
|
||||
@@ -158,11 +199,30 @@ binary_sensor:
|
||||
name: "ESP32 Touch Pad GPIO27"
|
||||
pin: GPIO27
|
||||
threshold: 1000
|
||||
- platform: homeassistant
|
||||
entity_id: binary_sensor.hello_world
|
||||
id: ha_hello_world_binary
|
||||
- platform: as3935
|
||||
name: "Storm Alert"
|
||||
- platform: xiaomi_mue4094rt
|
||||
name: "MUE4094RT Motion"
|
||||
mac_address: "7A:80:8E:19:36:BA"
|
||||
timeout: "5s"
|
||||
- platform: xiaomi_mjyd02yla
|
||||
name: "MJYD02YL-A Motion"
|
||||
mac_address: "50:EC:50:CD:32:02"
|
||||
bindkey: "48403ebe2d385db8d0c187f81e62cb64"
|
||||
idle_time:
|
||||
name: "MJYD02YL-A Idle Time"
|
||||
light:
|
||||
name: "MJYD02YL-A Light Status"
|
||||
battery_level:
|
||||
name: "MJYD02YL-A Battery Level"
|
||||
- platform: xiaomi_wx08zm
|
||||
name: "WX08ZM Activation State"
|
||||
mac_address: "74:a3:4a:b5:07:34"
|
||||
tablet:
|
||||
name: "WX08ZM Tablet Resource"
|
||||
battery_level:
|
||||
name: "WX08ZM Battery Level"
|
||||
|
||||
|
||||
esp32_ble_tracker:
|
||||
on_ble_advertise:
|
||||
@@ -257,3 +317,4 @@ interval:
|
||||
|
||||
display:
|
||||
|
||||
|
||||
|
73
tests/test4.yaml
Normal file
73
tests/test4.yaml
Normal file
@@ -0,0 +1,73 @@
|
||||
esphome:
|
||||
name: $devicename
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
build_path: build/test4
|
||||
|
||||
substitutions:
|
||||
devicename: test4
|
||||
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
mdc_pin: GPIO23
|
||||
mdio_pin: GPIO25
|
||||
clk_mode: GPIO0_IN
|
||||
phy_addr: 0
|
||||
power_pin: GPIO25
|
||||
manual_ip:
|
||||
static_ip: 192.168.178.56
|
||||
gateway: 192.168.178.1
|
||||
subnet: 255.255.255.0
|
||||
domain: .local
|
||||
|
||||
api:
|
||||
|
||||
i2c:
|
||||
sda: 21
|
||||
scl: 22
|
||||
scan: False
|
||||
|
||||
spi:
|
||||
clk_pin: GPIO21
|
||||
mosi_pin: GPIO22
|
||||
miso_pin: GPIO23
|
||||
|
||||
uart:
|
||||
tx_pin: GPIO22
|
||||
rx_pin: GPIO23
|
||||
baud_rate: 115200
|
||||
|
||||
ota:
|
||||
safe_mode: True
|
||||
port: 3286
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
web_server:
|
||||
auth:
|
||||
username: admin
|
||||
password: admin
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.hello_world
|
||||
id: ha_hello_world
|
||||
#
|
||||
# platform sensor.apds9960 requires component apds9960
|
||||
#
|
||||
# - platform: apds9960
|
||||
# type: proximity
|
||||
# name: APDS9960 Proximity
|
||||
# - platform: apds9960
|
||||
# type: clear
|
||||
# name: APDS9960 Clear
|
||||
# - platform: apds9960
|
||||
# type: red
|
||||
# name: APDS9960 Red
|
||||
# - platform: apds9960
|
||||
# type: green
|
||||
# name: APDS9960 Green
|
||||
# - platform: apds9960
|
||||
# type: blue
|
||||
# name: APDS9960 Blue
|
Reference in New Issue
Block a user