Hallo an alle
Folgende Situation ich habe einen Hörmann Garage Tor Antriebe Supramatic 4
Dieser Blinkt wenn das Tor in Richtung zu Fährt blinkt als Vorwarnung
Wenn man im Auto sitzt sieht man es aber nicht
Ich habe einen Magnetkontakt am Tor und an der Tor steuerung eine Shelly Uni dran um das Tor über HA zusteuerung und für die Beleuchtung in der Garage einen Shelly Mini gen 3 (Blau) wäre es möglich da eine Blink Funktion zu integrieren ???
JC00P3R
27. Oktober 2024 um 21:29
2
Grüße,
Warum sollte es nicht gehen? Bau dir ein Skript das den shelly in einem bestimmten Intervall ein und dann wieder ausschaltet.
Dann wenn das Tor fährt löst du das Skript so oft aus bis das Tor zu ist. Alternativ kannst du auch eine feste Zeit vorgeben.
1 „Gefällt mir“
alias: "Licht Garage "
description: ""
triggers:
- type: opened
device_id: d9c1dad109d7d5ab67c465e93b76f727
entity_id: 82adea67ebbc0b9032c018f66ee121cf
domain: binary_sensor
trigger: device
id: Garage auf
- type: not_opened
device_id: d9c1dad109d7d5ab67c465e93b76f727
entity_id: 82adea67ebbc0b9032c018f66ee121cf
domain: binary_sensor
trigger: device
id: Garage zu
conditions: []
actions:
- if:
- condition: trigger
id:
- Garage auf
then:
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- if:
- condition: trigger
id:
- Garage zu
then:
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
mode: single
Hab ich soweit auch geschafft nur ist jetzt mein Problem wenn ich das vor Ablauf der Zeit schließe das licht aber an bleibt
by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
JC00P3R
29. Oktober 2024 um 12:08
4
Ich würde es ein bisschen einfacher machen. Schau mal ob du mit dem Bild klar kommst:
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- cover.garagentor
to: closed
from: open
conditions: []
actions:
- repeat:
sequence:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.lampe_flur
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
entity_id: cover.garagentor
state: closed
Cool der Gedanke ist auch nicht schlecht werde ich nachher ausprobieren Und berichten
alias: Garagen licht
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
conditions: []
actions:
- repeat:
sequence:
- type: toggle
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
state: "off"
entity_id: binary_sensor.magnet_input
mode: single
Ich habs jetzt mal umgebaut Prinzipielle funktioniert es aber ich brauch noch 2:10 min dauer licht an bevor es blinkt
by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
maxe
29. Oktober 2024 um 16:20
7
Dann setz doch “light.turn_on” und ein “Warte …” vorher.
alias: Garagen licht
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
conditions: []
actions:
- repeat:
sequence:
- type: turn_on
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- type: toggle
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
state: "off"
entity_id: binary_sensor.magnet_input
mode: single
Meinst so ?
maxe
29. Oktober 2024 um 16:43
9
Nein, das wird ja sonst mit repeated
alias: Garagen licht
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.xy
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- repeat:
sequence:
- type: toggle
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
state: "off"
entity_id: binary_sensor.magnet_input
mode: single
Jetzt Funktioniert aber wenn ich das Tor Früher zumachen bleibt das dauerlicht an
JC00P3R
29. Oktober 2024 um 18:12
11
Dann füge als trigger noch Tor geschlossen hinzu und vergib eine ID.
Wenn die ID ausgelöst wird und das Licht noch an ist (Vielleicht auch für länger als 5s) dann Licht aus.
Vg
alias: Garagen licht 2
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
- device_id: d9c1dad109d7d5ab67c465e93b76f727
domain: cover
entity_id: 774e22740f65a07b0d7b34ff53c7319e
type: closed
trigger: device
id: Tor zu
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.lichtschalter
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- repeat:
sequence:
- type: toggle
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
state: "off"
entity_id: binary_sensor.magnet_input
- if:
- condition: trigger
id:
- Tor zu
then:
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
mode: single
Update1:
Ich probiere das mal morgen aus
Update2:
Hat nicht Funktioniert
by HarryP: Zusammenführung Mehrfachpost (bitte “bearbeiten” Funktion nutzen)
maxe
30. Oktober 2024 um 16:25
15
Du müsstest vermutlich den mode noch umstellen, sonst läuft die Automatisierung ja noch bis zum Ende durch
alias: Garagen licht3
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
- type: not_opened
device_id: d9c1dad109d7d5ab67c465e93b76f727
entity_id: 82adea67ebbc0b9032c018f66ee121cf
domain: binary_sensor
trigger: device
id: Tor zu
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.lichtschalter
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- repeat:
sequence:
- type: toggle
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- condition: state
state: "off"
entity_id: binary_sensor.magnet_input
- if:
- condition: trigger
id:
- Tor zu
then:
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
mode: queued
Hab ich jetzt einen gedanken Fehler ?
maxe
30. Oktober 2024 um 20:43
17
Ja, Warteschlange macht es ja nicht besser.
“Restart” wäre mal zu testen.
Geht auch leider auch nicht
maxe
30. Oktober 2024 um 20:56
19
Sehe gerade erst, dass für den ersten Trigger gar keine TriggerID vergeben wurde und auch bei den Aktionen nicht der Trigger als Wenn-Bedingung dient.
Am besten wäre es sogar mit Optionen zu arbeiten.
alias: Garagen Licht
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.magnet_input
to: "on"
from: "off"
id: "Tor offen "
- type: not_opened
device_id: d9c1dad109d7d5ab67c465e93b76f727
entity_id: 82adea67ebbc0b9032c018f66ee121cf
domain: binary_sensor
trigger: device
id: Tor zu
conditions: []
actions:
- if:
- condition: trigger
id:
- "Tor offen "
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.lichtschalter
- delay:
hours: 0
minutes: 2
seconds: 10
milliseconds: 0
- repeat:
sequence:
- action: switch.toggle
metadata: {}
data: {}
target:
entity_id: switch.lichtschalter
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
until:
- type: is_not_open
condition: device
device_id: d9c1dad109d7d5ab67c465e93b76f727
entity_id: 82adea67ebbc0b9032c018f66ee121cf
domain: binary_sensor
- if:
- condition: trigger
id:
- Tor zu
then:
- type: turn_off
device_id: 3135bb04455af74fea634cb2e3166e5d
entity_id: 58874317138a879cc17838f974003292
domain: switch
mode: restart
So Funktioniert es jetzt