-
Notifications
You must be signed in to change notification settings - Fork 0
/
tecalor-tvz170-e-plus.yaml
50 lines (44 loc) · 903 Bytes
/
tecalor-tvz170-e-plus.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
i2c:
sda: 5
scl: 4
scan: true
id: bus_a
gp8403:
id: my_gp8403
voltage: 10V
output:
- platform: gp8403
id: my_gp8403_output_1
gp8403_id: my_gp8403
channel: 0
- platform: gp8403
id: my_gp8403_output_2
gp8403_id: my_gp8403
channel: 1
switch:
- platform: gpio
pin:
number: 8
name: "Ventilation"
inverted: true
icon: "mdi:fan"
restore_mode: RESTORE_DEFAULT_ON
# if you use my ESP32 CAN test PCB, you need to use the jumper array to route GPIO7 to TX LED
status_led:
pin: GPIO7
number:
- platform: template
name: "Air Flow"
id: "air_flow"
unit_of_measurement: "m³/h"
min_value: 50
max_value: 295
optimistic: true
step: 5
icon: "mdi:fan"
initial_value: 111
restore_value: true
on_value:
then:
- lambda: |-
id(my_gp8403_output_1).set_level( (x-50) / (295-50) );