forked from vt-vaio/rowi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rowi-plug.yaml
93 lines (75 loc) · 1.36 KB
/
rowi-plug.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
substitutions:
name: rowi-plug
friendly_name: "Rowi Plug"
esphome:
name: ${name}
name_add_mac_suffix: true
project:
name: "kiwi-warmer.rowi-plug"
version: "1.0"
esp32:
board: nodemcu-32s
wifi:
ap: {}
logger:
api:
ota:
dashboard_import:
package_import_url: github://thompsa/rowi/rowi-plug.yaml@main
esp32_ble_tracker:
scan_parameters:
active: true
bluetooth_proxy:
active: true
binary_sensor:
- platform: gpio
pin:
number: GPIO4
mode:
input: true
pullup: true
inverted: true
name: "${friendly_name} Button"
disabled_by_default: true
on_click:
- switch.toggle: relay
- platform: status
name: "${friendly_name} Status"
switch:
- platform: gpio
name: "${friendly_name}"
pin: GPIO2
id: relay
output:
- platform: ledc
id: red
pin:
number: GPIO18
inverted: true
- platform: ledc
id: green
pin:
number: GPIO19
inverted: true
- platform: ledc
id: blue
pin:
number: GPIO21
inverted: true
light:
- platform: rgb
name: ${friendly_name}
disabled_by_default: true
id: rgb_light
red: red
green: green
blue: blue
i2c:
sda: GPIO16
scl: GPIO17
sensor:
- platform: shtcx
temperature:
name: "${friendly_name} Temperature"
humidity:
name: "${friendly_name} Humidity"