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
4 changed files with 723 additions and 696 deletions

View File

@@ -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

View File

@@ -198,11 +198,11 @@ adalight:
sensor: sensor:
- platform: adc - platform: adc
pin: A0 pin: A0
name: "Living Room Brightness" name: 'Living Room Brightness'
update_interval: '1:01' update_interval: '1:01'
attenuation: 2.5db attenuation: 2.5db
unit_of_measurement: "°C" unit_of_measurement: '°C'
icon: "mdi:water-percent" icon: 'mdi:water-percent'
accuracy_decimals: 5 accuracy_decimals: 5
expire_after: 120s expire_after: 120s
setup_priority: -100 setup_priority: -100
@@ -255,9 +255,9 @@ sensor:
ESP_LOGD("main", "Got raw value %f", x); ESP_LOGD("main", "Got raw value %f", x);
- logger.log: - logger.log:
level: DEBUG level: DEBUG
format: "Got raw value %f" format: 'Got raw value %f'
args: ['x'] args: ['x']
- logger.log: "Got raw value NAN" - logger.log: 'Got raw value NAN'
- mqtt.publish: - mqtt.publish:
topic: some/topic topic: some/topic
payload: Hello payload: Hello
@@ -277,48 +277,48 @@ sensor:
cs_pin: 5 cs_pin: 5
phase_a: phase_a:
voltage: voltage:
name: "EMON Line Voltage A" name: 'EMON Line Voltage A'
current: current:
name: "EMON CT1 Current" name: 'EMON CT1 Current'
power: power:
name: "EMON Active Power CT1" name: 'EMON Active Power CT1'
reactive_power: reactive_power:
name: "EMON Reactive Power CT1" name: 'EMON Reactive Power CT1'
power_factor: power_factor:
name: "EMON Power Factor CT1" name: 'EMON Power Factor CT1'
gain_voltage: 7305 gain_voltage: 7305
gain_ct: 27961 gain_ct: 27961
phase_b: phase_b:
current: current:
name: "EMON CT2 Current" name: 'EMON CT2 Current'
power: power:
name: "EMON Active Power CT2" name: 'EMON Active Power CT2'
reactive_power: reactive_power:
name: "EMON Reactive Power CT2" name: 'EMON Reactive Power CT2'
power_factor: power_factor:
name: "EMON Power Factor CT2" name: 'EMON Power Factor CT2'
gain_voltage: 7305 gain_voltage: 7305
gain_ct: 27961 gain_ct: 27961
phase_c: phase_c:
current: current:
name: "EMON CT3 Current" name: 'EMON CT3 Current'
power: power:
name: "EMON Active Power CT3" name: 'EMON Active Power CT3'
reactive_power: reactive_power:
name: "EMON Reactive Power CT3" name: 'EMON Reactive Power CT3'
power_factor: power_factor:
name: "EMON Power Factor CT3" name: 'EMON Power Factor CT3'
gain_voltage: 7305 gain_voltage: 7305
gain_ct: 27961 gain_ct: 27961
frequency: frequency:
name: "EMON Line Frequency" name: 'EMON Line Frequency'
chip_temperature: chip_temperature:
name: "EMON Chip Temp A" name: 'EMON Chip Temp A'
line_frequency: 60Hz line_frequency: 60Hz
current_phases: 3 current_phases: 3
gain_pga: 2X gain_pga: 2X
- platform: bh1750 - platform: bh1750
name: "Living Room Brightness 3" name: 'Living Room Brightness 3'
internal: true internal: true
address: 0x23 address: 0x23
resolution: 1.0 resolution: 1.0
@@ -329,27 +329,27 @@ sensor:
measurement_time: 31 measurement_time: 31
- platform: bme280 - platform: bme280
temperature: temperature:
name: "Outside Temperature" name: 'Outside Temperature'
oversampling: 16x oversampling: 16x
pressure: pressure:
name: "Outside Pressure" name: 'Outside Pressure'
oversampling: none oversampling: none
humidity: humidity:
name: "Outside Humidity" name: 'Outside Humidity'
oversampling: 8x oversampling: 8x
address: 0x77 address: 0x77
iir_filter: 16x iir_filter: 16x
update_interval: 15s update_interval: 15s
- platform: bme680 - platform: bme680
temperature: temperature:
name: "Outside Temperature" name: 'Outside Temperature'
oversampling: 16x oversampling: 16x
pressure: pressure:
name: "Outside Pressure" name: 'Outside Pressure'
humidity: humidity:
name: "Outside Humidity" name: 'Outside Humidity'
gas_resistance: gas_resistance:
name: "Outside Gas Sensor" name: 'Outside Gas Sensor'
address: 0x77 address: 0x77
heater: heater:
temperature: 320 temperature: 320
@@ -357,65 +357,65 @@ sensor:
update_interval: 15s update_interval: 15s
- platform: bmp085 - platform: bmp085
temperature: temperature:
name: "Outside Temperature" name: 'Outside Temperature'
pressure: pressure:
name: "Outside Pressure" name: 'Outside Pressure'
filters: filters:
- lambda: >- - lambda: >-
return x / powf(1.0 - (x / 44330.0), 5.255); return x / powf(1.0 - (x / 44330.0), 5.255);
update_interval: 15s update_interval: 15s
- platform: bmp280 - platform: bmp280
temperature: temperature:
name: "Outside Temperature" name: 'Outside Temperature'
oversampling: 16x oversampling: 16x
pressure: pressure:
name: "Outside Pressure" name: 'Outside Pressure'
address: 0x77 address: 0x77
update_interval: 15s update_interval: 15s
iir_filter: 16x iir_filter: 16x
- platform: dallas - platform: dallas
address: 0x1C0000031EDD2A28 address: 0x1C0000031EDD2A28
name: "Living Room Temperature" name: 'Living Room Temperature'
resolution: 9 resolution: 9
- platform: dallas - platform: dallas
index: 1 index: 1
name: "Living Room Temperature 2" name: 'Living Room Temperature 2'
- platform: dht - platform: dht
pin: GPIO26 pin: GPIO26
temperature: temperature:
name: "Living Room Temperature 3" name: 'Living Room Temperature 3'
humidity: humidity:
name: "Living Room Humidity 3" name: 'Living Room Humidity 3'
model: AM2302 model: AM2302
update_interval: 15s update_interval: 15s
- platform: dht12 - platform: dht12
temperature: temperature:
name: "Living Room Temperature 4" name: 'Living Room Temperature 4'
humidity: humidity:
name: "Living Room Humidity 4" name: 'Living Room Humidity 4'
update_interval: 15s update_interval: 15s
- platform: duty_cycle - platform: duty_cycle
pin: GPIO25 pin: GPIO25
name: Duty Cycle Sensor name: Duty Cycle Sensor
- platform: esp32_hall - platform: esp32_hall
name: "ESP32 Hall Sensor" name: 'ESP32 Hall Sensor'
update_interval: 15s update_interval: 15s
- platform: hdc1080 - platform: hdc1080
temperature: temperature:
name: "Living Room Temperature 5" name: 'Living Room Temperature 5'
humidity: humidity:
name: "Living Room Pressure 5" name: 'Living Room Pressure 5'
update_interval: 15s update_interval: 15s
- platform: hlw8012 - platform: hlw8012
sel_pin: 5 sel_pin: 5
cf_pin: 14 cf_pin: 14
cf1_pin: 13 cf1_pin: 13
current: current:
name: "HLW8012 Current" name: 'HLW8012 Current'
voltage: voltage:
name: "HLW8012 Voltage" name: 'HLW8012 Voltage'
power: power:
name: "HLW8012 Power" name: 'HLW8012 Power'
id: hlw8012_power id: hlw8012_power
update_interval: 15s update_interval: 15s
current_resistor: 0.001 ohm current_resistor: 0.001 ohm
@@ -424,39 +424,39 @@ sensor:
initial_mode: VOLTAGE initial_mode: VOLTAGE
- platform: total_daily_energy - platform: total_daily_energy
power_id: hlw8012_power power_id: hlw8012_power
name: "HLW8012 Total Daily Energy" name: 'HLW8012 Total Daily Energy'
- platform: integration - platform: integration
sensor: hlw8012_power sensor: hlw8012_power
name: "Integration Sensor" name: 'Integration Sensor'
time_unit: s time_unit: s
- platform: hmc5883l - platform: hmc5883l
address: 0x68 address: 0x68
field_strength_x: field_strength_x:
name: "HMC5883L Field Strength X" name: 'HMC5883L Field Strength X'
field_strength_y: field_strength_y:
name: "HMC5883L Field Strength Y" name: 'HMC5883L Field Strength Y'
field_strength_z: field_strength_z:
name: "HMC5883L Field Strength Z" name: 'HMC5883L Field Strength Z'
heading: heading:
name: "HMC5883L Heading" name: 'HMC5883L Heading'
range: 130uT range: 130uT
oversampling: 8x oversampling: 8x
update_interval: 15s update_interval: 15s
- platform: qmc5883l - platform: qmc5883l
address: 0x0D address: 0x0D
field_strength_x: field_strength_x:
name: "QMC5883L Field Strength X" name: 'QMC5883L Field Strength X'
field_strength_y: field_strength_y:
name: "QMC5883L Field Strength Y" name: 'QMC5883L Field Strength Y'
field_strength_z: field_strength_z:
name: "QMC5883L Field Strength Z" name: 'QMC5883L Field Strength Z'
heading: heading:
name: "QMC5883L Heading" name: 'QMC5883L Heading'
range: 800uT range: 800uT
oversampling: 256x oversampling: 256x
update_interval: 15s update_interval: 15s
- platform: hx711 - platform: hx711
name: "HX711 Value" name: 'HX711 Value'
dout_pin: GPIO23 dout_pin: GPIO23
clk_pin: GPIO25 clk_pin: GPIO25
gain: 128 gain: 128
@@ -465,13 +465,13 @@ sensor:
address: 0x40 address: 0x40
shunt_resistance: 0.1 ohm shunt_resistance: 0.1 ohm
current: current:
name: "INA219 Current" name: 'INA219 Current'
power: power:
name: "INA219 Power" name: 'INA219 Power'
bus_voltage: bus_voltage:
name: "INA219 Bus Voltage" name: 'INA219 Bus Voltage'
shunt_voltage: shunt_voltage:
name: "INA219 Shunt Voltage" name: 'INA219 Shunt Voltage'
max_voltage: 32.0V max_voltage: 32.0V
max_current: 3.2A max_current: 3.2A
update_interval: 15s update_interval: 15s
@@ -479,13 +479,13 @@ sensor:
address: 0x40 address: 0x40
shunt_resistance: 0.1 ohm shunt_resistance: 0.1 ohm
current: current:
name: "INA226 Current" name: 'INA226 Current'
power: power:
name: "INA226 Power" name: 'INA226 Power'
bus_voltage: bus_voltage:
name: "INA226 Bus Voltage" name: 'INA226 Bus Voltage'
shunt_voltage: shunt_voltage:
name: "INA226 Shunt Voltage" name: 'INA226 Shunt Voltage'
max_current: 3.2A max_current: 3.2A
update_interval: 15s update_interval: 15s
- platform: ina3221 - platform: ina3221
@@ -493,73 +493,73 @@ sensor:
channel_1: channel_1:
shunt_resistance: 0.1 ohm shunt_resistance: 0.1 ohm
current: current:
name: "INA3221 Channel 1 Current" name: 'INA3221 Channel 1 Current'
power: power:
name: "INA3221 Channel 1 Power" name: 'INA3221 Channel 1 Power'
bus_voltage: bus_voltage:
name: "INA3221 Channel 1 Bus Voltage" name: 'INA3221 Channel 1 Bus Voltage'
shunt_voltage: shunt_voltage:
name: "INA3221 Channel 1 Shunt Voltage" name: 'INA3221 Channel 1 Shunt Voltage'
update_interval: 15s update_interval: 15s
- platform: htu21d - platform: htu21d
temperature: temperature:
name: "Living Room Temperature 6" name: 'Living Room Temperature 6'
humidity: humidity:
name: "Living Room Humidity 6" name: 'Living Room Humidity 6'
update_interval: 15s update_interval: 15s
- platform: max6675 - platform: max6675
name: "Living Room Temperature" name: 'Living Room Temperature'
cs_pin: GPIO23 cs_pin: GPIO23
update_interval: 15s update_interval: 15s
- platform: max31855 - platform: max31855
name: "Den Temperature" name: 'Den Temperature'
cs_pin: GPIO23 cs_pin: GPIO23
update_interval: 15s update_interval: 15s
reference_temperature: reference_temperature:
name: "MAX31855 Internal Temperature" name: 'MAX31855 Internal Temperature'
- platform: max31856 - platform: max31856
name: "BBQ Temperature" name: 'BBQ Temperature'
cs_pin: GPIO17 cs_pin: GPIO17
update_interval: 15s update_interval: 15s
mains_filter: 50Hz mains_filter: 50Hz
- platform: max31865 - platform: max31865
name: "Water Tank Temperature" name: 'Water Tank Temperature'
cs_pin: GPIO23 cs_pin: GPIO23
update_interval: 15s update_interval: 15s
reference_resistance: "430 Ω" reference_resistance: '430 Ω'
rtd_nominal_resistance: "100 Ω" rtd_nominal_resistance: '100 Ω'
- platform: mhz19 - platform: mhz19
co2: co2:
name: "MH-Z19 CO2 Value" name: 'MH-Z19 CO2 Value'
temperature: temperature:
name: "MH-Z19 Temperature" name: 'MH-Z19 Temperature'
update_interval: 15s update_interval: 15s
automatic_baseline_calibration: false automatic_baseline_calibration: false
- platform: mpu6050 - platform: mpu6050
address: 0x68 address: 0x68
accel_x: accel_x:
name: "MPU6050 Accel X" name: 'MPU6050 Accel X'
accel_y: accel_y:
name: "MPU6050 Accel Y" name: 'MPU6050 Accel Y'
accel_z: accel_z:
name: "MPU6050 Accel z" name: 'MPU6050 Accel z'
gyro_x: gyro_x:
name: "MPU6050 Gyro X" name: 'MPU6050 Gyro X'
gyro_y: gyro_y:
name: "MPU6050 Gyro Y" name: 'MPU6050 Gyro Y'
gyro_z: gyro_z:
name: "MPU6050 Gyro z" name: 'MPU6050 Gyro z'
temperature: temperature:
name: "MPU6050 Temperature" name: 'MPU6050 Temperature'
- platform: ms5611 - platform: ms5611
temperature: temperature:
name: "Outside Temperature" name: 'Outside Temperature'
pressure: pressure:
name: "Outside Pressure" name: 'Outside Pressure'
address: 0x77 address: 0x77
update_interval: 15s update_interval: 15s
- platform: pulse_counter - platform: pulse_counter
name: "Pulse Counter" name: 'Pulse Counter'
pin: GPIO12 pin: GPIO12
count_mode: count_mode:
rising_edge: INCREMENT rising_edge: INCREMENT
@@ -567,7 +567,7 @@ sensor:
internal_filter: 13us internal_filter: 13us
update_interval: 15s update_interval: 15s
- platform: rotary_encoder - platform: rotary_encoder
name: "Rotary Encoder" name: 'Rotary Encoder'
id: rotary_encoder1 id: rotary_encoder1
pin_a: GPIO23 pin_a: GPIO23
pin_b: GPIO25 pin_b: GPIO25
@@ -587,33 +587,33 @@ sensor:
id: rotary_encoder1 id: rotary_encoder1
value: !lambda 'return -1;' value: !lambda 'return -1;'
on_clockwise: on_clockwise:
- logger.log: "Clockwise" - logger.log: 'Clockwise'
on_anticlockwise: on_anticlockwise:
- logger.log: "Anticlockwise" - logger.log: 'Anticlockwise'
- platform: pulse_width - platform: pulse_width
name: Pulse Width name: Pulse Width
pin: GPIO12 pin: GPIO12
- platform: senseair - platform: senseair
co2: co2:
name: "SenseAir CO2 Value" name: 'SenseAir CO2 Value'
update_interval: 15s update_interval: 15s
- platform: sht3xd - platform: sht3xd
temperature: temperature:
name: "Living Room Temperature 8" name: 'Living Room Temperature 8'
humidity: humidity:
name: "Living Room Humidity 8" name: 'Living Room Humidity 8'
address: 0x44 address: 0x44
update_interval: 15s update_interval: 15s
- platform: sts3x - platform: sts3x
name: "Living Room Temperature 9" name: 'Living Room Temperature 9'
address: 0x4A address: 0x4A
- platform: scd30 - platform: scd30
co2: co2:
name: "Living Room CO2 9" name: 'Living Room CO2 9'
temperature: temperature:
name: "Living Room Temperature 9" name: 'Living Room Temperature 9'
humidity: humidity:
name: "Living Room Humidity 9" name: 'Living Room Humidity 9'
address: 0x61 address: 0x61
update_interval: 15s update_interval: 15s
automatic_self_calibration: true automatic_self_calibration: true
@@ -621,52 +621,52 @@ sensor:
ambient_pressure_compensation: 961mBar ambient_pressure_compensation: 961mBar
- platform: sgp30 - platform: sgp30
eco2: eco2:
name: "Workshop eCO2" name: 'Workshop eCO2'
accuracy_decimals: 1 accuracy_decimals: 1
tvoc: tvoc:
name: "Workshop TVOC" name: 'Workshop TVOC'
accuracy_decimals: 1 accuracy_decimals: 1
address: 0x58 address: 0x58
update_interval: 5s update_interval: 5s
- platform: sps30 - platform: sps30
pm_1_0: pm_1_0:
name: "Workshop PM <1µm Weight concentration" name: 'Workshop PM <1µm Weight concentration'
id: "workshop_PM_1_0" id: 'workshop_PM_1_0'
pm_2_5: pm_2_5:
name: "Workshop PM <2.5µm Weight concentration" name: 'Workshop PM <2.5µm Weight concentration'
id: "workshop_PM_2_5" id: 'workshop_PM_2_5'
pm_4_0: pm_4_0:
name: "Workshop PM <4µm Weight concentration" name: 'Workshop PM <4µm Weight concentration'
id: "workshop_PM_4_0" id: 'workshop_PM_4_0'
pm_10_0: pm_10_0:
name: "Workshop PM <10µm Weight concentration" name: 'Workshop PM <10µm Weight concentration'
id: "workshop_PM_10_0" id: 'workshop_PM_10_0'
pmc_0_5: pmc_0_5:
name: "Workshop PM <0.5µm Number concentration" name: 'Workshop PM <0.5µm Number concentration'
id: "workshop_PMC_0_5" id: 'workshop_PMC_0_5'
pmc_1_0: pmc_1_0:
name: "Workshop PM <1µm Number concentration" name: 'Workshop PM <1µm Number concentration'
id: "workshop_PMC_1_0" id: 'workshop_PMC_1_0'
pmc_2_5: pmc_2_5:
name: "Workshop PM <2.5µm Number concentration" name: 'Workshop PM <2.5µm Number concentration'
id: "workshop_PMC_2_5" id: 'workshop_PMC_2_5'
pmc_4_0: pmc_4_0:
name: "Workshop PM <4µm Number concentration" name: 'Workshop PM <4µm Number concentration'
id: "workshop_PMC_4_0" id: 'workshop_PMC_4_0'
pmc_10_0: pmc_10_0:
name: "Workshop PM <10µm Number concentration" name: 'Workshop PM <10µm Number concentration'
id: "workshop_PMC_10_0" id: 'workshop_PMC_10_0'
address: 0x69 address: 0x69
update_interval: 10s update_interval: 10s
- platform: shtcx - platform: shtcx
temperature: temperature:
name: "Living Room Temperature 10" name: 'Living Room Temperature 10'
humidity: humidity:
name: "Living Room Humidity 10" name: 'Living Room Humidity 10'
address: 0x70 address: 0x70
update_interval: 15s update_interval: 15s
- platform: template - platform: template
name: "Template Sensor" name: 'Template Sensor'
id: template_sensor id: template_sensor
lambda: |- lambda: |-
if (id(ultrasonic_sensor1).state > 1) { if (id(ultrasonic_sensor1).state > 1) {
@@ -683,7 +683,7 @@ sensor:
id: template_sensor id: template_sensor
state: !lambda 'return NAN;' state: !lambda 'return NAN;'
- platform: tsl2561 - platform: tsl2561
name: "TSL2561 Ambient Light" name: 'TSL2561 Ambient Light'
address: 0x39 address: 0x39
update_interval: 15s update_interval: 15s
is_cs_package: true is_cs_package: true
@@ -694,17 +694,17 @@ sensor:
echo_pin: echo_pin:
number: GPIO23 number: GPIO23
inverted: true inverted: true
name: "Ultrasonic Sensor" name: 'Ultrasonic Sensor'
timeout: 5.5m timeout: 5.5m
id: ultrasonic_sensor1 id: ultrasonic_sensor1
- platform: uptime - platform: uptime
name: Uptime Sensor name: Uptime Sensor
- platform: wifi_signal - platform: wifi_signal
name: "WiFi Signal Sensor" name: 'WiFi Signal Sensor'
update_interval: 15s update_interval: 15s
- platform: mqtt_subscribe - platform: mqtt_subscribe
name: "MQTT Subscribe Sensor 1" name: 'MQTT Subscribe Sensor 1'
topic: "mqtt/topic" topic: 'mqtt/topic'
id: the_sensor id: the_sensor
qos: 2 qos: 2
on_value: on_value:
@@ -715,9 +715,9 @@ sensor:
root["greeting"] = "Hello World"; root["greeting"] = "Hello World";
- platform: sds011 - platform: sds011
pm_2_5: pm_2_5:
name: "SDS011 PM2.5" name: 'SDS011 PM2.5'
pm_10_0: pm_10_0:
name: "SDS011 PM10.0" name: 'SDS011 PM10.0'
update_interval: 5min update_interval: 5min
rx_only: false rx_only: false
- platform: ccs811 - platform: ccs811
@@ -729,9 +729,9 @@ sensor:
baseline: 0x4242 baseline: 0x4242
- platform: tx20 - platform: tx20
wind_speed: wind_speed:
name: "Windspeed" name: 'Windspeed'
wind_direction_degrees: wind_direction_degrees:
name: "Winddirection Degrees" name: 'Winddirection Degrees'
pin: pin:
number: GPIO04 number: GPIO04
mode: INPUT mode: INPUT
@@ -739,55 +739,55 @@ sensor:
clock_pin: GPIO5 clock_pin: GPIO5
data_pin: GPIO4 data_pin: GPIO4
co2: co2:
name: "ZyAura CO2" name: 'ZyAura CO2'
temperature: temperature:
name: "ZyAura Temperature" name: 'ZyAura Temperature'
humidity: humidity:
name: "ZyAura Humidity" name: 'ZyAura Humidity'
- platform: as3935 - platform: as3935
lightning_energy: lightning_energy:
name: "Lightning Energy" name: 'Lightning Energy'
distance: distance:
name: "Distance Storm" name: 'Distance Storm'
- platform: tmp117 - platform: tmp117
name: "TMP117 Temperature" name: 'TMP117 Temperature'
update_interval: 5s update_interval: 5s
- 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: "CAQI" calculation_type: 'CAQI'
- platform: teleinfo - platform: teleinfo
tags: tags:
- tag_name: "HCHC" - tag_name: 'HCHC'
sensor: sensor:
name: "hchc" name: 'hchc'
unit_of_measurement: "Wh" unit_of_measurement: 'Wh'
icon: mdi:flash icon: mdi:flash
- tag_name: "HCHP" - tag_name: 'HCHP'
sensor: sensor:
name: "hchp" name: 'hchp'
unit_of_measurement: "Wh" unit_of_measurement: 'Wh'
icon: mdi:flash icon: mdi:flash
- tag_name: "PAPP" - tag_name: 'PAPP'
sensor: sensor:
name: "papp" name: 'papp'
unit_of_measurement: "VA" unit_of_measurement: 'VA'
icon: mdi:flash icon: mdi:flash
update_interval: 60s update_interval: 60s
historical_mode: true historical_mode: true
- platform: mcp9808 - platform: mcp9808
name: "MCP9808 Temperature" name: 'MCP9808 Temperature'
update_interval: 15s update_interval: 15s
- platform: ezo - platform: ezo
id: ph_ezo id: ph_ezo
address: 99 address: 99
unit_of_measurement: "pH" unit_of_measurement: 'pH'
esp32_touch: esp32_touch:
setup_mode: False setup_mode: False
@@ -801,7 +801,7 @@ esp32_touch:
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
pin: GPIO9 pin: GPIO9
name: "Living Room Window" name: 'Living Room Window'
device_class: window device_class: window
filters: filters:
- invert: - invert:
@@ -841,7 +841,7 @@ binary_sensor:
- OFF for at least 0.2s - OFF for at least 0.2s
then: then:
- logger.log: - logger.log:
format: "Multi Clicked TWO" format: 'Multi Clicked TWO'
level: warn level: warn
- timing: - timing:
- OFF for 1s to 2s - OFF for 1s to 2s
@@ -849,34 +849,34 @@ binary_sensor:
- OFF for at least 0.5s - OFF for at least 0.5s
then: then:
- logger.log: - logger.log:
format: "Multi Clicked LONG SINGLE" format: 'Multi Clicked LONG SINGLE'
level: warn level: warn
- timing: - timing:
- ON for at most 1s - ON for at most 1s
- OFF for at least 0.5s - OFF for at least 0.5s
then: then:
- logger.log: - logger.log:
format: "Multi Clicked SINGLE" format: 'Multi Clicked SINGLE'
level: warn level: warn
id: binary_sensor1 id: binary_sensor1
- platform: gpio - platform: gpio
pin: pin:
number: GPIO9 number: GPIO9
mode: INPUT_PULLUP mode: INPUT_PULLUP
name: "Living Room Window 2" name: 'Living Room Window 2'
- platform: status - platform: status
name: "Living Room Status" name: 'Living Room Status'
- platform: esp32_touch - platform: esp32_touch
name: "ESP32 Touch Pad GPIO27" name: 'ESP32 Touch Pad GPIO27'
pin: GPIO27 pin: GPIO27
threshold: 1000 threshold: 1000
id: btn_left id: btn_left
- platform: nextion - platform: nextion
page_id: 0 page_id: 0
component_id: 2 component_id: 2
name: "Nextion Component 2 Touch" name: 'Nextion Component 2 Touch'
- platform: template - platform: template
name: "Garage Door Open" name: 'Garage Door Open'
id: garage_door id: garage_door
lambda: |- lambda: |-
if (isnan(id(my_sensor).state)) { if (isnan(id(my_sensor).state)) {
@@ -903,33 +903,33 @@ binary_sensor:
frequency: !lambda 'return 500.0;' frequency: !lambda 'return 500.0;'
- platform: pn532 - platform: pn532
uid: 74-10-37-94 uid: 74-10-37-94
name: "PN532 NFC Tag" name: 'PN532 NFC Tag'
- platform: rdm6300 - platform: rdm6300
uid: 7616525 uid: 7616525
name: "RDM6300 NFC Tag" name: 'RDM6300 NFC Tag'
- platform: gpio - platform: gpio
name: "PCF binary sensor" name: 'PCF binary sensor'
pin: pin:
pcf8574: pcf8574_hub pcf8574: pcf8574_hub
number: 1 number: 1
mode: INPUT mode: INPUT
inverted: True inverted: True
- platform: gpio - platform: gpio
name: "MCP21 binary sensor" name: 'MCP21 binary sensor'
pin: pin:
mcp23017: mcp23017_hub mcp23017: mcp23017_hub
number: 1 number: 1
mode: INPUT mode: INPUT
inverted: True inverted: True
- platform: gpio - platform: gpio
name: "MCP22 binary sensor" name: 'MCP22 binary sensor'
pin: pin:
mcp23008: mcp23008_hub mcp23008: mcp23008_hub
number: 7 number: 7
mode: INPUT_PULLUP mode: INPUT_PULLUP
inverted: False inverted: False
- platform: gpio - platform: gpio
name: "MCP23 binary sensor" name: 'MCP23 binary sensor'
pin: pin:
mcp23016: mcp23016_hub mcp23016: mcp23016_hub
number: 7 number: 7
@@ -937,14 +937,48 @@ binary_sensor:
inverted: False inverted: False
- platform: remote_receiver - platform: remote_receiver
name: "Raw Remote Receiver Test" name: 'Raw Remote Receiver Test'
raw: raw:
code: [5685, -4252, 1711, -2265, 1712, -2265, 1711, -2264, 1712, -2266, code:
3700, -2263, 1712, -4254, 1711, -4249, 1715, -2266, 1710, -2267, [
1709, -2265, 3704, -4250, 1712, -4254, 3700, -2260, 1714, -2265, 5685,
1712, -2262, 1714, -2267, 1709] -4252,
1711,
-2265,
1712,
-2265,
1711,
-2264,
1712,
-2266,
3700,
-2263,
1712,
-4254,
1711,
-4249,
1715,
-2266,
1710,
-2267,
1709,
-2265,
3704,
-4250,
1712,
-4254,
3700,
-2260,
1714,
-2265,
1712,
-2262,
1714,
-2267,
1709,
]
- platform: as3935 - platform: as3935
name: "Storm Alert" name: 'Storm Alert'
pca9685: pca9685:
frequency: 500 frequency: 500
@@ -1099,12 +1133,12 @@ e131:
light: light:
- platform: binary - platform: binary
name: "Desk Lamp" name: 'Desk Lamp'
output: gpio_26 output: gpio_26
effects: effects:
- strobe: - strobe:
- strobe: - strobe:
name: "My Strobe" name: 'My Strobe'
colors: colors:
- state: True - state: True
duration: 250ms duration: 250ms
@@ -1119,7 +1153,7 @@ light:
id: livingroom_lights id: livingroom_lights
state: yes state: yes
- platform: monochromatic - platform: monochromatic
name: "Kitchen Lights" name: 'Kitchen Lights'
id: kitchen id: kitchen
output: gpio_19 output: gpio_19
gamma_correct: 2.8 gamma_correct: 2.8
@@ -1128,7 +1162,7 @@ light:
- strobe: - strobe:
- flicker: - flicker:
- flicker: - flicker:
name: "My Flicker" name: 'My Flicker'
alpha: 98% alpha: 98%
intensity: 1.5% intensity: 1.5%
- lambda: - lambda:
@@ -1140,20 +1174,20 @@ light:
if (state == 4) if (state == 4)
state = 0; state = 0;
- platform: rgb - platform: rgb
name: "Living Room Lights" name: 'Living Room Lights'
id: living_room_lights id: living_room_lights
red: pca_0 red: pca_0
green: pca_1 green: pca_1
blue: pca_2 blue: pca_2
- platform: rgbw - platform: rgbw
name: "Living Room Lights 2" name: 'Living Room Lights 2'
red: pca_3 red: pca_3
green: pca_4 green: pca_4
blue: pca_5 blue: pca_5
white: pca_6 white: pca_6
color_interlock: true color_interlock: true
- platform: rgbww - platform: rgbww
name: "Living Room Lights 2" name: 'Living Room Lights 2'
red: pca_3 red: pca_3
green: pca_4 green: pca_4
blue: pca_5 blue: pca_5
@@ -1163,7 +1197,7 @@ light:
warm_white_color_temperature: 500 mireds warm_white_color_temperature: 500 mireds
color_interlock: true color_interlock: true
- platform: cwww - platform: cwww
name: "Living Room Lights 2" name: 'Living Room Lights 2'
cold_white: pca_6 cold_white: pca_6
warm_white: pca_6 warm_white: pca_6
cold_white_color_temperature: 153 mireds cold_white_color_temperature: 153 mireds
@@ -1178,7 +1212,7 @@ light:
max_refresh_rate: 20ms max_refresh_rate: 20ms
power_supply: atx_power_supply power_supply: atx_power_supply
color_correct: [75%, 100%, 50%] color_correct: [75%, 100%, 50%]
name: "FastLED WS2811 Light" name: 'FastLED WS2811 Light'
effects: effects:
- addressable_color_wipe: - addressable_color_wipe:
- addressable_color_wipe: - addressable_color_wipe:
@@ -1221,7 +1255,7 @@ light:
update_interval: 16ms update_interval: 16ms
intensity: 5% intensity: 5%
- addressable_lambda: - addressable_lambda:
name: "Test For Custom Lambda Effect" name: 'Test For Custom Lambda Effect'
lambda: |- lambda: |-
if (initial_run) { if (initial_run) {
it[0] = current_color; it[0] = current_color;
@@ -1257,10 +1291,10 @@ light:
data_rate: 2MHz data_rate: 2MHz
num_leds: 60 num_leds: 60
rgb_order: BRG rgb_order: BRG
name: "FastLED SPI Light" name: 'FastLED SPI Light'
- platform: neopixelbus - platform: neopixelbus
id: addr3 id: addr3
name: "Neopixelbus Light" name: 'Neopixelbus Light'
gamma_correct: 2.8 gamma_correct: 2.8
color_correct: [0.0, 0.0, 0.0, 0.0] color_correct: [0.0, 0.0, 0.0, 0.0]
default_transition_length: 10s default_transition_length: 10s
@@ -1276,7 +1310,7 @@ light:
num_leds: 60 num_leds: 60
pin: GPIO23 pin: GPIO23
- platform: partition - platform: partition
name: "Partition Light" name: 'Partition Light'
segments: segments:
- id: addr1 - id: addr1
from: 0 from: 0
@@ -1327,8 +1361,8 @@ climate:
switch: switch:
- platform: gpio - platform: gpio
pin: GPIO25 pin: GPIO25
name: "Living Room Dehumidifier" name: 'Living Room Dehumidifier'
icon: "mdi:restart" icon: 'mdi:restart'
inverted: True inverted: True
command_topic: custom_command_topic command_topic: custom_command_topic
restore_mode: ALWAYS_OFF restore_mode: ALWAYS_OFF
@@ -1455,14 +1489,14 @@ switch:
id: livingroom_lights id: livingroom_lights
state: yes state: yes
- platform: restart - platform: restart
name: "Living Room Restart" name: 'Living Room Restart'
- platform: shutdown - platform: shutdown
name: "Living Room Shutdown" name: 'Living Room Shutdown'
- platform: output - platform: output
name: "Generic Output" name: 'Generic Output'
output: pca_6 output: pca_6
- platform: template - platform: template
name: "Template Switch" name: 'Template Switch'
id: my_switch id: my_switch
lambda: |- lambda: |-
if (id(binary_sensor1).state) { if (id(binary_sensor1).state) {
@@ -1487,10 +1521,10 @@ switch:
id: my_switch id: my_switch
state: !lambda 'return false;' state: !lambda 'return false;'
- platform: uart - platform: uart
name: "UART String Output" name: 'UART String Output'
data: 'DataToSend' data: 'DataToSend'
- platform: uart - platform: uart
name: "UART Bytes Output" name: 'UART Bytes Output'
data: [0xDE, 0xAD, 0xBE, 0xEF] data: [0xDE, 0xAD, 0xBE, 0xEF]
- platform: template - platform: template
assumed_state: yes assumed_state: yes
@@ -1510,7 +1544,7 @@ switch:
position: 0 position: 0
- platform: gpio - platform: gpio
name: "SN74HC595 Pin #0" name: 'SN74HC595 Pin #0'
pin: pin:
sn74hc595: sn74hc595_hub sn74hc595: sn74hc595_hub
# Use pin number 0 # Use pin number 0
@@ -1520,12 +1554,12 @@ switch:
fan: fan:
- platform: binary - platform: binary
output: gpio_26 output: gpio_26
name: "Living Room Fan 1" name: 'Living Room Fan 1'
oscillation_output: gpio_19 oscillation_output: gpio_19
direction_output: gpio_26 direction_output: gpio_26
- platform: speed - platform: speed
output: pca_6 output: pca_6
name: "Living Room Fan 2" name: 'Living Room Fan 2'
oscillation_output: gpio_19 oscillation_output: gpio_19
direction_output: gpio_26 direction_output: gpio_26
speed: speed:
@@ -1615,7 +1649,7 @@ display:
lambda: |- lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height()); it.rectangle(0, 0, it.get_width(), it.get_height());
- platform: ssd1306_i2c - platform: ssd1306_i2c
model: "SSD1306_128X64" model: 'SSD1306_128X64'
reset_pin: GPIO23 reset_pin: GPIO23
address: 0x3C address: 0x3C
id: display1 id: display1
@@ -1628,14 +1662,14 @@ display:
lambda: |- lambda: |-
// Nothing // Nothing
- platform: ssd1306_spi - platform: ssd1306_spi
model: "SSD1306 128x64" model: 'SSD1306 128x64'
cs_pin: GPIO23 cs_pin: GPIO23
dc_pin: GPIO23 dc_pin: GPIO23
reset_pin: GPIO23 reset_pin: GPIO23
lambda: |- lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height()); it.rectangle(0, 0, it.get_width(), it.get_height());
- platform: ssd1325_spi - platform: ssd1325_spi
model: "SSD1325 128x64" model: 'SSD1325 128x64'
cs_pin: GPIO23 cs_pin: GPIO23
dc_pin: GPIO23 dc_pin: GPIO23
reset_pin: GPIO23 reset_pin: GPIO23
@@ -1648,7 +1682,7 @@ display:
lambda: |- lambda: |-
it.rectangle(0, 0, it.get_width(), it.get_height()); it.rectangle(0, 0, it.get_width(), it.get_height());
- platform: ssd1351_spi - platform: ssd1351_spi
model: "SSD1351 128x128" model: 'SSD1351 128x128'
cs_pin: GPIO23 cs_pin: GPIO23
dc_pin: GPIO23 dc_pin: GPIO23
reset_pin: GPIO23 reset_pin: GPIO23
@@ -1721,7 +1755,7 @@ time:
cover: cover:
- platform: template - platform: template
name: "Template Cover" name: 'Template Cover'
id: template_cover id: template_cover
lambda: |- lambda: |-
if (id(binary_sensor1).state) { if (id(binary_sensor1).state) {
@@ -1764,7 +1798,6 @@ stepper:
acceleration: 100 steps/s^2 acceleration: 100 steps/s^2
deceleration: 200 steps/s^2 deceleration: 200 steps/s^2
globals: globals:
- id: glob_int - id: glob_int
type: int type: int
@@ -1785,8 +1818,8 @@ globals:
text_sensor: text_sensor:
- platform: mqtt_subscribe - platform: mqtt_subscribe
name: "MQTT Subscribe Text" name: 'MQTT Subscribe Text'
topic: "the/topic" topic: 'the/topic'
qos: 2 qos: 2
on_value: on_value:
- text_sensor.template.publish: - text_sensor.template.publish:
@@ -1804,15 +1837,15 @@ text_sensor:
id: template_text id: template_text
- platform: wifi_info - platform: wifi_info
ip_address: ip_address:
name: "IP Address" name: 'IP Address'
ssid: ssid:
name: "SSID" name: 'SSID'
bssid: bssid:
name: "BSSID" name: 'BSSID'
mac_address: mac_address:
name: "Mac Address" name: 'Mac Address'
- platform: version - platform: version
name: "ESPHome Version No Timestamp" name: 'ESPHome Version No Timestamp'
hide_timestamp: True hide_timestamp: True
sn74hc595: sn74hc595:

View File

@@ -47,140 +47,139 @@ 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
@@ -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:
@@ -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:

View File

@@ -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,80 +351,80 @@ 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
@@ -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
@@ -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: