-
Notifications
You must be signed in to change notification settings - Fork 33
/
test_empty_components.yaml
103 lines (77 loc) · 1.96 KB
/
test_empty_components.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# this configuration file has all empty custom components set up.
# use 'esphome test_empty.yaml compile' to build.
packages:
device: !include device.yaml # include our test device setup
sensor:
- platform: empty_sensor
name: Empty sensor
- platform: empty_i2c_sensor
name: Empty I2C sensor
- platform: empty_spi_sensor
name: Empty SPI sensor
cs_pin: D8
- platform: empty_uart_sensor
name: Empty UART sensor
- platform: empty_compound_sensor
sensor1:
name: Sensor 1
sensor2:
name: Sensor 2
sensor3:
name: Sensor 3
- platform: empty_sensor_hub
name: Sensor for empty sensor hub
empty_sensor_hub_id: empty_sensor_hub_1
binary_sensor:
- platform: empty_binary_sensor
name: Empty binary sensor
- platform: empty_sensor_hub
name: Binary sensor for empty sensor hub
empty_sensor_hub_id: empty_sensor_hub_1
output:
- platform: empty_binary_output
id: empty_binary_output_1
- platform: empty_float_output
id: empty_float_output_1
light:
- platform: empty_light
name: Empty light
output: empty_float_output_1
switch:
- platform: empty_switch
name: Empty switch
fan:
- platform: empty_fan
name: Empty fan
output: empty_binary_output_1
text_sensor:
- platform: empty_text_sensor
name: Empty text sensor
- platform: empty_sensor_hub
name: Text sensor for empty sensor hub
empty_sensor_hub_id: empty_sensor_hub_1
cover:
platform: empty_cover
name: Empty cover
empty_component:
id: empty_component_1
i2c:
sda: 4
scl: 5
empty_i2c_component:
id: empty_i2c_component_1
address: 0x01
uart:
tx_pin: D0
rx_pin: D1
baud_rate: 9600
empty_uart_component:
id: empty_uart_component_1
spi:
clk_pin: D5
miso_pin: D6
empty_spi_component:
id: empty_spi_component_1
cs_pin: D8
empty_sensor_hub:
id: empty_sensor_hub_1