-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquigg-rf-outlets.yaml
178 lines (156 loc) · 3.65 KB
/
quigg-rf-outlets.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
substitutions:
name: quigg-rf-outlets
friendly_name: rf-switch
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: '1.0'
esp8266:
board: d1_mini
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: !secret esphome_encryption_key
# Allow Over-The-Air updates
ota:
# Allow provisioning Wi-Fi via serial
#improv_serial:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Set up a wifi access point
ap: {}
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:
dashboard_import:
package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main
import_full_config: true
# To have a "next url" for improv serial
web_server:
external_components:
source: github://DonKracho/ESPHome-External-Components/components@main
switch:
- platform: rf_switch
name: 'Licht'
icon: mdi:lightbulb
channel: 0
output: rf_transmitter
- platform: rf_switch
name: 'Quigg 01'
icon: mdi:power-socket-de
channel: 1
output: rf_transmitter
- platform: rf_switch
name: 'Quigg 02'
icon: mdi:power-socket-de
channel: 2
output: rf_transmitter
- platform: rf_switch
name: 'Quigg 03'
icon: mdi:power-socket-de
channel: 3
output: rf_transmitter
# uncomment these switches for usage of more than 4 outlets
# - platform: rf_switch
# name: 'Quigg 04'
# icon: mdi:power-socket-de
# channel: 4
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 05'
# icon: mdi:power-socket-de
# channel: 5
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 06'
# icon: mdi:power-socket-de
# channel: 6
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 07'
# icon: mdi:power-socket-de
# channel: 7
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 08'
# icon: mdi:power-socket-de
# channel: 8
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 09'
# icon: mdi:power-socket-de
# channel: 9
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 11'
# icon: mdi:power-socket-de
# channel: 11
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 12'
# icon: mdi:power-socket-de
# channel: 12
# output: rf_transmitter
#
# - platform: rf_switch
# name: 'Quigg 13'
# icon: mdi:power-socket-de
# channel: 13
# output: rf_transmitter
#
# - platform: rf_switch
# icon: mdi:power-socket-de
# name: 'Quigg 14'
# channel: 14
# output: rf_transmitter
#
# - platform: rf_switch
# icon: mdi:power-socket-de
# name: 'Quigg 15'
# channel: 15
# output: rf_transmitter
# special channel used for master function
- platform: rf_switch
name: 'Master'
channel: 10
output: rf_transmitter
- platform: rf_switch
id: clear
channel: 2 # master of group 1
group: 1 # use altermative master of group 1
output: rf_transmitter
internal: true
# optional use of other ESP pins for ralays
- platform: gpio
name: 'Springbrunnen'
icon: "mdi:fountain"
pin:
number: GPIO5 #D1
inverted: true
# special button for clearing an outlet
button:
- platform: template
name: Clear Outlet
icon: "mdi:restore"
on_press:
- switch.turn_off: clear
# this output component must exist! It is used as output for all rf_switches
output:
- platform: rf_outlet
id: rf_transmitter
pin: GPIO2 # D4 (LED pin), do not invert this pin, because it uses an encoded float!
repeat: 6