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
configuration.yaml
1esphome:
2 name: rollo
3 platform: ESP8266
4 board: esp01_1m
5
6wifi:
7 networks:
8 - ssid: "XXXX"
9 password: "XXXX"
10 power_save_mode: none
11 fast_connect: true
12 output_power: 20dB
13 manual_ip:
14 static_ip: 192.168.XX.XX
15 gateway: 192.168.178.1
16 subnet: 255.255.255.0
17
18 ap:
19 ssid: "rollo"
20 password: "PW"
21
22captive_portal:
23
24logger:
25
26api:
27
28ota:
29
30
31switch:
32 - platform: gpio
33 pin: GPIO4
34 name: "Relay #1"
35 internal: true
36 id: relay1
37 interlock: &interlock_group [relay1, relay2]
38
39 - platform: gpio
40 pin: GPIO15
41 name: "Relay #2"
42 internal: true
43 id: relay2
44 interlock: *interlock_group
45
46 - platform: template
47 id: block_control
48 name: "Keller Rollo Block Control"
49 optimistic: true
50
51 - platform: template
52 name: "Move UP"
53 internal: true
54 optimistic: true
55 lambda: |-
56 if (id(switch1).state && !id(block_control).state) {
57 return true;
58 } else {
59 return false;
60 }
61######FÜR TASTER######
62 turn_on_action:
63 then:
64 cover.open: rolladen
65 turn_off_action:
66 then:
67 cover.stop: rolladen
68
69######FÜR KIPP/SCHALTER#####
70# on_turn_on:
71# then:
72# cover.open: rolladen
73# on_turn_off:
74# then:
75# cover.stop: rolladen
76
77 - platform: template
78 name: "Move DOWN"
79 optimistic: true
80 internal: true
81 lambda: |-
82 if (id(switch2).state && !id(block_control).state) {
83 return true;
84 } else {
85 return false;
86 }
87######FÜR TASTER######
88 turn_on_action:
89 then:
90 cover.close: rolladen
91 turn_off_action:
92 then:
93 cover.stop: rolladen
94
95######FÜR KIPP/SCHALTER#####
96# on_turn_on:
97# then:
98# cover.close: rolladen
99# on_turn_off:
100# then:
101# cover.stop: rolladen
102
103
104binary_sensor:
105 - platform: gpio
106 pin: GPIO13
107 name: "Switch #1"
108 internal: true
109 id: switch1
110######FÜR 2TASTER######
111 on_press:
112 then:
113 - switch.toggle: relay1
114
115######FÜR 1TASTER######
116# on_press:
117# then:
118 # logic for cycling through movements: open->stop->close->stop->...
119# - lambda: |
120# if (id(rolladen).current_operation == COVER_OPERATION_IDLE) {
121# // Cover is idle, check current state and either open or close cover.
122# if (id(rolladen).is_fully_closed()) {
123# id(rolladen).open();
124# } else {
125# id(rolladen).close();
126# }
127# } else {
128# // Cover is opening/closing. Stop it.
129# id(rolladen).stop();
130# }
131
132######FÜR TASTER/KIPP/SCHALTER#####
133# on_press:
134# then:
135# - cover.open: rolladen
136
137
138 - platform: gpio
139 pin: GPIO5
140 name: "Switch #2"
141 internal: true
142 id: switch2
143######FÜR 2TASTER######
144 on_press:
145 then:
146 - switch.toggle: relay2
147
148######FÜR 1TASTER######
149# on_press:
150# then:
151 # logic for cycling through movements: open->stop->close->stop->...
152# - lambda: |
153# if (id(rolladen).current_operation == COVER_OPERATION_IDLE) {
154# // Cover is idle, check current state and either open or close cover.
155# if (id(rolladen).is_fully_closed()) {
156# id(rolladen).open();
157# } else {
158# id(rolladen).close();
159# }
160# } else {
161# // Cover is opening/closing. Stop it.
162# id(rolladen).stop();
163# }
164
165######FÜR TASTER/KIPP/SCHALTER#####
166# on_press:
167# then:
168# - cover.close: rolladen
169
170
171 - platform: gpio
172 pin: GPIO16
173 name: "ade7953 IRQ pin"
174 internal: true
175
176cover:
177 - platform: time_based
178 name: "Keller_Rollo"
179 id: rolladen
180
181 open_action:
182 - switch.turn_on: relay2
183 open_duration: 25s
184
185 close_action:
186 - switch.turn_on: relay1
187 close_duration: 25s
188
189 stop_action:
190 - switch.turn_off: relay1
191 - switch.turn_off: relay2
192
193i2c:
194 sda: GPIO12
195 scl: GPIO14
196
197sensor:
198 - platform: ade7953
199 irq_pin: GPIO16
200 voltage:
201 name: ADE7953 Voltage
202 current_a:
203 name: ADE7953 Current A
204 current_b:
205 name: ADE7953 Current B
206 active_power_a:
207 name: ADE7953 Active Power A
208 active_power_b:
209 name: ADE7953 Active Power B
210 update_interval: 3s
211
212 - platform: ntc
213 sensor: temp_resistance_reading
214 name: "Rollo Temperature"
215 calibration:
216 b_constant: 3350
217 reference_resistance: 10kOhm
218 reference_temperature: 298.15K
219
220 - platform: resistance
221 id: temp_resistance_reading
222 sensor: temp_analog_reading
223 configuration: DOWNSTREAM
224 resistor: 32kOhm
225
226 - platform: adc
227 id: temp_analog_reading
228 pin: A0
229
230 - platform: wifi_signal
231 name: "Rollo WiFi Signal"
232 update_interval: 60s