mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 12:15:33 +01:00
Formatted test yaml files (#1382)
This commit is contained in:
parent
e42ce64127
commit
d821ead92a
@ -25,3 +25,4 @@ indent_size = 2
|
|||||||
[*.{yaml,yml}]
|
[*.{yaml,yml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
quote_type = single
|
1123
tests/test1.yaml
1123
tests/test1.yaml
File diff suppressed because it is too large
Load Diff
177
tests/test2.yaml
177
tests/test2.yaml
@ -47,147 +47,146 @@ logger:
|
|||||||
as3935_i2c:
|
as3935_i2c:
|
||||||
irq_pin: GPIO12
|
irq_pin: GPIO12
|
||||||
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
entity_id: sensor.hello_world
|
entity_id: sensor.hello_world
|
||||||
id: ha_hello_world
|
id: ha_hello_world
|
||||||
- platform: ble_rssi
|
- platform: ble_rssi
|
||||||
mac_address: AC:37:43:77:5F:4C
|
mac_address: AC:37:43:77:5F:4C
|
||||||
name: "BLE Google Home Mini RSSI value"
|
name: 'BLE Google Home Mini RSSI value'
|
||||||
- platform: ble_rssi
|
- platform: ble_rssi
|
||||||
service_uuid: '11aa'
|
service_uuid: '11aa'
|
||||||
name: "BLE Test Service 16"
|
name: 'BLE Test Service 16'
|
||||||
- platform: ble_rssi
|
- platform: ble_rssi
|
||||||
service_uuid: '11223344'
|
service_uuid: '11223344'
|
||||||
name: "BLE Test Service 32"
|
name: 'BLE Test Service 32'
|
||||||
- platform: ble_rssi
|
- platform: ble_rssi
|
||||||
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
||||||
name: "BLE Test Service 128"
|
name: 'BLE Test Service 128'
|
||||||
- platform: ruuvitag
|
- platform: ruuvitag
|
||||||
mac_address: FF:56:D3:2F:7D:E8
|
mac_address: FF:56:D3:2F:7D:E8
|
||||||
humidity:
|
humidity:
|
||||||
name: "RuuviTag Humidity"
|
name: 'RuuviTag Humidity'
|
||||||
temperature:
|
temperature:
|
||||||
name: "RuuviTag Temperature"
|
name: 'RuuviTag Temperature'
|
||||||
pressure:
|
pressure:
|
||||||
name: "RuuviTag Pressure"
|
name: 'RuuviTag Pressure'
|
||||||
acceleration_x:
|
acceleration_x:
|
||||||
name: "RuuviTag Acceleration X"
|
name: 'RuuviTag Acceleration X'
|
||||||
acceleration_y:
|
acceleration_y:
|
||||||
name: "RuuviTag Acceleration Y"
|
name: 'RuuviTag Acceleration Y'
|
||||||
acceleration_z:
|
acceleration_z:
|
||||||
name: "RuuviTag Acceleration Z"
|
name: 'RuuviTag Acceleration Z'
|
||||||
battery_voltage:
|
battery_voltage:
|
||||||
name: "RuuviTag Battery Voltage"
|
name: 'RuuviTag Battery Voltage'
|
||||||
tx_power:
|
tx_power:
|
||||||
name: "RuuviTag TX Power"
|
name: 'RuuviTag TX Power'
|
||||||
movement_counter:
|
movement_counter:
|
||||||
name: "RuuviTag Movement Counter"
|
name: 'RuuviTag Movement Counter'
|
||||||
measurement_sequence_number:
|
measurement_sequence_number:
|
||||||
name: "RuuviTag Measurement Sequence Number"
|
name: 'RuuviTag Measurement Sequence Number'
|
||||||
- platform: as3935
|
- platform: as3935
|
||||||
lightning_energy:
|
lightning_energy:
|
||||||
name: "Lightning Energy"
|
name: 'Lightning Energy'
|
||||||
distance:
|
distance:
|
||||||
name: "Distance Storm"
|
name: 'Distance Storm'
|
||||||
- platform: xiaomi_hhccjcy01
|
- platform: xiaomi_hhccjcy01
|
||||||
mac_address: 94:2B:FF:5C:91:61
|
mac_address: 94:2B:FF:5C:91:61
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi HHCCJCY01 Temperature"
|
name: 'Xiaomi HHCCJCY01 Temperature'
|
||||||
moisture:
|
moisture:
|
||||||
name: "Xiaomi HHCCJCY01 Moisture"
|
name: 'Xiaomi HHCCJCY01 Moisture'
|
||||||
illuminance:
|
illuminance:
|
||||||
name: "Xiaomi HHCCJCY01 Illuminance"
|
name: 'Xiaomi HHCCJCY01 Illuminance'
|
||||||
conductivity:
|
conductivity:
|
||||||
name: "Xiaomi HHCCJCY01 Soil Conductivity"
|
name: 'Xiaomi HHCCJCY01 Soil Conductivity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi HHCCJCY01 Battery Level"
|
name: 'Xiaomi HHCCJCY01 Battery Level'
|
||||||
- platform: xiaomi_lywsdcgq
|
- platform: xiaomi_lywsdcgq
|
||||||
mac_address: 7A:80:8E:19:36:BA
|
mac_address: 7A:80:8E:19:36:BA
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi LYWSDCGQ Temperature"
|
name: 'Xiaomi LYWSDCGQ Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Xiaomi LYWSDCGQ Humidity"
|
name: 'Xiaomi LYWSDCGQ Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi LYWSDCGQ Battery Level"
|
name: 'Xiaomi LYWSDCGQ Battery Level'
|
||||||
- platform: xiaomi_lywsd02
|
- platform: xiaomi_lywsd02
|
||||||
mac_address: 3F:5B:7D:82:58:4E
|
mac_address: 3F:5B:7D:82:58:4E
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi LYWSD02 Temperature"
|
name: 'Xiaomi LYWSD02 Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Xiaomi LYWSD02 Humidity"
|
name: 'Xiaomi LYWSD02 Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi LYWSD02 Battery Level"
|
name: 'Xiaomi LYWSD02 Battery Level'
|
||||||
- platform: xiaomi_cgg1
|
- platform: xiaomi_cgg1
|
||||||
mac_address: 7A:80:8E:19:36:BA
|
mac_address: 7A:80:8E:19:36:BA
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi CGG1 Temperature"
|
name: 'Xiaomi CGG1 Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Xiaomi CGG1 Humidity"
|
name: 'Xiaomi CGG1 Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi CGG1 Battery Level"
|
name: 'Xiaomi CGG1 Battery Level'
|
||||||
- platform: xiaomi_gcls002
|
- platform: xiaomi_gcls002
|
||||||
mac_address: "94:2B:FF:5C:91:61"
|
mac_address: '94:2B:FF:5C:91:61'
|
||||||
temperature:
|
temperature:
|
||||||
name: "GCLS02 Temperature"
|
name: 'GCLS02 Temperature'
|
||||||
moisture:
|
moisture:
|
||||||
name: "GCLS02 Moisture"
|
name: 'GCLS02 Moisture'
|
||||||
conductivity:
|
conductivity:
|
||||||
name: "GCLS02 Soil Conductivity"
|
name: 'GCLS02 Soil Conductivity'
|
||||||
illuminance:
|
illuminance:
|
||||||
name: "GCLS02 Illuminance"
|
name: 'GCLS02 Illuminance'
|
||||||
- platform: xiaomi_hhccpot002
|
- platform: xiaomi_hhccpot002
|
||||||
mac_address: "94:2B:FF:5C:91:61"
|
mac_address: '94:2B:FF:5C:91:61'
|
||||||
moisture:
|
moisture:
|
||||||
name: "HHCCPOT002 Moisture"
|
name: 'HHCCPOT002 Moisture'
|
||||||
conductivity:
|
conductivity:
|
||||||
name: "HHCCPOT002 Soil Conductivity"
|
name: 'HHCCPOT002 Soil Conductivity'
|
||||||
- platform: xiaomi_lywsd03mmc
|
- platform: xiaomi_lywsd03mmc
|
||||||
mac_address: "A4:C1:38:4E:16:78"
|
mac_address: 'A4:C1:38:4E:16:78'
|
||||||
bindkey: "e9efaa6873f9f9c87a5e75a5f814801c"
|
bindkey: 'e9efaa6873f9f9c87a5e75a5f814801c'
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi LYWSD03MMC Temperature"
|
name: 'Xiaomi LYWSD03MMC Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Xiaomi LYWSD03MMC Humidity"
|
name: 'Xiaomi LYWSD03MMC Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi LYWSD03MMC Battery Level"
|
name: 'Xiaomi LYWSD03MMC Battery Level'
|
||||||
- platform: xiaomi_cgd1
|
- platform: xiaomi_cgd1
|
||||||
mac_address: "A4:C1:38:D1:61:7D"
|
mac_address: 'A4:C1:38:D1:61:7D'
|
||||||
bindkey: "c99d2313182473b38001086febf781bd"
|
bindkey: 'c99d2313182473b38001086febf781bd'
|
||||||
temperature:
|
temperature:
|
||||||
name: "Xiaomi CGD1 Temperature"
|
name: 'Xiaomi CGD1 Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Xiaomi CGD1 Humidity"
|
name: 'Xiaomi CGD1 Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi CGD1 Battery Level"
|
name: 'Xiaomi CGD1 Battery Level'
|
||||||
- platform: xiaomi_jqjcy01ym
|
- platform: xiaomi_jqjcy01ym
|
||||||
mac_address: "7A:80:8E:19:36:BA"
|
mac_address: '7A:80:8E:19:36:BA'
|
||||||
temperature:
|
temperature:
|
||||||
name: "JQJCY01YM Temperature"
|
name: 'JQJCY01YM Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "JQJCY01YM Humidity"
|
name: 'JQJCY01YM Humidity'
|
||||||
formaldehyde:
|
formaldehyde:
|
||||||
name: "JQJCY01YM Formaldehyde"
|
name: 'JQJCY01YM Formaldehyde'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "JQJCY01YM Battery Level"
|
name: 'JQJCY01YM Battery Level'
|
||||||
- platform: atc_mithermometer
|
- platform: atc_mithermometer
|
||||||
mac_address: "A4:C1:38:4E:16:78"
|
mac_address: 'A4:C1:38:4E:16:78'
|
||||||
temperature:
|
temperature:
|
||||||
name: "ATC Temperature"
|
name: 'ATC Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "ATC Humidity"
|
name: 'ATC Humidity'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "ATC Battery-Level"
|
name: 'ATC Battery-Level'
|
||||||
battery_voltage:
|
battery_voltage:
|
||||||
name: "ATC Battery-Voltage"
|
name: 'ATC Battery-Voltage'
|
||||||
|
|
||||||
time:
|
time:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
on_time:
|
on_time:
|
||||||
- at: '16:00:00'
|
- at: '16:00:00'
|
||||||
then:
|
then:
|
||||||
- logger.log: It's 16:00
|
- logger.log: It's 16:00
|
||||||
|
|
||||||
esp32_touch:
|
esp32_touch:
|
||||||
setup_mode: True
|
setup_mode: True
|
||||||
@ -198,44 +197,43 @@ binary_sensor:
|
|||||||
id: ha_hello_world_binary
|
id: ha_hello_world_binary
|
||||||
- platform: ble_presence
|
- platform: ble_presence
|
||||||
mac_address: AC:37:43:77:5F:4C
|
mac_address: AC:37:43:77:5F:4C
|
||||||
name: "ESP32 BLE Tracker Google Home Mini"
|
name: 'ESP32 BLE Tracker Google Home Mini'
|
||||||
- platform: ble_presence
|
- platform: ble_presence
|
||||||
service_uuid: '11aa'
|
service_uuid: '11aa'
|
||||||
name: "BLE Test Service 16 Presence"
|
name: 'BLE Test Service 16 Presence'
|
||||||
- platform: ble_presence
|
- platform: ble_presence
|
||||||
service_uuid: '11223344'
|
service_uuid: '11223344'
|
||||||
name: "BLE Test Service 32 Presence"
|
name: 'BLE Test Service 32 Presence'
|
||||||
- platform: ble_presence
|
- platform: ble_presence
|
||||||
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
||||||
name: "BLE Test Service 128 Presence"
|
name: 'BLE Test Service 128 Presence'
|
||||||
- platform: esp32_touch
|
- platform: esp32_touch
|
||||||
name: "ESP32 Touch Pad GPIO27"
|
name: 'ESP32 Touch Pad GPIO27'
|
||||||
pin: GPIO27
|
pin: GPIO27
|
||||||
threshold: 1000
|
threshold: 1000
|
||||||
- platform: as3935
|
- platform: as3935
|
||||||
name: "Storm Alert"
|
name: 'Storm Alert'
|
||||||
- platform: xiaomi_mue4094rt
|
- platform: xiaomi_mue4094rt
|
||||||
name: "MUE4094RT Motion"
|
name: 'MUE4094RT Motion'
|
||||||
mac_address: "7A:80:8E:19:36:BA"
|
mac_address: '7A:80:8E:19:36:BA'
|
||||||
timeout: "5s"
|
timeout: '5s'
|
||||||
- platform: xiaomi_mjyd02yla
|
- platform: xiaomi_mjyd02yla
|
||||||
name: "MJYD02YL-A Motion"
|
name: 'MJYD02YL-A Motion'
|
||||||
mac_address: "50:EC:50:CD:32:02"
|
mac_address: '50:EC:50:CD:32:02'
|
||||||
bindkey: "48403ebe2d385db8d0c187f81e62cb64"
|
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
|
||||||
idle_time:
|
idle_time:
|
||||||
name: "MJYD02YL-A Idle Time"
|
name: 'MJYD02YL-A Idle Time'
|
||||||
light:
|
light:
|
||||||
name: "MJYD02YL-A Light Status"
|
name: 'MJYD02YL-A Light Status'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "MJYD02YL-A Battery Level"
|
name: 'MJYD02YL-A Battery Level'
|
||||||
- platform: xiaomi_wx08zm
|
- platform: xiaomi_wx08zm
|
||||||
name: "WX08ZM Activation State"
|
name: 'WX08ZM Activation State'
|
||||||
mac_address: "74:a3:4a:b5:07:34"
|
mac_address: '74:a3:4a:b5:07:34'
|
||||||
tablet:
|
tablet:
|
||||||
name: "WX08ZM Tablet Resource"
|
name: 'WX08ZM Tablet Resource'
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "WX08ZM Battery Level"
|
name: 'WX08ZM Battery Level'
|
||||||
|
|
||||||
|
|
||||||
esp32_ble_tracker:
|
esp32_ble_tracker:
|
||||||
on_ble_advertise:
|
on_ble_advertise:
|
||||||
@ -257,7 +255,6 @@ esp32_ble_tracker:
|
|||||||
- lambda: !lambda |-
|
- lambda: !lambda |-
|
||||||
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
||||||
|
|
||||||
|
|
||||||
#esp32_ble_beacon:
|
#esp32_ble_beacon:
|
||||||
# type: iBeacon
|
# type: iBeacon
|
||||||
# uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
# uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
||||||
@ -267,7 +264,7 @@ status_led:
|
|||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- platform: version
|
- platform: version
|
||||||
name: "ESPHome Version"
|
name: 'ESPHome Version'
|
||||||
icon: mdi:icon
|
icon: mdi:icon
|
||||||
id: version_sensor
|
id: version_sensor
|
||||||
on_value:
|
on_value:
|
||||||
@ -275,8 +272,8 @@ text_sensor:
|
|||||||
condition:
|
condition:
|
||||||
- api.connected:
|
- api.connected:
|
||||||
then:
|
then:
|
||||||
- lambda: !lambda |-
|
- lambda: !lambda |-
|
||||||
ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str());
|
ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str());
|
||||||
- script.execute: my_script
|
- script.execute: my_script
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: notify.html5
|
service: notify.html5
|
||||||
@ -297,7 +294,7 @@ text_sensor:
|
|||||||
tag: 1234-abcd
|
tag: 1234-abcd
|
||||||
- homeassistant.tag_scanned: 1234-abcd
|
- homeassistant.tag_scanned: 1234-abcd
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Template Text Sensor"
|
name: 'Template Text Sensor'
|
||||||
lambda: |-
|
lambda: |-
|
||||||
return {"Hello World"};
|
return {"Hello World"};
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
@ -344,6 +341,6 @@ stepper:
|
|||||||
interval:
|
interval:
|
||||||
interval: 5s
|
interval: 5s
|
||||||
then:
|
then:
|
||||||
- logger.log: "Interval Run"
|
- logger.log: 'Interval Run'
|
||||||
|
|
||||||
display:
|
display:
|
||||||
|
118
tests/test3.yaml
118
tests/test3.yaml
@ -15,8 +15,8 @@ esphome:
|
|||||||
substitutions:
|
substitutions:
|
||||||
devicename: test3
|
devicename: test3
|
||||||
devicecomment: test3 device
|
devicecomment: test3 device
|
||||||
min_sub: "0.03"
|
min_sub: '0.03'
|
||||||
max_sub: "12.0%"
|
max_sub: '12.0%'
|
||||||
|
|
||||||
api:
|
api:
|
||||||
port: 8000
|
port: 8000
|
||||||
@ -225,7 +225,7 @@ sensor:
|
|||||||
type: proximity
|
type: proximity
|
||||||
name: APDS9960 Proximity
|
name: APDS9960 Proximity
|
||||||
- platform: vl53l0x
|
- platform: vl53l0x
|
||||||
name: "VL53L0x Distance"
|
name: 'VL53L0x Distance'
|
||||||
address: 0x29
|
address: 0x29
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
- platform: apds9960
|
- platform: apds9960
|
||||||
@ -245,14 +245,14 @@ sensor:
|
|||||||
id: ha_hello_world
|
id: ha_hello_world
|
||||||
- platform: aht10
|
- platform: aht10
|
||||||
temperature:
|
temperature:
|
||||||
name: "Temperature"
|
name: 'Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Humidity"
|
name: 'Humidity'
|
||||||
- platform: am2320
|
- platform: am2320
|
||||||
temperature:
|
temperature:
|
||||||
name: "Temperature"
|
name: 'Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "Humidity"
|
name: 'Humidity'
|
||||||
- platform: adc
|
- platform: adc
|
||||||
pin: VCC
|
pin: VCC
|
||||||
id: my_sensor
|
id: my_sensor
|
||||||
@ -351,83 +351,83 @@ sensor:
|
|||||||
name: ADE7953 Active Power B
|
name: ADE7953 Active Power B
|
||||||
- platform: pzem004t
|
- platform: pzem004t
|
||||||
voltage:
|
voltage:
|
||||||
name: "PZEM00T Voltage"
|
name: 'PZEM00T Voltage'
|
||||||
current:
|
current:
|
||||||
name: "PZEM004T Current"
|
name: 'PZEM004T Current'
|
||||||
power:
|
power:
|
||||||
name: "PZEM004T Power"
|
name: 'PZEM004T Power'
|
||||||
- platform: pzemac
|
- platform: pzemac
|
||||||
voltage:
|
voltage:
|
||||||
name: "PZEMAC Voltage"
|
name: 'PZEMAC Voltage'
|
||||||
current:
|
current:
|
||||||
name: "PZEMAC Current"
|
name: 'PZEMAC Current'
|
||||||
power:
|
power:
|
||||||
name: "PZEMAC Power"
|
name: 'PZEMAC Power'
|
||||||
energy:
|
energy:
|
||||||
name: "PZEMAC Energy"
|
name: 'PZEMAC Energy'
|
||||||
frequency:
|
frequency:
|
||||||
name: "PZEMAC Frequency"
|
name: 'PZEMAC Frequency'
|
||||||
power_factor:
|
power_factor:
|
||||||
name: "PZEMAC Power Factor"
|
name: 'PZEMAC Power Factor'
|
||||||
- platform: pzemdc
|
- platform: pzemdc
|
||||||
voltage:
|
voltage:
|
||||||
name: "PZEMDC Voltage"
|
name: 'PZEMDC Voltage'
|
||||||
current:
|
current:
|
||||||
name: "PZEMDC Current"
|
name: 'PZEMDC Current'
|
||||||
power:
|
power:
|
||||||
name: "PZEMDC Power"
|
name: 'PZEMDC Power'
|
||||||
- platform: tmp102
|
- platform: tmp102
|
||||||
name: "TMP102 Temperature"
|
name: 'TMP102 Temperature'
|
||||||
- platform: hm3301
|
- platform: hm3301
|
||||||
pm_1_0:
|
pm_1_0:
|
||||||
name: "PM1.0"
|
name: 'PM1.0'
|
||||||
pm_2_5:
|
pm_2_5:
|
||||||
name: "PM2.5"
|
name: 'PM2.5'
|
||||||
pm_10_0:
|
pm_10_0:
|
||||||
name: "PM10.0"
|
name: 'PM10.0'
|
||||||
aqi:
|
aqi:
|
||||||
name: "AQI"
|
name: 'AQI'
|
||||||
calculation_type: "AQI"
|
calculation_type: 'AQI'
|
||||||
- platform: pmsx003
|
- platform: pmsx003
|
||||||
type: PMSX003
|
type: PMSX003
|
||||||
pm_1_0:
|
pm_1_0:
|
||||||
name: "PM 1.0 Concentration"
|
name: 'PM 1.0 Concentration'
|
||||||
pm_2_5:
|
pm_2_5:
|
||||||
name: "PM 2.5 Concentration"
|
name: 'PM 2.5 Concentration'
|
||||||
pm_10_0:
|
pm_10_0:
|
||||||
name: "PM 10.0 Concentration"
|
name: 'PM 10.0 Concentration'
|
||||||
- platform: pmsx003
|
- platform: pmsx003
|
||||||
type: PMS5003T
|
type: PMS5003T
|
||||||
pm_2_5:
|
pm_2_5:
|
||||||
name: "PM 2.5 Concentration"
|
name: 'PM 2.5 Concentration'
|
||||||
temperature:
|
temperature:
|
||||||
name: "PMS Temperature"
|
name: 'PMS Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "PMS Humidity"
|
name: 'PMS Humidity'
|
||||||
- platform: pmsx003
|
- platform: pmsx003
|
||||||
type: PMS5003ST
|
type: PMS5003ST
|
||||||
pm_2_5:
|
pm_2_5:
|
||||||
name: "PM 2.5 Concentration"
|
name: 'PM 2.5 Concentration'
|
||||||
temperature:
|
temperature:
|
||||||
name: "PMS Temperature"
|
name: 'PMS Temperature'
|
||||||
humidity:
|
humidity:
|
||||||
name: "PMS Humidity"
|
name: 'PMS Humidity'
|
||||||
formaldehyde:
|
formaldehyde:
|
||||||
name: "PMS Formaldehyde Concentration"
|
name: 'PMS Formaldehyde Concentration'
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
voltage:
|
voltage:
|
||||||
name: "CSE7766 Voltage"
|
name: 'CSE7766 Voltage'
|
||||||
current:
|
current:
|
||||||
name: "CSE7766 Current"
|
name: 'CSE7766 Current'
|
||||||
power:
|
power:
|
||||||
name: "CSE776 Power"
|
name: 'CSE776 Power'
|
||||||
- platform: ezo
|
- platform: ezo
|
||||||
id: ph_ezo
|
id: ph_ezo
|
||||||
address: 99
|
address: 99
|
||||||
unit_of_measurement: "pH"
|
unit_of_measurement: 'pH'
|
||||||
|
|
||||||
time:
|
time:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
|
|
||||||
apds9960:
|
apds9960:
|
||||||
address: 0x20
|
address: 0x20
|
||||||
@ -465,18 +465,18 @@ binary_sensor:
|
|||||||
- platform: mpr121
|
- platform: mpr121
|
||||||
id: touchkey0
|
id: touchkey0
|
||||||
channel: 0
|
channel: 0
|
||||||
name: "touchkey0"
|
name: 'touchkey0'
|
||||||
- platform: mpr121
|
- platform: mpr121
|
||||||
channel: 1
|
channel: 1
|
||||||
name: "touchkey1"
|
name: 'touchkey1'
|
||||||
id: bin1
|
id: bin1
|
||||||
- platform: mpr121
|
- platform: mpr121
|
||||||
channel: 2
|
channel: 2
|
||||||
name: "touchkey2"
|
name: 'touchkey2'
|
||||||
id: bin2
|
id: bin2
|
||||||
- platform: mpr121
|
- platform: mpr121
|
||||||
channel: 3
|
channel: 3
|
||||||
name: "touchkey3"
|
name: 'touchkey3'
|
||||||
id: bin3
|
id: bin3
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
@ -510,7 +510,7 @@ status_led:
|
|||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- platform: version
|
- platform: version
|
||||||
name: "ESPHome Version"
|
name: 'ESPHome Version'
|
||||||
icon: mdi:icon
|
icon: mdi:icon
|
||||||
id: version_sensor
|
id: version_sensor
|
||||||
on_value:
|
on_value:
|
||||||
@ -529,7 +529,7 @@ text_sensor:
|
|||||||
my_variable: |-
|
my_variable: |-
|
||||||
return id(version_sensor).state;
|
return id(version_sensor).state;
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Template Text Sensor"
|
name: 'Template Text Sensor'
|
||||||
lambda: |-
|
lambda: |-
|
||||||
return {"Hello World"};
|
return {"Hello World"};
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
@ -551,7 +551,7 @@ script:
|
|||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "mpr121_toggle"
|
name: 'mpr121_toggle'
|
||||||
id: mpr121_toggle
|
id: mpr121_toggle
|
||||||
optimistic: True
|
optimistic: True
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@ -581,10 +581,10 @@ switch:
|
|||||||
name: Custom Switch
|
name: Custom Switch
|
||||||
|
|
||||||
custom_component:
|
custom_component:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
auto s = new CustomComponent();
|
auto s = new CustomComponent();
|
||||||
s->set_update_interval(15000);
|
s->set_update_interval(15000);
|
||||||
return {s};
|
return {s};
|
||||||
|
|
||||||
stepper:
|
stepper:
|
||||||
- platform: uln2003
|
- platform: uln2003
|
||||||
@ -609,7 +609,7 @@ stepper:
|
|||||||
interval:
|
interval:
|
||||||
interval: 5s
|
interval: 5s
|
||||||
then:
|
then:
|
||||||
- logger.log: "Interval Run"
|
- logger.log: 'Interval Run'
|
||||||
- stepper.set_target:
|
- stepper.set_target:
|
||||||
id: my_stepper2
|
id: my_stepper2
|
||||||
target: 500
|
target: 500
|
||||||
@ -697,7 +697,7 @@ climate:
|
|||||||
default_target_temperature_high: 20°C
|
default_target_temperature_high: 20°C
|
||||||
- platform: pid
|
- platform: pid
|
||||||
id: pid_climate
|
id: pid_climate
|
||||||
name: "PID Climate Controller"
|
name: 'PID Climate Controller'
|
||||||
sensor: ha_hello_world
|
sensor: ha_hello_world
|
||||||
default_target_temperature: 21°C
|
default_target_temperature: 21°C
|
||||||
heat_output: my_slow_pwm
|
heat_output: my_slow_pwm
|
||||||
@ -706,7 +706,6 @@ climate:
|
|||||||
ki: 0.0
|
ki: 0.0
|
||||||
kd: 0.0
|
kd: 0.0
|
||||||
|
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: endstop
|
- platform: endstop
|
||||||
name: Endstop Cover
|
name: Endstop Cover
|
||||||
@ -750,16 +749,15 @@ cover:
|
|||||||
close_duration: 4.5min
|
close_duration: 4.5min
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Template Cover with Tilt
|
name: Template Cover with Tilt
|
||||||
tilt_lambda: "return 0.5;"
|
tilt_lambda: 'return 0.5;'
|
||||||
tilt_action:
|
tilt_action:
|
||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: out
|
id: out
|
||||||
level: !lambda "return tilt;"
|
level: !lambda 'return tilt;'
|
||||||
position_action:
|
position_action:
|
||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: out
|
id: out
|
||||||
level: !lambda "return pos;"
|
level: !lambda 'return pos;'
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: esp8266_pwm
|
- platform: esp8266_pwm
|
||||||
@ -794,7 +792,6 @@ output:
|
|||||||
id: my_slow_pwm
|
id: my_slow_pwm
|
||||||
period: 15s
|
period: 15s
|
||||||
|
|
||||||
|
|
||||||
mcp23017:
|
mcp23017:
|
||||||
id: mcp23017_hub
|
id: mcp23017_hub
|
||||||
|
|
||||||
@ -850,8 +847,7 @@ dfplayer:
|
|||||||
then:
|
then:
|
||||||
if:
|
if:
|
||||||
condition:
|
condition:
|
||||||
not:
|
not: dfplayer.is_playing
|
||||||
dfplayer.is_playing
|
|
||||||
then:
|
then:
|
||||||
logger.log: 'Playback finished event'
|
logger.log: 'Playback finished event'
|
||||||
tm1651:
|
tm1651:
|
||||||
|
Loading…
Reference in New Issue
Block a user