-
Notifications
You must be signed in to change notification settings - Fork 3
/
esphome-aw9523.yaml
105 lines (95 loc) · 1.72 KB
/
esphome-aw9523.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
esphome:
name: esphome-aw9523
external_components:
- source:
type: local
path: components
esp32:
board: featheresp32
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
i2c:
scan: false
aw9523:
- id: aw9523_1
address: 0x58
divider: 3
latch_inputs: true
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
light:
- platform: monochromatic
name: "AW9523 #00"
output: aw9523_pin_0
- platform: monochromatic
name: "AW9523 #01"
output: aw9523_pin_1
- platform: monochromatic
name: "AW9523 #02"
output: aw9523_pin_2
- platform: monochromatic
name: "AW9523 #15"
output: aw9523_pin_15
output:
- platform: aw9523
aw9523: aw9523_1
id: aw9523_pin_0
max_current: 10 mA
pin: 0
- platform: aw9523
aw9523: aw9523_1
id: aw9523_pin_1
max_current: 9.25 mA
pin: 1
- platform: aw9523
aw9523: aw9523_1
id: aw9523_pin_2
# max_current: 10 mA
pin: 2
- platform: aw9523
aw9523: aw9523_1
id: aw9523_pin_15
max_current: 10
pin: 15
binary_sensor:
- platform: gpio
name: "AW9523 Pin #14"
pin:
aw9523: aw9523_1
number: 14
mode:
input: true
inverted: true
- platform: gpio
name: "AW9523 Pin #03"
pin:
aw9523: aw9523_1
number: 3
mode:
input: true
inverted: true
# Individual binary outputs
switch:
- platform: gpio
name: "AW9523 Pin #12"
pin:
aw9523: aw9523_1
number: 12
mode:
output: true
- platform: gpio
name: "AW9523 Pin #04"
pin:
aw9523: aw9523_1
number: 4
mode:
output: true