Bundle Raspberry Pi 7" Touchscreen Display & Pi 3 Gehäuse [schwarz]
--
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
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