-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkus_led_controller.yaml
76 lines (70 loc) · 1.38 KB
/
markus_led_controller.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
# Enable logging
#logger:
output:
- platform: ledc
pin: GPIO21
frequency: 1220
id: pwm_r
- platform: ledc
pin: GPIO19
frequency: 1220
id: pwm_g
- platform: ledc
pin: GPIO18
frequency: 1220
id: pwm_b
- platform: ledc
pin: GPIO17
frequency: 1220
id: pwm_w
- platform: ledc
pin: GPIO16
frequency: 1220
id: pwm_ww
light:
- platform: rgbww
id: light1
restore_mode: RESTORE_DEFAULT_ON
name: ${upper_devicename}
red: pwm_r
green: pwm_g
blue: pwm_b
cold_white: pwm_w
warm_white: pwm_ww
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
status_led:
pin: GPIO12
remote_receiver:
pin:
number: GPIO15
inverted: True
dump: nec
binary_sensor:
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: ${upper_devicename} Push Button
filters:
- delayed_on: 10ms
sensor:
- platform: wifi_signal
name: ${upper_devicename} WiFi Signal
update_interval: 60s
- platform: adc
pin: GPIO34
name: ${upper_devicename} Input voltage
attenuation: 6db
update_interval: 1s
filters:
- multiply: 10.989
- platform: adc
pin: GPIO35
name: ${upper_devicename} LED current
attenuation: 6db
unit_of_measurement: "A"
update_interval: 1s
filters:
- multiply: 5