Formatted test yaml files (#1382)

This commit is contained in:
SenexCrenshaw 2020-11-19 21:59:19 -05:00 committed by GitHub
parent e42ce64127
commit d821ead92a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 723 additions and 696 deletions

View file

@ -25,3 +25,4 @@ indent_size = 2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
quote_type = single

File diff suppressed because it is too large Load diff

View file

@ -47,143 +47,142 @@ logger:
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"
name: 'BLE Google Home Mini RSSI value'
- platform: ble_rssi
service_uuid: '11aa'
name: "BLE Test Service 16"
name: 'BLE Test Service 16'
- platform: ble_rssi
service_uuid: '11223344'
name: "BLE Test Service 32"
name: 'BLE Test Service 32'
- platform: ble_rssi
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
name: "BLE Test Service 128"
name: 'BLE Test Service 128'
- platform: ruuvitag
mac_address: FF:56:D3:2F:7D:E8
humidity:
name: "RuuviTag Humidity"
name: 'RuuviTag Humidity'
temperature:
name: "RuuviTag Temperature"
name: 'RuuviTag Temperature'
pressure:
name: "RuuviTag Pressure"
name: 'RuuviTag Pressure'
acceleration_x:
name: "RuuviTag Acceleration X"
name: 'RuuviTag Acceleration X'
acceleration_y:
name: "RuuviTag Acceleration Y"
name: 'RuuviTag Acceleration Y'
acceleration_z:
name: "RuuviTag Acceleration Z"
name: 'RuuviTag Acceleration Z'
battery_voltage:
name: "RuuviTag Battery Voltage"
name: 'RuuviTag Battery Voltage'
tx_power:
name: "RuuviTag TX Power"
name: 'RuuviTag TX Power'
movement_counter:
name: "RuuviTag Movement Counter"
name: 'RuuviTag Movement Counter'
measurement_sequence_number:
name: "RuuviTag Measurement Sequence Number"
name: 'RuuviTag Measurement Sequence Number'
- platform: as3935
lightning_energy:
name: "Lightning Energy"
name: 'Lightning Energy'
distance:
name: "Distance Storm"
name: 'Distance Storm'
- platform: xiaomi_hhccjcy01
mac_address: 94:2B:FF:5C:91:61
temperature:
name: "Xiaomi HHCCJCY01 Temperature"
name: 'Xiaomi HHCCJCY01 Temperature'
moisture:
name: "Xiaomi HHCCJCY01 Moisture"
name: 'Xiaomi HHCCJCY01 Moisture'
illuminance:
name: "Xiaomi HHCCJCY01 Illuminance"
name: 'Xiaomi HHCCJCY01 Illuminance'
conductivity:
name: "Xiaomi HHCCJCY01 Soil Conductivity"
name: 'Xiaomi HHCCJCY01 Soil Conductivity'
battery_level:
name: "Xiaomi HHCCJCY01 Battery Level"
name: 'Xiaomi HHCCJCY01 Battery Level'
- platform: xiaomi_lywsdcgq
mac_address: 7A:80:8E:19:36:BA
temperature:
name: "Xiaomi LYWSDCGQ Temperature"
name: 'Xiaomi LYWSDCGQ Temperature'
humidity:
name: "Xiaomi LYWSDCGQ Humidity"
name: 'Xiaomi LYWSDCGQ Humidity'
battery_level:
name: "Xiaomi LYWSDCGQ Battery Level"
name: 'Xiaomi LYWSDCGQ Battery Level'
- platform: xiaomi_lywsd02
mac_address: 3F:5B:7D:82:58:4E
temperature:
name: "Xiaomi LYWSD02 Temperature"
name: 'Xiaomi LYWSD02 Temperature'
humidity:
name: "Xiaomi LYWSD02 Humidity"
name: 'Xiaomi LYWSD02 Humidity'
battery_level:
name: "Xiaomi LYWSD02 Battery Level"
name: 'Xiaomi LYWSD02 Battery Level'
- platform: xiaomi_cgg1
mac_address: 7A:80:8E:19:36:BA
temperature:
name: "Xiaomi CGG1 Temperature"
name: 'Xiaomi CGG1 Temperature'
humidity:
name: "Xiaomi CGG1 Humidity"
name: 'Xiaomi CGG1 Humidity'
battery_level:
name: "Xiaomi CGG1 Battery Level"
name: 'Xiaomi CGG1 Battery Level'
- platform: xiaomi_gcls002
mac_address: "94:2B:FF:5C:91:61"
mac_address: '94:2B:FF:5C:91:61'
temperature:
name: "GCLS02 Temperature"
name: 'GCLS02 Temperature'
moisture:
name: "GCLS02 Moisture"
name: 'GCLS02 Moisture'
conductivity:
name: "GCLS02 Soil Conductivity"
name: 'GCLS02 Soil Conductivity'
illuminance:
name: "GCLS02 Illuminance"
name: 'GCLS02 Illuminance'
- platform: xiaomi_hhccpot002
mac_address: "94:2B:FF:5C:91:61"
mac_address: '94:2B:FF:5C:91:61'
moisture:
name: "HHCCPOT002 Moisture"
name: 'HHCCPOT002 Moisture'
conductivity:
name: "HHCCPOT002 Soil Conductivity"
name: 'HHCCPOT002 Soil Conductivity'
- platform: xiaomi_lywsd03mmc
mac_address: "A4:C1:38:4E:16:78"
bindkey: "e9efaa6873f9f9c87a5e75a5f814801c"
mac_address: 'A4:C1:38:4E:16:78'
bindkey: 'e9efaa6873f9f9c87a5e75a5f814801c'
temperature:
name: "Xiaomi LYWSD03MMC Temperature"
name: 'Xiaomi LYWSD03MMC Temperature'
humidity:
name: "Xiaomi LYWSD03MMC Humidity"
name: 'Xiaomi LYWSD03MMC Humidity'
battery_level:
name: "Xiaomi LYWSD03MMC Battery Level"
name: 'Xiaomi LYWSD03MMC Battery Level'
- platform: xiaomi_cgd1
mac_address: "A4:C1:38:D1:61:7D"
bindkey: "c99d2313182473b38001086febf781bd"
mac_address: 'A4:C1:38:D1:61:7D'
bindkey: 'c99d2313182473b38001086febf781bd'
temperature:
name: "Xiaomi CGD1 Temperature"
name: 'Xiaomi CGD1 Temperature'
humidity:
name: "Xiaomi CGD1 Humidity"
name: 'Xiaomi CGD1 Humidity'
battery_level:
name: "Xiaomi CGD1 Battery Level"
name: 'Xiaomi CGD1 Battery Level'
- platform: xiaomi_jqjcy01ym
mac_address: "7A:80:8E:19:36:BA"
mac_address: '7A:80:8E:19:36:BA'
temperature:
name: "JQJCY01YM Temperature"
name: 'JQJCY01YM Temperature'
humidity:
name: "JQJCY01YM Humidity"
name: 'JQJCY01YM Humidity'
formaldehyde:
name: "JQJCY01YM Formaldehyde"
name: 'JQJCY01YM Formaldehyde'
battery_level:
name: "JQJCY01YM Battery Level"
name: 'JQJCY01YM Battery Level'
- platform: atc_mithermometer
mac_address: "A4:C1:38:4E:16:78"
mac_address: 'A4:C1:38:4E:16:78'
temperature:
name: "ATC Temperature"
name: 'ATC Temperature'
humidity:
name: "ATC Humidity"
name: 'ATC Humidity'
battery_level:
name: "ATC Battery-Level"
name: 'ATC Battery-Level'
battery_voltage:
name: "ATC Battery-Voltage"
name: 'ATC Battery-Voltage'
time:
- platform: homeassistant
- platform: homeassistant
on_time:
- at: '16:00:00'
then:
@ -198,44 +197,43 @@ binary_sensor:
id: ha_hello_world_binary
- platform: ble_presence
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
service_uuid: '11aa'
name: "BLE Test Service 16 Presence"
name: 'BLE Test Service 16 Presence'
- platform: ble_presence
service_uuid: '11223344'
name: "BLE Test Service 32 Presence"
name: 'BLE Test Service 32 Presence'
- platform: ble_presence
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
name: "BLE Test Service 128 Presence"
name: 'BLE Test Service 128 Presence'
- platform: esp32_touch
name: "ESP32 Touch Pad GPIO27"
name: 'ESP32 Touch Pad GPIO27'
pin: GPIO27
threshold: 1000
- platform: as3935
name: "Storm Alert"
name: 'Storm Alert'
- platform: xiaomi_mue4094rt
name: "MUE4094RT Motion"
mac_address: "7A:80:8E:19:36:BA"
timeout: "5s"
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"
name: 'MJYD02YL-A Motion'
mac_address: '50:EC:50:CD:32:02'
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
idle_time:
name: "MJYD02YL-A Idle Time"
name: 'MJYD02YL-A Idle Time'
light:
name: "MJYD02YL-A Light Status"
name: 'MJYD02YL-A Light Status'
battery_level:
name: "MJYD02YL-A Battery Level"
name: 'MJYD02YL-A Battery Level'
- platform: xiaomi_wx08zm
name: "WX08ZM Activation State"
mac_address: "74:a3:4a:b5:07:34"
name: 'WX08ZM Activation State'
mac_address: '74:a3:4a:b5:07:34'
tablet:
name: "WX08ZM Tablet Resource"
name: 'WX08ZM Tablet Resource'
battery_level:
name: "WX08ZM Battery Level"
name: 'WX08ZM Battery Level'
esp32_ble_tracker:
on_ble_advertise:
@ -257,7 +255,6 @@ esp32_ble_tracker:
- lambda: !lambda |-
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
#esp32_ble_beacon:
# type: iBeacon
# uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
@ -267,7 +264,7 @@ status_led:
text_sensor:
- platform: version
name: "ESPHome Version"
name: 'ESPHome Version'
icon: mdi:icon
id: version_sensor
on_value:
@ -297,7 +294,7 @@ text_sensor:
tag: 1234-abcd
- homeassistant.tag_scanned: 1234-abcd
- platform: template
name: "Template Text Sensor"
name: 'Template Text Sensor'
lambda: |-
return {"Hello World"};
- platform: homeassistant
@ -344,6 +341,6 @@ stepper:
interval:
interval: 5s
then:
- logger.log: "Interval Run"
- logger.log: 'Interval Run'
display:

View file

@ -15,8 +15,8 @@ esphome:
substitutions:
devicename: test3
devicecomment: test3 device
min_sub: "0.03"
max_sub: "12.0%"
min_sub: '0.03'
max_sub: '12.0%'
api:
port: 8000
@ -225,7 +225,7 @@ sensor:
type: proximity
name: APDS9960 Proximity
- platform: vl53l0x
name: "VL53L0x Distance"
name: 'VL53L0x Distance'
address: 0x29
update_interval: 60s
- platform: apds9960
@ -245,14 +245,14 @@ sensor:
id: ha_hello_world
- platform: aht10
temperature:
name: "Temperature"
name: 'Temperature'
humidity:
name: "Humidity"
name: 'Humidity'
- platform: am2320
temperature:
name: "Temperature"
name: 'Temperature'
humidity:
name: "Humidity"
name: 'Humidity'
- platform: adc
pin: VCC
id: my_sensor
@ -351,83 +351,83 @@ sensor:
name: ADE7953 Active Power B
- platform: pzem004t
voltage:
name: "PZEM00T Voltage"
name: 'PZEM00T Voltage'
current:
name: "PZEM004T Current"
name: 'PZEM004T Current'
power:
name: "PZEM004T Power"
name: 'PZEM004T Power'
- platform: pzemac
voltage:
name: "PZEMAC Voltage"
name: 'PZEMAC Voltage'
current:
name: "PZEMAC Current"
name: 'PZEMAC Current'
power:
name: "PZEMAC Power"
name: 'PZEMAC Power'
energy:
name: "PZEMAC Energy"
name: 'PZEMAC Energy'
frequency:
name: "PZEMAC Frequency"
name: 'PZEMAC Frequency'
power_factor:
name: "PZEMAC Power Factor"
name: 'PZEMAC Power Factor'
- platform: pzemdc
voltage:
name: "PZEMDC Voltage"
name: 'PZEMDC Voltage'
current:
name: "PZEMDC Current"
name: 'PZEMDC Current'
power:
name: "PZEMDC Power"
name: 'PZEMDC Power'
- platform: tmp102
name: "TMP102 Temperature"
name: 'TMP102 Temperature'
- platform: hm3301
pm_1_0:
name: "PM1.0"
name: 'PM1.0'
pm_2_5:
name: "PM2.5"
name: 'PM2.5'
pm_10_0:
name: "PM10.0"
name: 'PM10.0'
aqi:
name: "AQI"
calculation_type: "AQI"
name: 'AQI'
calculation_type: 'AQI'
- platform: pmsx003
type: PMSX003
pm_1_0:
name: "PM 1.0 Concentration"
name: 'PM 1.0 Concentration'
pm_2_5:
name: "PM 2.5 Concentration"
name: 'PM 2.5 Concentration'
pm_10_0:
name: "PM 10.0 Concentration"
name: 'PM 10.0 Concentration'
- platform: pmsx003
type: PMS5003T
pm_2_5:
name: "PM 2.5 Concentration"
name: 'PM 2.5 Concentration'
temperature:
name: "PMS Temperature"
name: 'PMS Temperature'
humidity:
name: "PMS Humidity"
name: 'PMS Humidity'
- platform: pmsx003
type: PMS5003ST
pm_2_5:
name: "PM 2.5 Concentration"
name: 'PM 2.5 Concentration'
temperature:
name: "PMS Temperature"
name: 'PMS Temperature'
humidity:
name: "PMS Humidity"
name: 'PMS Humidity'
formaldehyde:
name: "PMS Formaldehyde Concentration"
name: 'PMS Formaldehyde Concentration'
- platform: cse7766
voltage:
name: "CSE7766 Voltage"
name: 'CSE7766 Voltage'
current:
name: "CSE7766 Current"
name: 'CSE7766 Current'
power:
name: "CSE776 Power"
name: 'CSE776 Power'
- platform: ezo
id: ph_ezo
address: 99
unit_of_measurement: "pH"
unit_of_measurement: 'pH'
time:
- platform: homeassistant
- platform: homeassistant
apds9960:
address: 0x20
@ -465,18 +465,18 @@ binary_sensor:
- platform: mpr121
id: touchkey0
channel: 0
name: "touchkey0"
name: 'touchkey0'
- platform: mpr121
channel: 1
name: "touchkey1"
name: 'touchkey1'
id: bin1
- platform: mpr121
channel: 2
name: "touchkey2"
name: 'touchkey2'
id: bin2
- platform: mpr121
channel: 3
name: "touchkey3"
name: 'touchkey3'
id: bin3
on_press:
then:
@ -510,7 +510,7 @@ status_led:
text_sensor:
- platform: version
name: "ESPHome Version"
name: 'ESPHome Version'
icon: mdi:icon
id: version_sensor
on_value:
@ -529,7 +529,7 @@ text_sensor:
my_variable: |-
return id(version_sensor).state;
- platform: template
name: "Template Text Sensor"
name: 'Template Text Sensor'
lambda: |-
return {"Hello World"};
- platform: homeassistant
@ -551,7 +551,7 @@ script:
switch:
- platform: template
name: "mpr121_toggle"
name: 'mpr121_toggle'
id: mpr121_toggle
optimistic: True
- platform: gpio
@ -609,7 +609,7 @@ stepper:
interval:
interval: 5s
then:
- logger.log: "Interval Run"
- logger.log: 'Interval Run'
- stepper.set_target:
id: my_stepper2
target: 500
@ -697,7 +697,7 @@ climate:
default_target_temperature_high: 20°C
- platform: pid
id: pid_climate
name: "PID Climate Controller"
name: 'PID Climate Controller'
sensor: ha_hello_world
default_target_temperature: 21°C
heat_output: my_slow_pwm
@ -706,7 +706,6 @@ climate:
ki: 0.0
kd: 0.0
cover:
- platform: endstop
name: Endstop Cover
@ -750,16 +749,15 @@ cover:
close_duration: 4.5min
- platform: template
name: Template Cover with Tilt
tilt_lambda: "return 0.5;"
tilt_lambda: 'return 0.5;'
tilt_action:
- output.set_level:
id: out
level: !lambda "return tilt;"
level: !lambda 'return tilt;'
position_action:
- output.set_level:
id: out
level: !lambda "return pos;"
level: !lambda 'return pos;'
output:
- platform: esp8266_pwm
@ -794,7 +792,6 @@ output:
id: my_slow_pwm
period: 15s
mcp23017:
id: mcp23017_hub
@ -850,8 +847,7 @@ dfplayer:
then:
if:
condition:
not:
dfplayer.is_playing
not: dfplayer.is_playing
then:
logger.log: 'Playback finished event'
tm1651: