Für alle die Ihre Jalousien mit einem Shelly 2.5 betreiben wollen hier einmal ein ESPHome Beispiel.
Funktioniert auch mit der Lovelace Vertical Slider Cover Card:
https://github.com/konnectedvn/lovelace-vertical-slider-cover-card
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
esphome:
name: rollo
platform: ESP8266
board: esp01_1m
wifi:
networks:
- ssid: "XXXX"
password: "XXXX"
power_save_mode: none
fast_connect: true
output_power: 20dB
manual_ip:
static_ip: 192.168.XX.XX
gateway: 192.168.178.1
subnet: 255.255.255.0
ap:
ssid: "rollo"
password: "PW"
captive_portal:
logger:
api:
ota:
switch:
- platform: gpio
pin: GPIO4
name: "Relay #1"
internal: true
id: relay1
interlock: &interlock_group [relay1, relay2]
- platform: gpio
pin: GPIO15
name: "Relay #2"
internal: true
id: relay2
interlock: *interlock_group
- platform: template
id: block_control
name: "Keller Rollo Block Control"
optimistic: true
- platform: template
name: "Move UP"
internal: true
optimistic: true
lambda: |-
if (id(switch1).state && !id(block_control).state) {
return true;
} else {
return false;
}
######FÜR TASTER######
turn_on_action:
then:
cover.open: rolladen
turn_off_action:
then:
cover.stop: rolladen
######FÜR KIPP/SCHALTER#####
# on_turn_on:
# then:
# cover.open: rolladen
# on_turn_off:
# then:
# cover.stop: rolladen
- platform: template
name: "Move DOWN"
optimistic: true
internal: true
lambda: |-
if (id(switch2).state && !id(block_control).state) {
return true;
} else {
return false;
}
######FÜR TASTER######
turn_on_action:
then:
cover.close: rolladen
turn_off_action:
then:
cover.stop: rolladen
######FÜR KIPP/SCHALTER#####
# on_turn_on:
# then:
# cover.close: rolladen
# on_turn_off:
# then:
# cover.stop: rolladen
binary_sensor:
- platform: gpio
pin: GPIO13
name: "Switch #1"
internal: true
id: switch1
######FÜR 2TASTER######
on_press:
then:
- switch.toggle: relay1
######FÜR 1TASTER######
# on_press:
# then:
# logic for cycling through movements: open->stop->close->stop->...
# - lambda: |
# if (id(rolladen).current_operation == COVER_OPERATION_IDLE) {
# // Cover is idle, check current state and either open or close cover.
# if (id(rolladen).is_fully_closed()) {
# id(rolladen).open();
# } else {
# id(rolladen).close();
# }
# } else {
# // Cover is opening/closing. Stop it.
# id(rolladen).stop();
# }
######FÜR TASTER/KIPP/SCHALTER#####
# on_press:
# then:
# - cover.open: rolladen
- platform: gpio
pin: GPIO5
name: "Switch #2"
internal: true
id: switch2
######FÜR 2TASTER######
on_press:
then:
- switch.toggle: relay2
######FÜR 1TASTER######
# on_press:
# then:
# logic for cycling through movements: open->stop->close->stop->...
# - lambda: |
# if (id(rolladen).current_operation == COVER_OPERATION_IDLE) {
# // Cover is idle, check current state and either open or close cover.
# if (id(rolladen).is_fully_closed()) {
# id(rolladen).open();
# } else {
# id(rolladen).close();
# }
# } else {
# // Cover is opening/closing. Stop it.
# id(rolladen).stop();
# }
######FÜR TASTER/KIPP/SCHALTER#####
# on_press:
# then:
# - cover.close: rolladen
- platform: gpio
pin: GPIO16
name: "ade7953 IRQ pin"
internal: true
cover:
- platform: time_based
name: "Keller_Rollo"
id: rolladen
open_action:
- switch.turn_on: relay2
open_duration: 25s
close_action:
- switch.turn_on: relay1
close_duration: 25s
stop_action:
- switch.turn_off: relay1
- switch.turn_off: relay2
i2c:
sda: GPIO12
scl: GPIO14
sensor:
- platform: ade7953
irq_pin: GPIO16
voltage:
name: ADE7953 Voltage
current_a:
name: ADE7953 Current A
current_b:
name: ADE7953 Current B
active_power_a:
name: ADE7953 Active Power A
active_power_b:
name: ADE7953 Active Power B
update_interval: 3s
- platform: ntc
sensor: temp_resistance_reading
name: "Rollo Temperature"
calibration:
b_constant: 3350
reference_resistance: 10kOhm
reference_temperature: 298.15K
- platform: resistance
id: temp_resistance_reading
sensor: temp_analog_reading
configuration: DOWNSTREAM
resistor: 32kOhm
- platform: adc
id: temp_analog_reading
pin: A0
- platform: wifi_signal
name: "Rollo WiFi Signal"
update_interval: 60s
Video zur Jalousie mit ESPHome in Home Assistant
🎥
YouTube-Video
Lädt Inhalte von YouTube. Durch Klick stimmen Sie dem Laden externer Inhalte zu.