mirror of https://github.com/esphome/esphome.git
Merge 55d87a4e10
into c7c0d97a5e
This commit is contained in:
commit
0550391401
|
@ -23,8 +23,6 @@ esphome:
|
||||||
blue: 0%
|
blue: 0%
|
||||||
white: 100%
|
white: 100%
|
||||||
|
|
||||||
wled:
|
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
networks:
|
networks:
|
||||||
- ssid: "MySSID"
|
- ssid: "MySSID"
|
||||||
|
@ -41,8 +39,6 @@ adalight:
|
||||||
|
|
||||||
network:
|
network:
|
||||||
|
|
||||||
e131:
|
|
||||||
|
|
||||||
power_supply:
|
power_supply:
|
||||||
- id: atx_power_supply
|
- id: atx_power_supply
|
||||||
enable_time: 20ms
|
enable_time: 20ms
|
||||||
|
@ -98,62 +94,9 @@ light:
|
||||||
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:
|
|
||||||
name: Color Wipe Effect With Custom Values
|
|
||||||
colors:
|
|
||||||
- red: 100%
|
|
||||||
green: 100%
|
|
||||||
blue: 100%
|
|
||||||
num_leds: 1
|
|
||||||
- red: 0%
|
|
||||||
green: 0%
|
|
||||||
blue: 0%
|
|
||||||
num_leds: 1
|
|
||||||
add_led_interval: 100ms
|
|
||||||
reverse: false
|
|
||||||
- addressable_scan:
|
|
||||||
- addressable_scan:
|
|
||||||
name: Scan Effect With Custom Values
|
|
||||||
move_interval: 100ms
|
|
||||||
- addressable_twinkle:
|
|
||||||
- addressable_twinkle:
|
|
||||||
name: Twinkle Effect With Custom Values
|
|
||||||
twinkle_probability: 5%
|
|
||||||
progress_interval: 4ms
|
|
||||||
- addressable_random_twinkle:
|
|
||||||
- addressable_random_twinkle:
|
|
||||||
name: Random Twinkle Effect With Custom Values
|
|
||||||
twinkle_probability: 5%
|
|
||||||
progress_interval: 32ms
|
|
||||||
- addressable_fireworks:
|
|
||||||
- addressable_fireworks:
|
|
||||||
name: Fireworks Effect With Custom Values
|
|
||||||
update_interval: 32ms
|
|
||||||
spark_probability: 10%
|
|
||||||
use_random_color: false
|
|
||||||
fade_out_rate: 120
|
|
||||||
- addressable_flicker:
|
|
||||||
- addressable_flicker:
|
|
||||||
name: Flicker Effect With Custom Values
|
|
||||||
update_interval: 16ms
|
|
||||||
intensity: 5%
|
|
||||||
- addressable_lambda:
|
|
||||||
name: Test For Custom Lambda Effect
|
|
||||||
lambda: |-
|
|
||||||
if (initial_run) {
|
|
||||||
it[0] = current_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
- wled:
|
|
||||||
port: 11111
|
|
||||||
|
|
||||||
- adalight:
|
- adalight:
|
||||||
uart_id: adalight_uart
|
uart_id: adalight_uart
|
||||||
|
|
||||||
- e131:
|
|
||||||
universe: 1
|
|
||||||
|
|
||||||
- automation:
|
- automation:
|
||||||
name: Custom Effect
|
name: Custom Effect
|
||||||
sequence:
|
sequence:
|
||||||
|
@ -182,25 +125,6 @@ light:
|
||||||
num_leds: 60
|
num_leds: 60
|
||||||
rgb_order: BRG
|
rgb_order: BRG
|
||||||
name: FastLED SPI Light
|
name: FastLED SPI Light
|
||||||
- platform: neopixelbus
|
|
||||||
id: addr3
|
|
||||||
name: Neopixelbus Light
|
|
||||||
gamma_correct: 2.8
|
|
||||||
color_correct: [0.0, 0.0, 0.0, 0.0]
|
|
||||||
default_transition_length: 10s
|
|
||||||
power_supply: atx_power_supply
|
|
||||||
effects:
|
|
||||||
- addressable_flicker:
|
|
||||||
name: Flicker Effect With Custom Values
|
|
||||||
update_interval: 16ms
|
|
||||||
intensity: 5%
|
|
||||||
type: GRBW
|
|
||||||
variant: SK6812
|
|
||||||
method: ESP32_I2S_0
|
|
||||||
num_leds: 60
|
|
||||||
pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO23
|
|
||||||
- platform: partition
|
- platform: partition
|
||||||
name: Partition Light
|
name: Partition Light
|
||||||
segments:
|
segments:
|
||||||
|
@ -215,18 +139,3 @@ light:
|
||||||
to: 25
|
to: 25
|
||||||
- single_light_id: ${roomname}_lights
|
- single_light_id: ${roomname}_lights
|
||||||
|
|
||||||
canbus:
|
|
||||||
- platform: esp32_can
|
|
||||||
id: esp32_internal_can
|
|
||||||
rx_pin: GPIO04
|
|
||||||
tx_pin: GPIO05
|
|
||||||
can_id: 4
|
|
||||||
bit_rate: 50kbps
|
|
||||||
|
|
||||||
button:
|
|
||||||
- platform: template
|
|
||||||
name: Canbus Actions
|
|
||||||
on_press:
|
|
||||||
- canbus.send: "abc"
|
|
||||||
- canbus.send: [0, 1, 2]
|
|
||||||
- canbus.send: !lambda return {0, 1, 2};
|
|
||||||
|
|
2063
tests/test1.yaml
2063
tests/test1.yaml
File diff suppressed because it is too large
Load Diff
405
tests/test2.yaml
405
tests/test2.yaml
|
@ -98,23 +98,9 @@ deep_sleep:
|
||||||
number: GPIO2
|
number: GPIO2
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
wakeup_pin_mode: INVERT_WAKEUP
|
||||||
|
|
||||||
as3935_i2c:
|
|
||||||
irq_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
|
|
||||||
mcp3008:
|
mcp3008:
|
||||||
- id: mcp3008_hub
|
- id: mcp3008_hub
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: ac_dimmer
|
|
||||||
id: dimmer1
|
|
||||||
gate_pin: GPIO5
|
|
||||||
zero_cross_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
number: GPIO12
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
@ -125,33 +111,6 @@ sensor:
|
||||||
entity_id: climate.living_room
|
entity_id: climate.living_room
|
||||||
attribute: temperature
|
attribute: temperature
|
||||||
id: ha_hello_world_temperature
|
id: ha_hello_world_temperature
|
||||||
- platform: ble_rssi
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: BLE Google Home Mini RSSI value
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128
|
|
||||||
- platform: ble_rssi
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test iBeacon UUID
|
|
||||||
- platform: b_parasite
|
|
||||||
mac_address: F0:CA:F0:CA:01:01
|
|
||||||
humidity:
|
|
||||||
name: b-parasite Air Humidity
|
|
||||||
temperature:
|
|
||||||
name: b-parasite Air Temperature
|
|
||||||
moisture:
|
|
||||||
name: b-parasite Soil Moisture
|
|
||||||
battery_voltage:
|
|
||||||
name: b-parasite Battery Voltage
|
|
||||||
illuminance:
|
|
||||||
name: b-parasite Illuminance
|
|
||||||
- platform: senseair
|
- platform: senseair
|
||||||
id: senseair0
|
id: senseair0
|
||||||
co2:
|
co2:
|
||||||
|
@ -186,23 +145,6 @@ sensor:
|
||||||
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
|
|
||||||
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
|
|
||||||
battery_level:
|
|
||||||
name: Xiaomi HHCCJCY01 Battery Level
|
|
||||||
- platform: xiaomi_hhccjcy10
|
- platform: xiaomi_hhccjcy10
|
||||||
mac_address: DD:25:6D:E4:FF:8F
|
mac_address: DD:25:6D:E4:FF:8F
|
||||||
temperature:
|
temperature:
|
||||||
|
@ -215,102 +157,6 @@ sensor:
|
||||||
name: "Xiaomi HHCCJCY10 Soil Conductivity"
|
name: "Xiaomi HHCCJCY10 Soil Conductivity"
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Xiaomi HHCCJCY10 Battery Level"
|
name: "Xiaomi HHCCJCY10 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
|
|
||||||
battery_level:
|
|
||||||
name: Xiaomi LYWSD02 Battery Level
|
|
||||||
- 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
|
|
||||||
- platform: xiaomi_mhoc303
|
|
||||||
mac_address: E7:50:59:32:A0:1C
|
|
||||||
temperature:
|
|
||||||
name: MHO-C303 Temperature
|
|
||||||
humidity:
|
|
||||||
name: MHO-C303 Humidity
|
|
||||||
battery_level:
|
|
||||||
name: MHO-C303 Battery Level
|
|
||||||
- platform: atc_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: ATC Temperature
|
|
||||||
humidity:
|
|
||||||
name: ATC Humidity
|
|
||||||
battery_level:
|
|
||||||
name: ATC Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: ATC Battery-Voltage
|
|
||||||
- platform: pvvx_mithermometer
|
|
||||||
mac_address: A4:C1:38:4E:16:78
|
|
||||||
temperature:
|
|
||||||
name: PVVX Temperature
|
|
||||||
humidity:
|
|
||||||
name: PVVX Humidity
|
|
||||||
battery_level:
|
|
||||||
name: PVVX Battery-Level
|
|
||||||
battery_voltage:
|
|
||||||
name: PVVX Battery-Voltage
|
|
||||||
- platform: inkbird_ibsth1_mini
|
- platform: inkbird_ibsth1_mini
|
||||||
mac_address: 38:81:D7:0A:9C:11
|
mac_address: 38:81:D7:0A:9C:11
|
||||||
temperature:
|
temperature:
|
||||||
|
@ -319,24 +165,6 @@ sensor:
|
||||||
name: Inkbird IBS-TH1 Humidity
|
name: Inkbird IBS-TH1 Humidity
|
||||||
battery_level:
|
battery_level:
|
||||||
name: Inkbird IBS-TH1 Battery Level
|
name: Inkbird IBS-TH1 Battery Level
|
||||||
- platform: xiaomi_rtcgq02lm
|
|
||||||
id: motion_rtcgq02lm
|
|
||||||
battery_level:
|
|
||||||
name: Mi Motion Sensor 2 Battery level
|
|
||||||
- platform: ltr390
|
|
||||||
uv:
|
|
||||||
name: LTR390 UV
|
|
||||||
uv_index:
|
|
||||||
name: LTR390 UVI
|
|
||||||
light:
|
|
||||||
name: LTR390 Light
|
|
||||||
ambient_light:
|
|
||||||
name: LTR390 ALS
|
|
||||||
gain: X3
|
|
||||||
resolution: 18
|
|
||||||
window_correction_factor: 1.0
|
|
||||||
address: 0x53
|
|
||||||
update_interval: 60s
|
|
||||||
- platform: sgp4x
|
- platform: sgp4x
|
||||||
voc:
|
voc:
|
||||||
name: VOC Index
|
name: VOC Index
|
||||||
|
@ -364,42 +192,6 @@ sensor:
|
||||||
id: freezer_temp_source
|
id: freezer_temp_source
|
||||||
reference_voltage: 3.19
|
reference_voltage: 3.19
|
||||||
number: 0
|
number: 0
|
||||||
- id: airthingswp
|
|
||||||
platform: airthings_wave_plus
|
|
||||||
ble_client_id: airthings01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Plus Temperature
|
|
||||||
radon:
|
|
||||||
name: Wave Plus Radon
|
|
||||||
radon_long_term:
|
|
||||||
name: Wave Plus Radon Long Term
|
|
||||||
pressure:
|
|
||||||
name: Wave Plus Pressure
|
|
||||||
humidity:
|
|
||||||
name: Wave Plus Humidity
|
|
||||||
co2:
|
|
||||||
name: Wave Plus CO2
|
|
||||||
tvoc:
|
|
||||||
name: Wave Plus VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Plus Battery Voltage
|
|
||||||
- id: airthingswm
|
|
||||||
platform: airthings_wave_mini
|
|
||||||
ble_client_id: airthingsmini01
|
|
||||||
update_interval: 5min
|
|
||||||
battery_update_interval: 12h
|
|
||||||
temperature:
|
|
||||||
name: Wave Mini Temperature
|
|
||||||
humidity:
|
|
||||||
name: Wave Mini Humidity
|
|
||||||
pressure:
|
|
||||||
name: Wave Mini Pressure
|
|
||||||
tvoc:
|
|
||||||
name: Wave Mini VOC
|
|
||||||
battery_voltage:
|
|
||||||
name: Wave Mini Battery Voltage
|
|
||||||
- platform: ina260
|
- platform: ina260
|
||||||
address: 0x40
|
address: 0x40
|
||||||
current:
|
current:
|
||||||
|
@ -429,18 +221,6 @@ sensor:
|
||||||
name: Propane test distance
|
name: Propane test distance
|
||||||
battery_level:
|
battery_level:
|
||||||
name: Propane test battery level
|
name: Propane test battery level
|
||||||
- platform: ufire_ec
|
|
||||||
id: ufire_ec_board
|
|
||||||
ec:
|
|
||||||
name: Ufire EC
|
|
||||||
temperature_sensor: ha_hello_world_temperature
|
|
||||||
temperature_compensation: 20.0
|
|
||||||
temperature_coefficient: 0.019
|
|
||||||
- platform: ufire_ise
|
|
||||||
id: ufire_ise_board
|
|
||||||
temperature_sensor: ha_hello_world_temperature
|
|
||||||
ph:
|
|
||||||
name: Ufire pH
|
|
||||||
- platform: mics_4514
|
- platform: mics_4514
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
nitrogen_dioxide:
|
nitrogen_dioxide:
|
||||||
|
@ -455,52 +235,6 @@ sensor:
|
||||||
name: MICS-4514 C2H5OH
|
name: MICS-4514 C2H5OH
|
||||||
ammonia:
|
ammonia:
|
||||||
name: MICS-4514 NH3
|
name: MICS-4514 NH3
|
||||||
- platform: mopeka_std_check
|
|
||||||
mac_address: D3:75:F2:DC:16:91
|
|
||||||
tank_type: CUSTOM
|
|
||||||
custom_distance_full: 40cm
|
|
||||||
custom_distance_empty: 10mm
|
|
||||||
temperature:
|
|
||||||
name: Propane test temp
|
|
||||||
level:
|
|
||||||
name: Propane test level
|
|
||||||
distance:
|
|
||||||
name: Propane test distance
|
|
||||||
battery_level:
|
|
||||||
name: Propane test battery level
|
|
||||||
- platform: duty_time
|
|
||||||
id: duty_time1
|
|
||||||
name: Test Duty Time
|
|
||||||
restore: true
|
|
||||||
last_time:
|
|
||||||
name: Test Last Duty Time Sensor
|
|
||||||
sensor: ha_hello_world_binary
|
|
||||||
- platform: duty_time
|
|
||||||
id: duty_time2
|
|
||||||
name: Test Duty Time 2
|
|
||||||
restore: false
|
|
||||||
lambda: "return true;"
|
|
||||||
|
|
||||||
time:
|
|
||||||
- platform: homeassistant
|
|
||||||
on_time:
|
|
||||||
- at: "16:00:00"
|
|
||||||
then:
|
|
||||||
- logger.log: It's 16:00
|
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
- sensor.duty_time.is_running: duty_time2
|
|
||||||
then:
|
|
||||||
- sensor.duty_time.start: duty_time1
|
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
- sensor.duty_time.is_not_running: duty_time1
|
|
||||||
then:
|
|
||||||
- sensor.duty_time.stop: duty_time2
|
|
||||||
- sensor.duty_time.reset: duty_time1
|
|
||||||
|
|
||||||
esp32_touch:
|
|
||||||
setup_mode: true
|
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
|
@ -510,69 +244,6 @@ binary_sensor:
|
||||||
entity_id: binary_sensor.hello
|
entity_id: binary_sensor.hello
|
||||||
attribute: world
|
attribute: world
|
||||||
id: ha_hello_world_binary_attribute
|
id: ha_hello_world_binary_attribute
|
||||||
- platform: ble_presence
|
|
||||||
mac_address: AC:37:43:77:5F:4C
|
|
||||||
name: ESP32 BLE Tracker Google Home Mini
|
|
||||||
timeout: 30s
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11aa
|
|
||||||
name: BLE Test Service 16 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: "11223344"
|
|
||||||
name: BLE Test Service 32 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
name: BLE Test Service 128 Presence
|
|
||||||
- platform: ble_presence
|
|
||||||
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
|
|
||||||
ibeacon_major: 100
|
|
||||||
ibeacon_minor: 1
|
|
||||||
name: BLE Test iBeacon Presence
|
|
||||||
- platform: esp32_touch
|
|
||||||
name: ESP32 Touch Pad GPIO27
|
|
||||||
pin: GPIO27
|
|
||||||
threshold: 1000
|
|
||||||
- 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
|
|
||||||
- platform: xiaomi_cgpr1
|
|
||||||
name: CGPR1 Motion
|
|
||||||
mac_address: "12:34:56:12:34:56"
|
|
||||||
bindkey: 48403ebe2d385db8d0c187f81e62cb64
|
|
||||||
battery_level:
|
|
||||||
name: CGPR1 battery Level
|
|
||||||
idle_time:
|
|
||||||
name: CGPR1 Idle Time
|
|
||||||
illuminance:
|
|
||||||
name: CGPR1 Illuminance
|
|
||||||
- platform: xiaomi_rtcgq02lm
|
|
||||||
id: motion_rtcgq02lm
|
|
||||||
motion:
|
|
||||||
name: Mi Motion Sensor 2
|
|
||||||
light:
|
|
||||||
name: Mi Motion Sensor 2 Light
|
|
||||||
button:
|
|
||||||
name: Mi Motion Sensor 2 Button
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: gpio_set_retry_test
|
id: gpio_set_retry_test
|
||||||
pin:
|
pin:
|
||||||
|
@ -585,38 +256,6 @@ binary_sensor:
|
||||||
return remaining ? RetryResult::RETRY : RetryResult::DONE; // just to reference both symbols
|
return remaining ? RetryResult::RETRY : RetryResult::DONE; // just to reference both symbols
|
||||||
}, 5.0f);
|
}, 5.0f);
|
||||||
|
|
||||||
esp32_ble_tracker:
|
|
||||||
on_ble_advertise:
|
|
||||||
- mac_address:
|
|
||||||
- AA:BB:CC:DD:EE:FF
|
|
||||||
- FF:EE:DD:CC:BB:AA
|
|
||||||
then:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
- mac_address: AC:37:43:77:5F:4C
|
|
||||||
then:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
- then:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
on_ble_service_data_advertise:
|
|
||||||
- service_uuid: ABCD
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("main", "Length of service data is %i", x.size());
|
|
||||||
on_ble_manufacturer_data_advertise:
|
|
||||||
- manufacturer_id: ABCD
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
|
||||||
|
|
||||||
ble_client:
|
ble_client:
|
||||||
- mac_address: 01:02:03:04:05:06
|
- mac_address: 01:02:03:04:05:06
|
||||||
id: airthings01
|
id: airthings01
|
||||||
|
@ -638,11 +277,6 @@ mopeka_ble:
|
||||||
bluetooth_proxy:
|
bluetooth_proxy:
|
||||||
active: true
|
active: true
|
||||||
|
|
||||||
xiaomi_rtcgq02lm:
|
|
||||||
- id: motion_rtcgq02lm
|
|
||||||
mac_address: 01:02:03:04:05:06
|
|
||||||
bindkey: "48403ebe2d385db8d0c187f81e62cb64"
|
|
||||||
|
|
||||||
status_led:
|
status_led:
|
||||||
pin:
|
pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
|
@ -716,8 +350,6 @@ text_sensor:
|
||||||
entity_id: sensor.hello_world3
|
entity_id: sensor.hello_world3
|
||||||
id: ha_hello_world3
|
id: ha_hello_world3
|
||||||
attribute: some_attribute
|
attribute: some_attribute
|
||||||
- platform: ble_scanner
|
|
||||||
name: Scanner
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: my_script
|
- id: my_script
|
||||||
|
@ -746,25 +378,6 @@ script:
|
||||||
then:
|
then:
|
||||||
- lambda: 'ESP_LOGD("main", (prefix + " Hello World!" + to_string(param2) + " " + to_string(param3)).c_str());'
|
- lambda: 'ESP_LOGD("main", (prefix + " Hello World!" + to_string(param2) + " " + to_string(param3)).c_str());'
|
||||||
|
|
||||||
stepper:
|
|
||||||
- platform: uln2003
|
|
||||||
id: my_stepper
|
|
||||||
pin_a:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO23
|
|
||||||
pin_b: GPIO27
|
|
||||||
pin_c:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO25
|
|
||||||
pin_d: GPIO26
|
|
||||||
sleep_when_done: false
|
|
||||||
step_mode: HALF_STEP
|
|
||||||
max_speed: 250 steps/s
|
|
||||||
|
|
||||||
# Optional:
|
|
||||||
acceleration: inf
|
|
||||||
deceleration: inf
|
|
||||||
|
|
||||||
interval:
|
interval:
|
||||||
interval: 5s
|
interval: 5s
|
||||||
startup_delay: 10s
|
startup_delay: 10s
|
||||||
|
@ -824,20 +437,6 @@ image:
|
||||||
file: mdi:alert-outline
|
file: mdi:alert-outline
|
||||||
type: BINARY
|
type: BINARY
|
||||||
|
|
||||||
graph:
|
|
||||||
- id: my_graph
|
|
||||||
sensor: ha_hello_world_temperature
|
|
||||||
duration: 1h
|
|
||||||
width: 100
|
|
||||||
height: 100
|
|
||||||
|
|
||||||
cap1188:
|
|
||||||
id: cap1188_component
|
|
||||||
address: 0x29
|
|
||||||
touch_threshold: 0x20
|
|
||||||
allow_multiple_touches: true
|
|
||||||
reset_pin: 14
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Test BLE Write Action
|
name: Test BLE Write Action
|
||||||
|
@ -854,10 +453,6 @@ switch:
|
||||||
value: !lambda |-
|
value: !lambda |-
|
||||||
return {0x13, 0x37};
|
return {0x13, 0x37};
|
||||||
|
|
||||||
esp32_ble_server:
|
|
||||||
id: ble
|
|
||||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
|
||||||
|
|
||||||
text:
|
text:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: My Text
|
name: My Text
|
||||||
|
|
|
@ -42,7 +42,6 @@ spi:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO12
|
number: GPIO12
|
||||||
mosi_pin:
|
mosi_pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO13
|
number: GPIO13
|
||||||
miso_pin:
|
miso_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
|
@ -56,40 +55,6 @@ logger:
|
||||||
debug:
|
debug:
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: apds9960
|
|
||||||
type: proximity
|
|
||||||
name: APDS9960 Proximity
|
|
||||||
- platform: vl53l0x
|
|
||||||
name: VL53L0x Distance
|
|
||||||
address: 0x29
|
|
||||||
update_interval: 60s
|
|
||||||
enable_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO13
|
|
||||||
timeout: 200us
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- platform: aht10
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
- platform: am2320
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
- platform: adc
|
- platform: adc
|
||||||
pin: VCC
|
pin: VCC
|
||||||
id: my_sensor
|
id: my_sensor
|
||||||
|
@ -127,37 +92,6 @@ sensor:
|
||||||
- 400 -> 500
|
- 400 -> 500
|
||||||
- -50 -> -1000
|
- -50 -> -1000
|
||||||
- -100 -> -10000
|
- -100 -> -10000
|
||||||
- platform: cd74hc4067
|
|
||||||
id: cd74hc4067_0
|
|
||||||
number: 0
|
|
||||||
sensor: my_sensor
|
|
||||||
- platform: resistance
|
|
||||||
sensor: my_sensor
|
|
||||||
configuration: DOWNSTREAM
|
|
||||||
resistor: 10kΩ
|
|
||||||
reference_voltage: 3.3V
|
|
||||||
name: Resistance
|
|
||||||
id: resist
|
|
||||||
- platform: ntc
|
|
||||||
sensor: resist
|
|
||||||
name: NTC Sensor
|
|
||||||
calibration:
|
|
||||||
b_constant: 3950
|
|
||||||
reference_resistance: 10k
|
|
||||||
reference_temperature: 25°C
|
|
||||||
- platform: ntc
|
|
||||||
sensor: resist
|
|
||||||
name: NTC Sensor2
|
|
||||||
calibration:
|
|
||||||
- 10.0kOhm -> 25°C
|
|
||||||
- 27.219kOhm -> 0°C
|
|
||||||
- 14.674kOhm -> 15°C
|
|
||||||
- platform: ct_clamp
|
|
||||||
sensor: my_sensor
|
|
||||||
name: CT Clamp
|
|
||||||
sample_duration: 500ms
|
|
||||||
update_interval: 5s
|
|
||||||
|
|
||||||
- platform: tcs34725
|
- platform: tcs34725
|
||||||
red_channel:
|
red_channel:
|
||||||
name: Red Channel
|
name: Red Channel
|
||||||
|
@ -182,75 +116,6 @@ sensor:
|
||||||
- id: custom_sensor
|
- id: custom_sensor
|
||||||
name: Custom Sensor
|
name: Custom Sensor
|
||||||
|
|
||||||
- platform: ade7953_i2c
|
|
||||||
irq_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO16
|
|
||||||
voltage:
|
|
||||||
name: ADE7953 Voltage
|
|
||||||
id: ade7953_voltage
|
|
||||||
current_a:
|
|
||||||
name: ADE7953 Current A
|
|
||||||
id: ade7953_current_a
|
|
||||||
current_b:
|
|
||||||
name: ADE7953 Current B
|
|
||||||
id: ade7953_current_b
|
|
||||||
power_factor_a:
|
|
||||||
name: "ADE7953 Power Factor A"
|
|
||||||
power_factor_b:
|
|
||||||
name: "ADE7953 Power Factor B"
|
|
||||||
apparent_power_a:
|
|
||||||
name: "ADE7953 Apparent Power A"
|
|
||||||
apparent_power_b:
|
|
||||||
name: "ADE7953 Apparent Power B"
|
|
||||||
active_power_a:
|
|
||||||
name: ADE7953 Active Power A
|
|
||||||
active_power_b:
|
|
||||||
name: ADE7953 Active Power B
|
|
||||||
reactive_power_a:
|
|
||||||
name: "ADE7953 Reactive Power A"
|
|
||||||
reactive_power_b:
|
|
||||||
name: "ADE7953 Reactive Power B"
|
|
||||||
update_interval: 1s
|
|
||||||
|
|
||||||
- platform: ade7953_spi
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO04
|
|
||||||
irq_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO16
|
|
||||||
voltage:
|
|
||||||
name: ADE7953 Voltage
|
|
||||||
current_a:
|
|
||||||
name: ADE7953 Current A
|
|
||||||
current_b:
|
|
||||||
name: ADE7953 Current B
|
|
||||||
power_factor_a:
|
|
||||||
name: "ADE7953 Power Factor A"
|
|
||||||
power_factor_b:
|
|
||||||
name: "ADE7953 Power Factor B"
|
|
||||||
apparent_power_a:
|
|
||||||
name: "ADE7953 Apparent Power A"
|
|
||||||
apparent_power_b:
|
|
||||||
name: "ADE7953 Apparent Power B"
|
|
||||||
active_power_a:
|
|
||||||
name: ADE7953 Active Power A
|
|
||||||
active_power_b:
|
|
||||||
name: ADE7953 Active Power B
|
|
||||||
reactive_power_a:
|
|
||||||
name: "ADE7953 Reactive Power A"
|
|
||||||
reactive_power_b:
|
|
||||||
name: "ADE7953 Reactive Power B"
|
|
||||||
update_interval: 1s
|
|
||||||
|
|
||||||
- platform: ens160
|
|
||||||
eco2:
|
|
||||||
name: "ENS160 eCO2"
|
|
||||||
tvoc:
|
|
||||||
name: "ENS160 Total Volatile Organic Compounds"
|
|
||||||
aqi:
|
|
||||||
name: "ENS160 Air Quality Index"
|
|
||||||
- platform: tmp102
|
- platform: tmp102
|
||||||
name: TMP102 Temperature
|
name: TMP102 Temperature
|
||||||
- platform: hm3301
|
- platform: hm3301
|
||||||
|
@ -263,10 +128,6 @@ sensor:
|
||||||
aqi:
|
aqi:
|
||||||
name: AQI
|
name: AQI
|
||||||
calculation_type: AQI
|
calculation_type: AQI
|
||||||
- platform: ezo
|
|
||||||
id: ph_ezo
|
|
||||||
address: 99
|
|
||||||
unit_of_measurement: pH
|
|
||||||
- platform: tof10120
|
- platform: tof10120
|
||||||
name: Distance sensor
|
name: Distance sensor
|
||||||
update_interval: 5s
|
update_interval: 5s
|
||||||
|
@ -286,97 +147,11 @@ sensor:
|
||||||
name: mlxtemp
|
name: mlxtemp
|
||||||
oversampling: 2
|
oversampling: 2
|
||||||
|
|
||||||
- platform: adc128s102
|
|
||||||
id: adc128s102_channel_0
|
|
||||||
channel: 0
|
|
||||||
|
|
||||||
- platform: ade7880
|
|
||||||
irq0_pin:
|
|
||||||
number: GPIO13
|
|
||||||
allow_other_uses: true
|
|
||||||
irq1_pin:
|
|
||||||
number: GPIO5
|
|
||||||
allow_other_uses: true
|
|
||||||
reset_pin:
|
|
||||||
number: GPIO16
|
|
||||||
allow_other_uses: true
|
|
||||||
frequency: 60Hz
|
|
||||||
phase_a:
|
|
||||||
name: Channel A
|
|
||||||
voltage: Voltage
|
|
||||||
current: Current
|
|
||||||
active_power: Active Power
|
|
||||||
power_factor: Power Factor
|
|
||||||
forward_active_energy: Forward Active Energy
|
|
||||||
reverse_active_energy: Reverse Active Energy
|
|
||||||
calibration:
|
|
||||||
current_gain: 3116628
|
|
||||||
voltage_gain: -757178
|
|
||||||
power_gain: -1344457
|
|
||||||
phase_angle: 188
|
|
||||||
phase_b:
|
|
||||||
name: Channel B
|
|
||||||
voltage: Voltage
|
|
||||||
current: Current
|
|
||||||
active_power: Active Power
|
|
||||||
power_factor: Power Factor
|
|
||||||
forward_active_energy: Forward Active Energy
|
|
||||||
reverse_active_energy: Reverse Active Energy
|
|
||||||
calibration:
|
|
||||||
current_gain: 3133655
|
|
||||||
voltage_gain: -755235
|
|
||||||
power_gain: -1345638
|
|
||||||
phase_angle: 188
|
|
||||||
phase_c:
|
|
||||||
name: Channel C
|
|
||||||
voltage: Voltage
|
|
||||||
current: Current
|
|
||||||
active_power: Active Power
|
|
||||||
power_factor: Power Factor
|
|
||||||
forward_active_energy: Forward Active Energy
|
|
||||||
reverse_active_energy: Reverse Active Energy
|
|
||||||
calibration:
|
|
||||||
current_gain: 3111158
|
|
||||||
voltage_gain: -743813
|
|
||||||
power_gain: -1351437
|
|
||||||
phase_angle: 180
|
|
||||||
neutral:
|
|
||||||
name: Neutral
|
|
||||||
current: Current
|
|
||||||
calibration:
|
|
||||||
current_gain: 3189
|
|
||||||
|
|
||||||
apds9960:
|
|
||||||
address: 0x20
|
|
||||||
update_interval: 60s
|
|
||||||
|
|
||||||
mpr121:
|
mpr121:
|
||||||
id: mpr121_first
|
id: mpr121_first
|
||||||
address: 0x5A
|
address: 0x5A
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: apds9960
|
|
||||||
direction: up
|
|
||||||
name: APDS9960 Up
|
|
||||||
device_class: motion
|
|
||||||
filters:
|
|
||||||
- invert
|
|
||||||
- delayed_on: 20ms
|
|
||||||
- delayed_off: 20ms
|
|
||||||
- lambda: "return false;"
|
|
||||||
on_state:
|
|
||||||
- logger.log: New state
|
|
||||||
id: my_binary_sensor
|
|
||||||
- platform: apds9960
|
|
||||||
direction: down
|
|
||||||
name: APDS9960 Down
|
|
||||||
- platform: apds9960
|
|
||||||
direction: left
|
|
||||||
name: APDS9960 Left
|
|
||||||
- platform: apds9960
|
|
||||||
direction: right
|
|
||||||
name: APDS9960 Right
|
|
||||||
|
|
||||||
- platform: mpr121
|
- platform: mpr121
|
||||||
id: touchkey0
|
id: touchkey0
|
||||||
channel: 0
|
channel: 0
|
||||||
|
@ -411,14 +186,6 @@ binary_sensor:
|
||||||
- id: custom_binary_sensor
|
- id: custom_binary_sensor
|
||||||
name: Custom Binary Sensor
|
name: Custom Binary Sensor
|
||||||
|
|
||||||
- platform: template
|
|
||||||
id: cover_toggle
|
|
||||||
on_press:
|
|
||||||
then:
|
|
||||||
- cover.toggle: time_based_cover
|
|
||||||
- cover.toggle: endstop_cover
|
|
||||||
- cover.toggle: current_based_cover
|
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
- id: my_global_string
|
- id: my_global_string
|
||||||
type: std::string
|
type: std::string
|
||||||
|
@ -444,10 +211,6 @@ sm2135:
|
||||||
rgb_current: 20mA
|
rgb_current: 20mA
|
||||||
cw_current: 60mA
|
cw_current: 60mA
|
||||||
|
|
||||||
grove_tb6612fng:
|
|
||||||
id: test_motor
|
|
||||||
address: 0x14
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: mpr121_toggle
|
name: mpr121_toggle
|
||||||
|
@ -470,7 +233,6 @@ switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: gpio_switch3
|
id: gpio_switch3
|
||||||
pin:
|
pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO1
|
number: GPIO1
|
||||||
interlock: *interlock
|
interlock: *interlock
|
||||||
- platform: custom
|
- platform: custom
|
||||||
|
@ -500,17 +262,6 @@ switch:
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
body: Some data
|
body: Some data
|
||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
- platform: template
|
|
||||||
name: open_vent
|
|
||||||
id: open_vent
|
|
||||||
optimistic: true
|
|
||||||
on_turn_on:
|
|
||||||
then:
|
|
||||||
- grove_tb6612fng.run:
|
|
||||||
channel: 1
|
|
||||||
speed: 255
|
|
||||||
direction: BACKWARD
|
|
||||||
id: test_motor
|
|
||||||
|
|
||||||
custom_component:
|
custom_component:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
|
@ -518,87 +269,7 @@ custom_component:
|
||||||
s->set_update_interval(15000);
|
s->set_update_interval(15000);
|
||||||
return {s};
|
return {s};
|
||||||
|
|
||||||
stepper:
|
|
||||||
- platform: uln2003
|
|
||||||
id: my_stepper
|
|
||||||
pin_a:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
pin_b:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO13
|
|
||||||
pin_c:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO14
|
|
||||||
pin_d:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO15
|
|
||||||
sleep_when_done: false
|
|
||||||
step_mode: HALF_STEP
|
|
||||||
max_speed: 250 steps/s
|
|
||||||
acceleration: inf
|
|
||||||
deceleration: inf
|
|
||||||
- platform: a4988
|
|
||||||
id: my_stepper2
|
|
||||||
step_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO1
|
|
||||||
dir_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO2
|
|
||||||
max_speed: 0.1 steps/s
|
|
||||||
acceleration: 10 steps/s^2
|
|
||||||
deceleration: 10 steps/s^2
|
|
||||||
|
|
||||||
interval:
|
|
||||||
interval: 5s
|
|
||||||
then:
|
|
||||||
- logger.log: Interval Run
|
|
||||||
- stepper.set_target:
|
|
||||||
id: my_stepper2
|
|
||||||
target: 500
|
|
||||||
- stepper.set_target:
|
|
||||||
id: my_stepper
|
|
||||||
target: !lambda "return 0;"
|
|
||||||
- stepper.report_position:
|
|
||||||
id: my_stepper2
|
|
||||||
position: 0
|
|
||||||
- stepper.report_position:
|
|
||||||
id: my_stepper
|
|
||||||
position: !lambda "return 50/100.0;"
|
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
- platform: endstop
|
|
||||||
name: Endstop Cover
|
|
||||||
id: endstop_cover
|
|
||||||
stop_action:
|
|
||||||
- switch.turn_on: gpio_switch1
|
|
||||||
open_endstop: my_binary_sensor
|
|
||||||
open_action:
|
|
||||||
- switch.turn_on: gpio_switch1
|
|
||||||
open_duration: 5min
|
|
||||||
close_endstop: my_binary_sensor
|
|
||||||
close_action:
|
|
||||||
- switch.turn_on: gpio_switch2
|
|
||||||
- output.set_level:
|
|
||||||
id: out
|
|
||||||
level: 50%
|
|
||||||
- output.esp8266_pwm.set_frequency:
|
|
||||||
id: out
|
|
||||||
frequency: 500.0Hz
|
|
||||||
- output.esp8266_pwm.set_frequency:
|
|
||||||
id: out
|
|
||||||
frequency: !lambda "return 500.0;"
|
|
||||||
- servo.write:
|
|
||||||
id: my_servo
|
|
||||||
level: -100%
|
|
||||||
- servo.write:
|
|
||||||
id: my_servo
|
|
||||||
level: !lambda "return -1.0;"
|
|
||||||
- delay: 2s
|
|
||||||
- servo.detach: my_servo
|
|
||||||
close_duration: 4.5min
|
|
||||||
max_duration: 10min
|
|
||||||
- platform: time_based
|
- platform: time_based
|
||||||
name: Time Based Cover
|
name: Time Based Cover
|
||||||
id: time_based_cover
|
id: time_based_cover
|
||||||
|
@ -610,41 +281,6 @@ cover:
|
||||||
close_action:
|
close_action:
|
||||||
- switch.turn_on: gpio_switch2
|
- switch.turn_on: gpio_switch2
|
||||||
close_duration: 4.5min
|
close_duration: 4.5min
|
||||||
- platform: current_based
|
|
||||||
name: Current Based Cover
|
|
||||||
id: current_based_cover
|
|
||||||
open_sensor: ade7953_current_a
|
|
||||||
open_moving_current_threshold: 0.5
|
|
||||||
open_obstacle_current_threshold: 0.8
|
|
||||||
open_duration: 12s
|
|
||||||
open_action:
|
|
||||||
- switch.turn_on: gpio_switch1
|
|
||||||
close_sensor: ade7953_current_b
|
|
||||||
close_moving_current_threshold: 0.5
|
|
||||||
close_obstacle_current_threshold: 0.8
|
|
||||||
close_duration: 10s
|
|
||||||
close_action:
|
|
||||||
- switch.turn_on: gpio_switch2
|
|
||||||
stop_action:
|
|
||||||
- switch.turn_off: gpio_switch1
|
|
||||||
- switch.turn_off: gpio_switch2
|
|
||||||
obstacle_rollback: 30%
|
|
||||||
start_sensing_delay: 0.8s
|
|
||||||
malfunction_detection: true
|
|
||||||
malfunction_action:
|
|
||||||
then:
|
|
||||||
- logger.log: Malfunction Detected
|
|
||||||
- platform: template
|
|
||||||
name: Template Cover with Tilt
|
|
||||||
tilt_lambda: "return 0.5;"
|
|
||||||
tilt_action:
|
|
||||||
- output.set_level:
|
|
||||||
id: out
|
|
||||||
level: !lambda "return tilt;"
|
|
||||||
position_action:
|
|
||||||
- output.set_level:
|
|
||||||
id: out
|
|
||||||
level: !lambda "return pos;"
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: esp8266_pwm
|
- platform: esp8266_pwm
|
||||||
|
@ -652,11 +288,6 @@ output:
|
||||||
pin:
|
pin:
|
||||||
number: D3
|
number: D3
|
||||||
frequency: 50Hz
|
frequency: 50Hz
|
||||||
- platform: esp8266_pwm
|
|
||||||
id: out2
|
|
||||||
pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: D4
|
|
||||||
- platform: custom
|
- platform: custom
|
||||||
type: binary
|
type: binary
|
||||||
lambda: |-
|
lambda: |-
|
||||||
|
@ -669,7 +300,6 @@ output:
|
||||||
id: sddac
|
id: sddac
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
pin:
|
pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: D4
|
number: D4
|
||||||
turn_on_action:
|
turn_on_action:
|
||||||
then:
|
then:
|
||||||
|
@ -719,12 +349,6 @@ mcp23017:
|
||||||
mcp23008:
|
mcp23008:
|
||||||
id: mcp23008_hub
|
id: mcp23008_hub
|
||||||
|
|
||||||
light:
|
|
||||||
- platform: hbridge
|
|
||||||
name: Icicle Lights
|
|
||||||
pin_a: out
|
|
||||||
pin_b: out2
|
|
||||||
|
|
||||||
servo:
|
servo:
|
||||||
id: my_servo
|
id: my_servo
|
||||||
output: out
|
output: out
|
||||||
|
@ -745,7 +369,6 @@ ttp229_bsf:
|
||||||
display:
|
display:
|
||||||
- platform: max7219digit
|
- platform: max7219digit
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO15
|
number: GPIO15
|
||||||
num_chips: 4
|
num_chips: 4
|
||||||
rotate_chip: 0
|
rotate_chip: 0
|
||||||
|
@ -764,28 +387,3 @@ button:
|
||||||
id: output_button
|
id: output_button
|
||||||
output: out
|
output: out
|
||||||
duration: 100ms
|
duration: 100ms
|
||||||
- platform: wake_on_lan
|
|
||||||
target_mac_address: 12:34:56:78:90:ab
|
|
||||||
name: wol_test_1
|
|
||||||
id: wol_1
|
|
||||||
- platform: factory_reset
|
|
||||||
name: Restart Button (Factory Default Settings)
|
|
||||||
|
|
||||||
cd74hc4067:
|
|
||||||
pin_s0:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
pin_s1:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO13
|
|
||||||
pin_s2:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO14
|
|
||||||
pin_s3:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO15
|
|
||||||
|
|
||||||
adc128s102:
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
|
|
700
tests/test3.yaml
700
tests/test3.yaml
|
@ -35,124 +35,6 @@ api:
|
||||||
format: Hello World %s!
|
format: Hello World %s!
|
||||||
args:
|
args:
|
||||||
- name.c_str()
|
- name.c_str()
|
||||||
- service: empty_service
|
|
||||||
then:
|
|
||||||
- logger.log: Service Called
|
|
||||||
- service: all_types
|
|
||||||
variables:
|
|
||||||
bool_: bool
|
|
||||||
int_: int
|
|
||||||
float_: float
|
|
||||||
string_: string
|
|
||||||
then:
|
|
||||||
- logger.log: Something happened
|
|
||||||
- service: array_types
|
|
||||||
variables:
|
|
||||||
bool_arr: bool[]
|
|
||||||
int_arr: int[]
|
|
||||||
float_arr: float[]
|
|
||||||
string_arr: string[]
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
format: "Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
args:
|
|
||||||
- YESNO(bool_arr[0])
|
|
||||||
- bool_arr.size()
|
|
||||||
- int_arr[0]
|
|
||||||
- int_arr.size()
|
|
||||||
- float_arr[0]
|
|
||||||
- float_arr.size()
|
|
||||||
- string_arr[0].c_str()
|
|
||||||
- string_arr.size()
|
|
||||||
- service: dfplayer_next
|
|
||||||
then:
|
|
||||||
- dfplayer.play_next:
|
|
||||||
- service: dfplayer_previous
|
|
||||||
then:
|
|
||||||
- dfplayer.play_previous:
|
|
||||||
- service: dfplayer_play
|
|
||||||
variables:
|
|
||||||
file: int
|
|
||||||
then:
|
|
||||||
- dfplayer.play: !lambda "return file;"
|
|
||||||
- service: dfplayer_play_loop
|
|
||||||
variables:
|
|
||||||
file: int
|
|
||||||
loop_: bool
|
|
||||||
then:
|
|
||||||
- dfplayer.play:
|
|
||||||
file: !lambda "return file;"
|
|
||||||
loop: !lambda "return loop_;"
|
|
||||||
- service: dfplayer_play_folder
|
|
||||||
variables:
|
|
||||||
folder: int
|
|
||||||
file: int
|
|
||||||
then:
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: !lambda "return folder;"
|
|
||||||
file: !lambda "return file;"
|
|
||||||
|
|
||||||
- service: dfplayer_play_loo_folder
|
|
||||||
variables:
|
|
||||||
folder: int
|
|
||||||
then:
|
|
||||||
- dfplayer.play_folder:
|
|
||||||
folder: !lambda "return folder;"
|
|
||||||
loop: true
|
|
||||||
|
|
||||||
- service: dfplayer_set_device
|
|
||||||
variables:
|
|
||||||
device: int
|
|
||||||
then:
|
|
||||||
- dfplayer.set_device:
|
|
||||||
device: TF_CARD
|
|
||||||
|
|
||||||
- service: dfplayer_set_volume
|
|
||||||
variables:
|
|
||||||
volume: int
|
|
||||||
then:
|
|
||||||
- dfplayer.set_volume: !lambda "return volume;"
|
|
||||||
- service: dfplayer_set_eq
|
|
||||||
variables:
|
|
||||||
preset: int
|
|
||||||
then:
|
|
||||||
# yamllint disable rule:line-length
|
|
||||||
- dfplayer.set_eq: !lambda "return static_cast<dfplayer::EqPreset>(preset);"
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
|
|
||||||
- service: dfplayer_sleep
|
|
||||||
then:
|
|
||||||
- dfplayer.sleep
|
|
||||||
|
|
||||||
- service: dfplayer_reset
|
|
||||||
then:
|
|
||||||
- dfplayer.reset
|
|
||||||
|
|
||||||
- service: dfplayer_start
|
|
||||||
then:
|
|
||||||
- dfplayer.start
|
|
||||||
|
|
||||||
- service: dfplayer_pause
|
|
||||||
then:
|
|
||||||
- dfplayer.pause
|
|
||||||
|
|
||||||
- service: dfplayer_stop
|
|
||||||
then:
|
|
||||||
- dfplayer.stop
|
|
||||||
|
|
||||||
- service: dfplayer_random
|
|
||||||
then:
|
|
||||||
- dfplayer.random
|
|
||||||
|
|
||||||
- service: dfplayer_volume_up
|
|
||||||
then:
|
|
||||||
- dfplayer.volume_up
|
|
||||||
|
|
||||||
- service: dfplayer_volume_down
|
|
||||||
then:
|
|
||||||
- dfplayer.volume_down
|
|
||||||
|
|
||||||
- service: battery_level_percent
|
- service: battery_level_percent
|
||||||
variables:
|
variables:
|
||||||
|
@ -190,26 +72,6 @@ api:
|
||||||
kp: 1.0
|
kp: 1.0
|
||||||
kd: 1.0
|
kd: 1.0
|
||||||
ki: 1.0
|
ki: 1.0
|
||||||
- service: fingerprint_grow_enroll
|
|
||||||
variables:
|
|
||||||
finger_id: int
|
|
||||||
num_scans: int
|
|
||||||
then:
|
|
||||||
- fingerprint_grow.enroll:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
num_scans: !lambda "return num_scans;"
|
|
||||||
- service: fingerprint_grow_cancel_enroll
|
|
||||||
then:
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- service: fingerprint_grow_delete
|
|
||||||
variables:
|
|
||||||
finger_id: int
|
|
||||||
then:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
- service: fingerprint_grow_delete_all
|
|
||||||
then:
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: "MySSID"
|
ssid: "MySSID"
|
||||||
|
@ -268,26 +130,6 @@ uart:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO5
|
number: GPIO5
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
- id: uart_7
|
|
||||||
tx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO4
|
|
||||||
rx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO5
|
|
||||||
baud_rate: 38400
|
|
||||||
- id: uart_8
|
|
||||||
tx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO4
|
|
||||||
rx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO5
|
|
||||||
baud_rate: 4800
|
|
||||||
parity: NONE
|
|
||||||
stop_bits: 2
|
|
||||||
# Specifically added for testing debug with no options at all.
|
|
||||||
debug:
|
|
||||||
- id: uart_9
|
- id: uart_9
|
||||||
tx_pin:
|
tx_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
|
@ -312,21 +154,10 @@ uart:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO5
|
number: GPIO5
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
- id: uart_12
|
|
||||||
tx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO4
|
|
||||||
rx_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO5
|
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
modbus:
|
||||||
uart_id: uart_1
|
uart_id: uart_1
|
||||||
|
|
||||||
vbus:
|
|
||||||
uart_id: uart_4
|
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
safe_mode: true
|
safe_mode: true
|
||||||
port: 3286
|
port: 3286
|
||||||
|
@ -346,156 +177,12 @@ deep_sleep:
|
||||||
run_duration: 20s
|
run_duration: 20s
|
||||||
sleep_duration: 50s
|
sleep_duration: 50s
|
||||||
|
|
||||||
wled:
|
|
||||||
|
|
||||||
adalight:
|
adalight:
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: daly_bms
|
|
||||||
voltage:
|
|
||||||
name: Battery Voltage
|
|
||||||
current:
|
|
||||||
name: Battery Current
|
|
||||||
battery_level:
|
|
||||||
name: Battery Level
|
|
||||||
max_cell_voltage:
|
|
||||||
name: Max Cell Voltage
|
|
||||||
max_cell_voltage_number:
|
|
||||||
name: Max Cell Voltage Number
|
|
||||||
min_cell_voltage:
|
|
||||||
name: Min Cell Voltage
|
|
||||||
min_cell_voltage_number:
|
|
||||||
name: Min Cell Voltage Number
|
|
||||||
max_temperature:
|
|
||||||
name: Max Temperature
|
|
||||||
max_temperature_probe_number:
|
|
||||||
name: Max Temperature Probe Number
|
|
||||||
min_temperature:
|
|
||||||
name: Min Temperature
|
|
||||||
min_temperature_probe_number:
|
|
||||||
name: Min Temperature Probe Number
|
|
||||||
remaining_capacity:
|
|
||||||
name: Remaining Capacity
|
|
||||||
cells_number:
|
|
||||||
name: Cells Number
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
temperature_2:
|
|
||||||
name: Temperature 2
|
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
entity_id: sensor.hello_world
|
entity_id: sensor.hello_world
|
||||||
id: ha_hello_world
|
id: ha_hello_world
|
||||||
|
|
||||||
- platform: hydreon_rgxx
|
|
||||||
model: RG 9
|
|
||||||
uart_id: uart_6
|
|
||||||
id: hydreon_rg9
|
|
||||||
moisture:
|
|
||||||
name: hydreon_rain
|
|
||||||
id: hydreon_rain
|
|
||||||
temperature:
|
|
||||||
name: hydreon_temperature
|
|
||||||
disable_led: true
|
|
||||||
|
|
||||||
- platform: hydreon_rgxx
|
|
||||||
model: RG_15
|
|
||||||
uart_id: uart_6
|
|
||||||
acc:
|
|
||||||
name: hydreon_acc
|
|
||||||
event_acc:
|
|
||||||
name: hydreon_event_acc
|
|
||||||
total_acc:
|
|
||||||
name: hydreon_total_acc
|
|
||||||
r_int:
|
|
||||||
name: hydreon_r_int
|
|
||||||
resolution: low
|
|
||||||
|
|
||||||
- platform: adc
|
|
||||||
pin: VCC
|
|
||||||
id: my_sensor
|
|
||||||
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: group
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: sum
|
|
||||||
channels:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
value: 10.0
|
|
||||||
- binary_sensor: bin2
|
|
||||||
value: 15.0
|
|
||||||
- binary_sensor: bin3
|
|
||||||
value: 100.0
|
|
||||||
|
|
||||||
- platform: binary_sensor_map
|
|
||||||
name: Binary Sensor Map
|
|
||||||
type: bayesian
|
|
||||||
prior: 0.4
|
|
||||||
observations:
|
|
||||||
- binary_sensor: bin1
|
|
||||||
prob_given_true: 0.9
|
|
||||||
prob_given_false: 0.4
|
|
||||||
- binary_sensor: bin2
|
|
||||||
prob_given_true: 0.7
|
|
||||||
prob_given_false: 0.05
|
|
||||||
- binary_sensor: bin3
|
|
||||||
prob_given_true: 0.8
|
|
||||||
prob_given_false: 0.2
|
|
||||||
|
|
||||||
- platform: bl0939
|
|
||||||
uart_id: uart_8
|
|
||||||
voltage:
|
|
||||||
name: BL0939 Voltage
|
|
||||||
current_1:
|
|
||||||
name: BL0939 Current 1
|
|
||||||
current_2:
|
|
||||||
name: BL0939 Current 2
|
|
||||||
active_power_1:
|
|
||||||
name: BL0939 Active Power 1
|
|
||||||
active_power_2:
|
|
||||||
name: BL0939 Active Power 2
|
|
||||||
energy_1:
|
|
||||||
name: BL0939 Energy 1
|
|
||||||
energy_2:
|
|
||||||
name: BL0939 Energy 2
|
|
||||||
energy_total:
|
|
||||||
name: BL0939 Total energy
|
|
||||||
- platform: bl0940
|
|
||||||
uart_id: uart_3
|
|
||||||
voltage:
|
|
||||||
name: BL0940 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0940 Current
|
|
||||||
power:
|
|
||||||
name: BL0940 Power
|
|
||||||
energy:
|
|
||||||
name: BL0940 Energy
|
|
||||||
internal_temperature:
|
|
||||||
name: BL0940 Internal temperature
|
|
||||||
external_temperature:
|
|
||||||
name: BL0940 External temperature
|
|
||||||
- platform: bl0942
|
|
||||||
uart_id: uart_3
|
|
||||||
voltage:
|
|
||||||
name: BL0942 Voltage
|
|
||||||
current:
|
|
||||||
name: BL0942 Current
|
|
||||||
power:
|
|
||||||
name: BL0942 Power
|
|
||||||
energy:
|
|
||||||
name: BL0942 Energy
|
|
||||||
frequency:
|
|
||||||
name: BL0942 Frequency
|
|
||||||
- platform: pzem004t
|
- platform: pzem004t
|
||||||
uart_id: uart_3
|
uart_id: uart_3
|
||||||
voltage:
|
voltage:
|
||||||
|
@ -616,44 +303,6 @@ sensor:
|
||||||
name: PMS Humidity
|
name: PMS Humidity
|
||||||
formaldehyde:
|
formaldehyde:
|
||||||
name: PMS Formaldehyde Concentration
|
name: PMS Formaldehyde Concentration
|
||||||
- platform: cse7761
|
|
||||||
uart_id: uart_7
|
|
||||||
voltage:
|
|
||||||
name: CSE7761 Voltage
|
|
||||||
current_1:
|
|
||||||
name: CSE7761 Current 1
|
|
||||||
current_2:
|
|
||||||
name: CSE7761 Current 2
|
|
||||||
active_power_1:
|
|
||||||
name: CSE7761 Active Power 1
|
|
||||||
active_power_2:
|
|
||||||
name: CSE7761 Active Power 2
|
|
||||||
- platform: cse7766
|
|
||||||
uart_id: uart_3
|
|
||||||
voltage:
|
|
||||||
name: CSE7766 Voltage
|
|
||||||
current:
|
|
||||||
name: CSE7766 Current
|
|
||||||
power:
|
|
||||||
name: CSE7766 Power
|
|
||||||
apparent_power:
|
|
||||||
name: CSE7766 Apparent Power
|
|
||||||
power_factor:
|
|
||||||
name: CSE7766 Power Factor
|
|
||||||
|
|
||||||
- platform: fingerprint_grow
|
|
||||||
fingerprint_count:
|
|
||||||
name: Fingerprint Count
|
|
||||||
status:
|
|
||||||
name: Fingerprint Status
|
|
||||||
capacity:
|
|
||||||
name: Fingerprint Capacity
|
|
||||||
security_level:
|
|
||||||
name: Fingerprint Security Level
|
|
||||||
last_finger_id:
|
|
||||||
name: Fingerprint Last Finger ID
|
|
||||||
last_confidence:
|
|
||||||
name: Fingerprint Last Confidence
|
|
||||||
- platform: sdm_meter
|
- platform: sdm_meter
|
||||||
phase_a:
|
phase_a:
|
||||||
current:
|
current:
|
||||||
|
@ -710,19 +359,6 @@ sensor:
|
||||||
name: Import Reactive Energy
|
name: Import Reactive Energy
|
||||||
export_reactive_energy:
|
export_reactive_energy:
|
||||||
name: Export Reactive Energy
|
name: Export Reactive Energy
|
||||||
- platform: dsmr
|
|
||||||
energy_delivered_tariff1:
|
|
||||||
name: dsmr_energy_delivered_tariff1
|
|
||||||
|
|
||||||
- platform: nextion
|
|
||||||
id: testnumber
|
|
||||||
name: testnumber
|
|
||||||
variable_name: testnumber
|
|
||||||
- platform: nextion
|
|
||||||
id: testwave
|
|
||||||
name: testwave
|
|
||||||
component_id: 2
|
|
||||||
wave_channel_id: 1
|
|
||||||
- platform: smt100
|
- platform: smt100
|
||||||
uart_id: uart_10
|
uart_id: uart_10
|
||||||
counts:
|
counts:
|
||||||
|
@ -737,76 +373,14 @@ sensor:
|
||||||
name: Voltage
|
name: Voltage
|
||||||
update_interval: 60s
|
update_interval: 60s
|
||||||
|
|
||||||
- platform: vbus
|
|
||||||
model: deltasol c
|
|
||||||
temperature_1:
|
|
||||||
name: Temperature 1
|
|
||||||
|
|
||||||
- platform: kuntze
|
|
||||||
ph:
|
|
||||||
name: Kuntze pH
|
|
||||||
temperature:
|
|
||||||
name: Kuntze temperature
|
|
||||||
|
|
||||||
- platform: haier
|
|
||||||
haier_id: haier_climate
|
|
||||||
compressor_current:
|
|
||||||
name: Haier AC compressor current
|
|
||||||
compressor_frequency:
|
|
||||||
name: Haier AC compressor frequency
|
|
||||||
expansion_valve_open_degree:
|
|
||||||
name: Haier AC expansion valve open degree
|
|
||||||
humidity:
|
|
||||||
name: Haier AC indoor humidity
|
|
||||||
indoor_coil_temperature:
|
|
||||||
name: Haier AC indoor coil temperature
|
|
||||||
outdoor_coil_temperature:
|
|
||||||
name: Haier AC outdoor coil temperature
|
|
||||||
outdoor_defrost_temperature:
|
|
||||||
name: Haier AC outdoor defrost temperature
|
|
||||||
outdoor_in_air_temperature:
|
|
||||||
name: Haier AC outdoor in air temperature
|
|
||||||
outdoor_out_air_temperature:
|
|
||||||
name: Haier AC outdoor out air temperature
|
|
||||||
outdoor_temperature:
|
|
||||||
name: Haier AC outdoor temperature
|
|
||||||
power:
|
|
||||||
name: Haier AC power
|
|
||||||
|
|
||||||
time:
|
time:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: daly_bms
|
|
||||||
charging_mos_enabled:
|
|
||||||
name: Charging MOS
|
|
||||||
discharging_mos_enabled:
|
|
||||||
name: Discharging MOS
|
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
entity_id: binary_sensor.hello_world
|
entity_id: binary_sensor.hello_world
|
||||||
id: ha_hello_world_binary
|
id: ha_hello_world_binary
|
||||||
|
|
||||||
- platform: fingerprint_grow
|
|
||||||
name: Fingerprint Enrolling
|
|
||||||
- platform: nextion
|
|
||||||
page_id: 0
|
|
||||||
component_id: 2
|
|
||||||
name: Nextion Component 2 Touch
|
|
||||||
- platform: nextion
|
|
||||||
id: r0_sensor
|
|
||||||
name: R0 Sensor
|
|
||||||
component_name: page0.r0
|
|
||||||
|
|
||||||
- platform: hydreon_rgxx
|
|
||||||
hydreon_rgxx_id: hydreon_rg9
|
|
||||||
too_cold:
|
|
||||||
name: rg9_toocold
|
|
||||||
em_sat:
|
|
||||||
name: rg9_emsat
|
|
||||||
lens_bad:
|
|
||||||
name: rg9_lens_bad
|
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
id: pzemac_reset_energy
|
id: pzemac_reset_energy
|
||||||
on_press:
|
on_press:
|
||||||
|
@ -818,11 +392,6 @@ binary_sensor:
|
||||||
then:
|
then:
|
||||||
- pzemdc.reset_energy: pzemdc1
|
- pzemdc.reset_energy: pzemdc1
|
||||||
|
|
||||||
- platform: vbus
|
|
||||||
model: deltasol_bs_plus
|
|
||||||
relay1:
|
|
||||||
name: Relay 1 On
|
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: bin1
|
id: bin1
|
||||||
pin:
|
pin:
|
||||||
|
@ -839,41 +408,17 @@ binary_sensor:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: 3
|
number: 3
|
||||||
|
|
||||||
- platform: haier
|
|
||||||
haier_id: haier_climate
|
|
||||||
compressor_status:
|
|
||||||
name: Haier AC compressor status
|
|
||||||
defrost_status:
|
|
||||||
name: Haier AC defrost status
|
|
||||||
four_way_valve_status:
|
|
||||||
name: Haier AC four-way valve status
|
|
||||||
indoor_electric_heating_status:
|
|
||||||
name: Haier AC indoor electric heating status
|
|
||||||
indoor_fan_status:
|
|
||||||
name: Haier AC indoor fan status
|
|
||||||
outdoor_fan_status:
|
|
||||||
name: Haier AC outdoor fan status
|
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
- id: my_global_string
|
- id: my_global_string
|
||||||
type: std::string
|
type: std::string
|
||||||
initial_value: '""'
|
initial_value: '""'
|
||||||
|
|
||||||
remote_receiver:
|
|
||||||
pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: GPIO12
|
|
||||||
dump: []
|
|
||||||
|
|
||||||
status_led:
|
status_led:
|
||||||
pin:
|
pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO2
|
number: GPIO2
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- platform: daly_bms
|
|
||||||
status:
|
|
||||||
name: BMS Status
|
|
||||||
- platform: version
|
- platform: version
|
||||||
name: ESPHome Version
|
name: ESPHome Version
|
||||||
icon: mdi:icon
|
icon: mdi:icon
|
||||||
|
@ -902,16 +447,6 @@ text_sensor:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
entity_id: sensor.hello_world2
|
entity_id: sensor.hello_world2
|
||||||
id: ha_hello_world2
|
id: ha_hello_world2
|
||||||
- platform: nextion
|
|
||||||
name: text0
|
|
||||||
id: text0
|
|
||||||
update_interval: 4s
|
|
||||||
component_name: text0
|
|
||||||
- platform: dsmr
|
|
||||||
identification:
|
|
||||||
name: dsmr_identification
|
|
||||||
p1_version:
|
|
||||||
name: dsmr_p1_version
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: my_script
|
- id: my_script
|
||||||
|
@ -935,27 +470,7 @@ switch:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: 3
|
number: 3
|
||||||
|
|
||||||
- platform: nextion
|
|
||||||
id: r0
|
|
||||||
name: R0 Switch
|
|
||||||
component_name: page0.r0
|
|
||||||
|
|
||||||
climate:
|
climate:
|
||||||
- platform: bang_bang
|
|
||||||
name: Bang Bang Climate
|
|
||||||
sensor: ha_hello_world
|
|
||||||
humidity_sensor: ha_hello_world
|
|
||||||
default_target_temperature_low: 18°C
|
|
||||||
default_target_temperature_high: 24°C
|
|
||||||
idle_action:
|
|
||||||
- switch.turn_on: gpio_switch1
|
|
||||||
cool_action:
|
|
||||||
- switch.turn_on: gpio_switch2
|
|
||||||
heat_action:
|
|
||||||
- switch.turn_on: gpio_switch1
|
|
||||||
away_config:
|
|
||||||
default_target_temperature_low: 16°C
|
|
||||||
default_target_temperature_high: 20°C
|
|
||||||
- platform: thermostat
|
- platform: thermostat
|
||||||
name: Thermostat Climate
|
name: Thermostat Climate
|
||||||
sensor: ha_hello_world
|
sensor: ha_hello_world
|
||||||
|
@ -1064,49 +579,6 @@ climate:
|
||||||
ki_multiplier: 0.0
|
ki_multiplier: 0.0
|
||||||
kd_multiplier: 0.0
|
kd_multiplier: 0.0
|
||||||
deadband_output_averaging_samples: 1
|
deadband_output_averaging_samples: 1
|
||||||
- platform: haier
|
|
||||||
id: haier_climate
|
|
||||||
protocol: hOn
|
|
||||||
name: Haier AC
|
|
||||||
uart_id: uart_12
|
|
||||||
wifi_signal: true
|
|
||||||
answer_timeout: 200ms
|
|
||||||
beeper: true
|
|
||||||
visual:
|
|
||||||
min_temperature: 16 °C
|
|
||||||
max_temperature: 30 °C
|
|
||||||
temperature_step:
|
|
||||||
target_temperature: 1
|
|
||||||
current_temperature: 0.5
|
|
||||||
supported_modes:
|
|
||||||
- "OFF"
|
|
||||||
- HEAT_COOL
|
|
||||||
- COOL
|
|
||||||
- HEAT
|
|
||||||
- DRY
|
|
||||||
- FAN_ONLY
|
|
||||||
supported_swing_modes:
|
|
||||||
- "OFF"
|
|
||||||
- VERTICAL
|
|
||||||
- HORIZONTAL
|
|
||||||
- BOTH
|
|
||||||
supported_presets:
|
|
||||||
- AWAY
|
|
||||||
- BOOST
|
|
||||||
- ECO
|
|
||||||
- SLEEP
|
|
||||||
on_alarm_start:
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
level: DEBUG
|
|
||||||
format: 'Alarm activated. Code: %d. Message: "%s"'
|
|
||||||
args: [code, message]
|
|
||||||
on_alarm_end:
|
|
||||||
then:
|
|
||||||
- logger.log:
|
|
||||||
level: DEBUG
|
|
||||||
format: 'Alarm deactivated. Code: %d. Message: "%s"'
|
|
||||||
args: [code, message]
|
|
||||||
|
|
||||||
sprinkler:
|
sprinkler:
|
||||||
- id: yard_sprinkler_ctrlr
|
- id: yard_sprinkler_ctrlr
|
||||||
|
@ -1151,16 +623,6 @@ sprinkler:
|
||||||
valve_switch_id: gpio_switch2
|
valve_switch_id: gpio_switch2
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: esp8266_pwm
|
|
||||||
id: out
|
|
||||||
pin:
|
|
||||||
number: D3
|
|
||||||
frequency: 50Hz
|
|
||||||
- platform: esp8266_pwm
|
|
||||||
id: out2
|
|
||||||
pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: D4
|
|
||||||
- platform: slow_pwm
|
- platform: slow_pwm
|
||||||
pin:
|
pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
|
@ -1169,8 +631,6 @@ output:
|
||||||
period: 15s
|
period: 15s
|
||||||
restart_cycle_on_state_change: false
|
restart_cycle_on_state_change: false
|
||||||
|
|
||||||
e131:
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: neopixelbus
|
- platform: neopixelbus
|
||||||
name: Neopixelbus Light
|
name: Neopixelbus Light
|
||||||
|
@ -1182,15 +642,8 @@ light:
|
||||||
method: ESP8266_UART0
|
method: ESP8266_UART0
|
||||||
num_leds: 100
|
num_leds: 100
|
||||||
effects:
|
effects:
|
||||||
- wled:
|
|
||||||
- adalight:
|
- adalight:
|
||||||
uart_id: uart_3
|
uart_id: uart_3
|
||||||
- e131:
|
|
||||||
universe: 1
|
|
||||||
- platform: hbridge
|
|
||||||
name: Icicle Lights
|
|
||||||
pin_a: out
|
|
||||||
pin_b: out2
|
|
||||||
- platform: sonoff_d1
|
- platform: sonoff_d1
|
||||||
uart_id: uart_2
|
uart_id: uart_2
|
||||||
use_rm433_remote: false
|
use_rm433_remote: false
|
||||||
|
@ -1228,19 +681,9 @@ sim800l:
|
||||||
- sim800l.dial:
|
- sim800l.dial:
|
||||||
recipient: "+1234"
|
recipient: "+1234"
|
||||||
|
|
||||||
dfplayer:
|
|
||||||
uart_id: uart_5
|
|
||||||
on_finished_playback:
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
not: dfplayer.is_playing
|
|
||||||
then:
|
|
||||||
logger.log: Playback finished event
|
|
||||||
tm1651:
|
tm1651:
|
||||||
id: tm1651_battery
|
id: tm1651_battery
|
||||||
clk_pin:
|
clk_pin:
|
||||||
allow_other_uses: true
|
|
||||||
number: D6
|
number: D6
|
||||||
dio_pin:
|
dio_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
|
@ -1278,152 +721,9 @@ rf_bridge:
|
||||||
- rf_bridge.send_raw:
|
- rf_bridge.send_raw:
|
||||||
raw: "AAA5070008001000ABC12355"
|
raw: "AAA5070008001000ABC12355"
|
||||||
|
|
||||||
display:
|
|
||||||
- platform: nextion
|
|
||||||
uart_id: uart_1
|
|
||||||
tft_url: http://esphome.io/default35.tft
|
|
||||||
update_interval: 5s
|
|
||||||
on_sleep:
|
|
||||||
then:
|
|
||||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
|
||||||
on_wake:
|
|
||||||
then:
|
|
||||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
|
||||||
on_setup:
|
|
||||||
then:
|
|
||||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
|
||||||
on_page:
|
|
||||||
then:
|
|
||||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
|
||||||
|
|
||||||
fingerprint_grow:
|
|
||||||
sensing_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: 4
|
|
||||||
sensor_power_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: 5
|
|
||||||
inverted: true
|
|
||||||
idle_period_to_sleep: 5s
|
|
||||||
password: 0x12FE37DC
|
|
||||||
new_password: 0xA65B9840
|
|
||||||
on_finger_scan_start:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_finger_scan_start
|
|
||||||
on_finger_scan_invalid:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_finger_scan_invalid
|
|
||||||
on_finger_scan_matched:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_finger_scan_matched
|
|
||||||
data:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
confidence: !lambda "return confidence;"
|
|
||||||
on_finger_scan_unmatched:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_finger_scan_unmatched
|
|
||||||
on_finger_scan_misplaced:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_finger_scan_misplaced
|
|
||||||
on_enrollment_scan:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_enrollment_scan
|
|
||||||
data:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
scan_num: !lambda "return scan_num;"
|
|
||||||
on_enrollment_done:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_node_enrollment_done
|
|
||||||
data:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
on_enrollment_failed:
|
|
||||||
- homeassistant.event:
|
|
||||||
event: esphome.${device_name}_fingerprint_grow_enrollment_failed
|
|
||||||
data:
|
|
||||||
finger_id: !lambda "return finger_id;"
|
|
||||||
uart_id: uart_6
|
|
||||||
|
|
||||||
dsmr:
|
|
||||||
decryption_key: 00112233445566778899aabbccddeeff
|
|
||||||
uart_id: uart_6
|
|
||||||
max_telegram_length: 1000
|
|
||||||
request_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: D5
|
|
||||||
request_interval: 20s
|
|
||||||
receive_timeout: 100ms
|
|
||||||
|
|
||||||
daly_bms:
|
|
||||||
update_interval: 20s
|
|
||||||
uart_id: uart_1
|
|
||||||
|
|
||||||
qr_code:
|
|
||||||
- id: homepage_qr
|
|
||||||
value: https://esphome.io/index.html
|
|
||||||
|
|
||||||
lightwaverf:
|
lightwaverf:
|
||||||
read_pin:
|
read_pin:
|
||||||
number: 13
|
number: 13
|
||||||
write_pin:
|
write_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: 14
|
number: 14
|
||||||
|
|
||||||
alarm_control_panel:
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel1
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_state:
|
|
||||||
then:
|
|
||||||
- lambda: !lambda |-
|
|
||||||
ESP_LOGD("TEST", "State change %s", alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state()));
|
|
||||||
- platform: template
|
|
||||||
id: alarmcontrolpanel2
|
|
||||||
name: Alarm Panel
|
|
||||||
codes:
|
|
||||||
- "1234"
|
|
||||||
requires_code_to_arm: true
|
|
||||||
arming_home_time: 1s
|
|
||||||
arming_night_time: 1s
|
|
||||||
arming_away_time: 15s
|
|
||||||
pending_time: 15s
|
|
||||||
trigger_time: 30s
|
|
||||||
binary_sensors:
|
|
||||||
- input: bin1
|
|
||||||
bypass_armed_home: true
|
|
||||||
bypass_armed_night: true
|
|
||||||
on_disarmed:
|
|
||||||
then:
|
|
||||||
- logger.log: "### DISARMED ###"
|
|
||||||
on_pending:
|
|
||||||
then:
|
|
||||||
- logger.log: "### PENDING ###"
|
|
||||||
on_arming:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMING ###"
|
|
||||||
on_armed_home:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED HOME ###"
|
|
||||||
on_armed_night:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED NIGHT ###"
|
|
||||||
on_armed_away:
|
|
||||||
then:
|
|
||||||
- logger.log: "### ARMED AWAY ###"
|
|
||||||
on_triggered:
|
|
||||||
then:
|
|
||||||
- logger.log: "### TRIGGERED ###"
|
|
||||||
on_cleared:
|
|
||||||
then:
|
|
||||||
- logger.log: "### CLEARED ###"
|
|
||||||
|
|
Loading…
Reference in New Issue