forked from dgrnbrg/appdaemon-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightboard.yaml
156 lines (141 loc) · 3.82 KB
/
lightboard.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
substitutions:
device_name: lightyio
esphome:
name: lightyio
friendly_name: lightyio
esp32:
board: wesp32
# framework:
# type: esp-idf
# version: recommended
framework:
type: arduino
# Enable logging
logger:
level: DEBUG
packages:
#irk_locator: !include irk_locator.yaml
dac1: !include {file: dac_light.yaml, vars: { address: 0x4C, id: U11,
light1: "Light 1", light1_warm_ct: "5000 K", light1_cool_ct: "3000 K",
light2: "Light 2", light2_warm_ct: "5000 K", light2_cool_ct: "3000 K",
light3: "Light 3", light3_warm_ct: "5000 K", light3_cool_ct: "3000 K",
light4: "Light 4", light4_warm_ct: "5000 K", light4_cool_ct: "3000 K",
}}
dac2: !include {file: dac_light.yaml, vars: { address: 0x48, id: U9,
light1: "Light 5", light1_warm_ct: "5000 K", light1_cool_ct: "3000 K",
light2: "Light 6", light2_warm_ct: "5000 K", light2_cool_ct: "3000 K",
light3: "Light 7", light3_warm_ct: "5000 K", light3_cool_ct: "3000 K",
light4: "Light 8", light4_warm_ct: "5000 K", light4_cool_ct: "3000 K",
}}
dac3: !include {file: dac_light.yaml, vars: { address: 0x4A, id: U7,
light1: "Light 9", light1_warm_ct: "5000 K", light1_cool_ct: "3000 K",
light2: "Light 10", light2_warm_ct: "5000 K", light2_cool_ct: "3000 K",
light3: "Light 11", light3_warm_ct: "5000 K", light3_cool_ct: "3000 K",
light4: "Light 12", light4_warm_ct: "5000 K", light4_cool_ct: "3000 K",
}}
# Enable Home Assistant API
api:
ota:
password: ""
ethernet:
type: RTL8201
mdc_pin: GPIO16
mdio_pin: GPIO17
clk_mode: GPIO0_IN
phy_addr: 0
i2c:
scl: GPIO4
sda: GPIO15
scan: true
id: i2c_bus
binary_sensor:
- platform: status
name: ${device_name} status
- platform: gpio
pin:
number: GPIO23
mode:
input: true
pullup: true
name: Pushbutton
filters: # debounce
- delayed_on_off: 10ms
# on_press:
# then:
# - switch.turn_off: en_5v
# - delay: 500ms
# - button.press: restart_internal
switch:
# - platform: gpio
# id: en_5v
# pin: GPIO12
# name: Enable 5V
- platform: gpio
pin: GPIO32
id: ntc_vcc
internal: true
name: NTC VCC switch
output:
- platform: gpio
id: ldac
pin: GPIO2
button:
- platform: restart
name: Restart ESP32
id: restart_internal
entity_category: config
- platform: output
name: LDAC
output: ldac
duration: 1ms
sensor:
- platform: internal_temperature
name: "Internal Temperature"
entity_category: diagnostic
- platform: ntc
name: "Isolated Section Left"
sensor: left_resistance
entity_category: diagnostic
calibration:
b_constant: 3435
reference_temperature: 25C
reference_resistance: 10kOhm
- platform: resistance
id: left_resistance
sensor: left_source
configuration: UPSTREAM
resistor: 10kOhm
- platform: adc
pin: GPIO34
id: left_source
update_interval: never
attenuation: 11db
internal: true
name: Left NTC ADC
- platform: ntc
name: "Isolated Section Right"
sensor: right_resistance
entity_category: diagnostic
calibration:
b_constant: 3435
reference_temperature: 25C
reference_resistance: 10kOhm
- platform: resistance
id: right_resistance
sensor: right_source
configuration: UPSTREAM
resistor: 10kOhm
- platform: adc
pin: GPIO39
id: right_source
update_interval: never
attenuation: 11db
name: Right NTC ADC
internal: true
interval:
- interval: 60s
then:
- switch.turn_on: ntc_vcc
- component.update: left_source
- component.update: right_source
- switch.turn_off: ntc_vcc