1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add validate to components (#1631)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Guillermo Ruffino
2021-05-30 19:06:45 -03:00
committed by GitHub
parent 482a3aebc9
commit c79d700d03
16 changed files with 174 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
esphome:
name: $devicename
comment: $devicecomment
name: $device_name
comment: $device_comment
platform: ESP8266
board: d1_mini
build_path: build/test3
@@ -13,8 +13,8 @@ esphome:
- custom.h
substitutions:
devicename: test3
devicecomment: test3 device
device_name: test3
device_comment: test3 device
min_sub: '0.03'
max_sub: '12.0%'
@@ -213,9 +213,33 @@ spi:
miso_pin: GPIO14
uart:
- tx_pin: GPIO1
- id: uart1
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 115200
- id: uart2
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 9600
- id: uart3
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 4800
- id: uart4
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 9600
- id: uart5
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 9600
- id: uart6
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 9600
modbus:
uart_id: uart1
ota:
safe_mode: True
@@ -369,6 +393,7 @@ sensor:
active_power_b:
name: ADE7953 Active Power B
- platform: pzem004t
uart_id: uart3
voltage:
name: 'PZEM00T Voltage'
current:
@@ -408,6 +433,7 @@ sensor:
name: 'AQI'
calculation_type: 'AQI'
- platform: pmsx003
uart_id: uart2
type: PMSX003
pm_1_0:
name: 'PM 1.0 Concentration'
@@ -415,25 +441,8 @@ sensor:
name: 'PM 2.5 Concentration'
pm_10_0:
name: 'PM 10.0 Concentration'
- platform: pmsx003
type: PMS5003T
pm_2_5:
name: 'PM 2.5 Concentration'
temperature:
name: 'PMS Temperature'
humidity:
name: 'PMS Humidity'
- platform: pmsx003
type: PMS5003ST
pm_2_5:
name: 'PM 2.5 Concentration'
temperature:
name: 'PMS Temperature'
humidity:
name: 'PMS Humidity'
formaldehyde:
name: 'PMS Formaldehyde Concentration'
- platform: cse7766
uart_id: uart3
voltage:
name: 'CSE7766 Voltage'
current:
@@ -443,7 +452,7 @@ sensor:
- platform: ezo
id: ph_ezo
address: 99
unit_of_measurement: 'pH'
unit_of_measurement: 'pH'
- platform: tof10120
name: "Distance sensor"
update_interval: 5s
@@ -867,6 +876,7 @@ light:
effects:
- wled:
- adalight:
uart_id: uart3
- e131:
universe: 1
- platform: hbridge
@@ -888,6 +898,7 @@ ttp229_bsf:
scl_pin: D1
sim800l:
uart_id: uart4
on_sms_received:
- lambda: |-
std::string str;
@@ -900,6 +911,7 @@ sim800l:
recipient: '+1234'
dfplayer:
uart_id: uart5
on_finished_playback:
then:
if:
@@ -913,6 +925,7 @@ tm1651:
dio_pin: D5
rf_bridge:
uart_id: uart5
on_code_received:
- lambda: |-
uint32_t test;
@@ -1006,3 +1019,4 @@ fingerprint_grow:
event: esphome.${devicename}_fingerprint_grow_enrollment_failed
data:
finger_id: !lambda 'return finger_id;'
uart_id: uart6