Devil & apreick danke erstmal für euren Support.
Also dann bleibe ich jetzt erstmal bei der Automation.
ich habe jetzt die Config.yaml so angepasst:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
rest_command:
cover_up:
url: http://192.168.188.222/roller/0?go=open&duration=0.5
cover_down:
url: http://192.168.188.222/roller/0?go=close&duration=0.5
Alles anzeigen
das mit den Variablen klingt natürlich verlockend, und ist sicher auch der bessere Weg, aber ich bin froh wenn ich es so hinbekomme mit eurer hilfe.
Das mit den 3 Triggern habe ich glaub richtig umgesetzt, und das mit dem Auswählen zwischen den drei optionen 2/3/4 x repeat auch denke ich.
Aber wo kommt jetzt hier mein eigentliche Aktion rein?
sequence:
- service: rest_command.cover
data: {}
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 900
muss ich die jetzt unten anfügen oder jedes mal bei Sequence [] einfügen?
Der Code sieht jetzt ja erstmal so aus:
alias: Jalousie_TILT-OPEN-30/60/90
description: "TILT-OPEN-30/60/90"
trigger:
- platform: device
device_id: 79a4b84510154315e127b9912ed441e9
domain: shelly
type: double_push
subtype: button1
id: Jalousie-Tilt-OPEN-90
- platform: device
device_id: 79a4b84510154315e127b9912ed441e9
domain: shelly
type: double_push
subtype: button1
id: Jalousie-Tilt-OPEN-60
- platform: device
device_id: 79a4b84510154315e127b9912ed441e9
domain: shelly
type: double_push
subtype: button1
id: Jalousie-Tilt-OPEN-30
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Jalousie-Tilt-OPEN-90
sequence:
- repeat:
count: 4
sequence: []
- conditions:
- condition: trigger
id:
- Jalousie-Tilt-OPEN-60
sequence:
- repeat:
count: 3
sequence: []
- conditions:
- condition: trigger
id:
- Jalousie-Tilt-OPEN-30
sequence:
- repeat:
count: 2
sequence: []
mode: single
Alles anzeigen