Latest version
This commit is contained in:
447
automations.yaml
447
automations.yaml
@@ -19,7 +19,7 @@
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: template
|
||||
value_template: '{% set alarm_time = as_timestamp(states(''sensor.martin_handy_alarm_sensor''))
|
||||
value_template: '{% set alarm_time = as_timestamp(states(''input_datetime.martin_wake_up_alarm''))
|
||||
%}
|
||||
|
||||
{% set current_timestamp_minute = as_timestamp(strptime(states(''sensor.date_time''),
|
||||
@@ -27,23 +27,20 @@
|
||||
|
||||
{% set before_time_secs = 600 %}
|
||||
|
||||
{% set trigger = states(''sensor.martin_handy_alarm_sensor'') and (alarm_time
|
||||
{% set trigger = states(''input_datetime.martin_wake_up_alarm'') and (alarm_time
|
||||
<= current_timestamp_minute + before_time_secs < alarm_time + 60) %}
|
||||
|
||||
{{ trigger }}'
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
brightness: 120
|
||||
entity_id:
|
||||
- light.bett_martin
|
||||
- light.bett_rebecca
|
||||
- light.schlafzimmer_schrank
|
||||
brightness: 148
|
||||
transition: 600
|
||||
xy_color:
|
||||
- 0.502
|
||||
- 0.414
|
||||
color_temp: 269
|
||||
xy_color: {}
|
||||
service: light.turn_on
|
||||
target:
|
||||
entity_id: light.arbeitszimmer_oben_fluter
|
||||
- id: '1589377976830'
|
||||
alias: Alarm Martin Handy
|
||||
description: ''
|
||||
@@ -55,34 +52,45 @@
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
- service: notify.mobile_app_iphone_von_martin
|
||||
data:
|
||||
message: Bewegung im Gang
|
||||
title: Alarm
|
||||
service: notify.telegram_martin
|
||||
- data:
|
||||
message: Bewegung im Gang
|
||||
title: Alarm
|
||||
service: notify.mobile_app_martins_ipad
|
||||
- delay: '30'
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 2
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
mode: single
|
||||
- id: '1598594894559'
|
||||
alias: Klingel Auf Handy
|
||||
description: ''
|
||||
alias: KlingelknopfGartensäuleAufMobileGeräte
|
||||
description: Push Notification auf Martin Handy, Rebecca Handy und iPad
|
||||
trigger:
|
||||
- entity_id: switch.klingel_aussentur
|
||||
- entity_id:
|
||||
- binary_sensor.klingelknopfgartensaeule
|
||||
from: 'off'
|
||||
platform: state
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
message: Es hat aussen geklingelt
|
||||
title: Klingel
|
||||
service: notify.telegram_martin
|
||||
- data:
|
||||
message: Es hat aussen geklingelt
|
||||
title: Klingel
|
||||
service: notify.ios_martins_ipad
|
||||
- service: notify.mobile_app_iphone_von_martin
|
||||
metadata: {}
|
||||
data:
|
||||
message: Jemand hat an der Briefkastensäule geklingelt
|
||||
title: "\U0001F514\U0001F4EA Klingel"
|
||||
- service: notify.mobile_app_rebeccahandysamsung
|
||||
metadata: {}
|
||||
data:
|
||||
message: Jemand hat an der Briefkastensäule geklingelt
|
||||
title: "\U0001F514\U0001F4EA Klingel"
|
||||
- service: notify.mobile_app_martins_ipad
|
||||
metadata: {}
|
||||
data:
|
||||
title: "\U0001F514\U0001F4EA Klingel"
|
||||
message: Jemand hat an der Briefkastensäule geklingelt
|
||||
mode: single
|
||||
- id: '1606655282153'
|
||||
alias: Weihnachtslichter an morgens um 6
|
||||
@@ -95,11 +103,10 @@
|
||||
- service: switch.turn_on
|
||||
data: {}
|
||||
entity_id:
|
||||
- switch.tasmota01
|
||||
- switch.tasmota02
|
||||
- switch.tasmota04
|
||||
- switch.tasmota05
|
||||
- switch.tasmota07
|
||||
- switch.tasmota06
|
||||
mode: single
|
||||
- id: '1607412098745'
|
||||
alias: Weihnachtslichter aus morgens
|
||||
@@ -113,11 +120,10 @@
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
entity_id:
|
||||
- switch.tasmota01
|
||||
- switch.tasmota02
|
||||
- switch.tasmota04
|
||||
- switch.tasmota05
|
||||
- switch.tasmota07
|
||||
- switch.tasmota06
|
||||
mode: single
|
||||
- id: '1607412144113'
|
||||
alias: Weihnachtslichter An Abends
|
||||
@@ -125,18 +131,15 @@
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
- platform: time
|
||||
at: '15:30:00'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
data: {}
|
||||
entity_id:
|
||||
- switch.tasmota01
|
||||
- switch.tasmota02
|
||||
- switch.tasmota04
|
||||
- switch.tasmota05
|
||||
- switch.tasmota07
|
||||
- switch.tasmota06
|
||||
mode: single
|
||||
- id: '1607412210097'
|
||||
alias: Weihnachtslichter Aus Abends
|
||||
@@ -149,11 +152,10 @@
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
entity_id:
|
||||
- switch.tasmota01
|
||||
- switch.tasmota02
|
||||
- switch.tasmota04
|
||||
- switch.tasmota05
|
||||
- switch.tasmota07
|
||||
- switch.tasmota06
|
||||
mode: single
|
||||
- id: '1612028092169'
|
||||
alias: Bewegungsmelder Schlafzimmer Nacht
|
||||
@@ -191,18 +193,6 @@
|
||||
transition: 120
|
||||
entity_id: light.bett_martin, light.bett_rebecca
|
||||
mode: single
|
||||
- id: '1626815190256'
|
||||
alias: Foen Timer
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: timer.finished
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.tasmota07
|
||||
mode: single
|
||||
- id: '1632393568599'
|
||||
alias: Herd vorgeheizt -> iPad
|
||||
description: ''
|
||||
@@ -266,14 +256,14 @@
|
||||
- service: notify.telegram_martin
|
||||
data:
|
||||
title: 3D Drucker
|
||||
message: 3D Drucker hat Zustand gewechselt
|
||||
message: '3D Printer: {{ sensor.octoprint_current_state }}'
|
||||
mode: single
|
||||
- id: '1656971839915'
|
||||
alias: Rollos zu nachts
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 04:00:00
|
||||
at: 02:00:00
|
||||
condition: []
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
@@ -335,3 +325,362 @@
|
||||
target:
|
||||
entity_id: switch.tasmota06
|
||||
mode: single
|
||||
- id: '1693231134539'
|
||||
alias: Pool Pumpe ein um 9 und 17 Uhr
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 09:00:00
|
||||
- platform: time
|
||||
at: '17:00:00'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.poolpumpe_speed1
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.poolpumpe_speed1
|
||||
mode: single
|
||||
- id: '1693231202553'
|
||||
alias: Pool Pumpe aus um 10:15 und 18:15
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '10:15:00'
|
||||
- platform: time
|
||||
at: '18:15:00'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.poolpumpe_speed_off
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 2
|
||||
milliseconds: 0
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.poolpumpe_speed_off
|
||||
mode: single
|
||||
- id: '1693845791544'
|
||||
alias: Sprinkler alle 2 stunden
|
||||
description: Sprinkler an für 3 minuten um 10,12,14,16,18,20 Uhr
|
||||
trigger:
|
||||
- platform: time
|
||||
at:
|
||||
- '10:00:00'
|
||||
- '11:00:00'
|
||||
- '12:00:00'
|
||||
- '13:00:00'
|
||||
- '14:00:00'
|
||||
- '15:00:00'
|
||||
- '16:00:00'
|
||||
- '18:00:00'
|
||||
- '20:00:00'
|
||||
condition: []
|
||||
action:
|
||||
- service: script.sprinkler_an_5_minuten
|
||||
data:
|
||||
minutes: 3
|
||||
mode: single
|
||||
- id: '1693849132880'
|
||||
alias: Eingangslichter Beet an wenn Haustur licht an
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- light.haustur_licht
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
transition: 2
|
||||
rgb_color:
|
||||
- 238
|
||||
- 226
|
||||
- 140
|
||||
brightness: 255
|
||||
target:
|
||||
entity_id: light.lichter_garten_eingang
|
||||
mode: single
|
||||
- id: '1693849216417'
|
||||
alias: Eingangslichter Beet aus wenn Haustur licht aus
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- light.haustur_licht
|
||||
to: 'off'
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
transition: 2
|
||||
target:
|
||||
entity_id: light.lichter_garten_eingang
|
||||
mode: single
|
||||
- id: '1696860113114'
|
||||
alias: BewegungsmelderGartenhausNachts
|
||||
description: Gartenhaus Bewegungsmelder Nachts
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.gartenhaus_led_controller_motion_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
before: sunrise
|
||||
after_offset: -01:00:00
|
||||
action:
|
||||
- alias: Turn on the light
|
||||
service: light.turn_on
|
||||
data:
|
||||
transition: 1
|
||||
rgbw_color: 0,0,0,255
|
||||
target:
|
||||
entity_id:
|
||||
- light.gartenhaus_deckenlicht_mitte
|
||||
- light.gartenhaus_deckenlicht_hinten
|
||||
- light.gartenhaus_deckenlicht_vorne
|
||||
- alias: Wait until not motion from device
|
||||
wait_for_trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.gartenhaus_led_controller_motion_sensor
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
- alias: Wait the number of seconds for no movement
|
||||
delay: 00:00:30
|
||||
- alias: Turn off light
|
||||
service: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.gartenhaus_deckenlicht_mitte
|
||||
- light.gartenhaus_deckenlicht_hinten
|
||||
- light.gartenhaus_deckenlicht_vorne
|
||||
data: {}
|
||||
max_exceeded: silent
|
||||
mode: restart
|
||||
- id: '1696863567904'
|
||||
alias: AutoOff Sprinkler Süd nach 30min
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_off.yaml
|
||||
input:
|
||||
the_device: switch.ventil_sprinkler_sud
|
||||
duration_until_off:
|
||||
hours: 0
|
||||
minutes: 30
|
||||
seconds: 0
|
||||
- id: '1696863598654'
|
||||
alias: AutoOff Sprinkler West nach 30min
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_off.yaml
|
||||
input:
|
||||
the_device: switch.ventil_sprinkler_westen
|
||||
duration_until_off:
|
||||
hours: 0
|
||||
minutes: 30
|
||||
seconds: 0
|
||||
- id: '1696863768386'
|
||||
alias: AutoOff Gartenhaus Deckenlichter
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_off.yaml
|
||||
input:
|
||||
the_device: light.gartenhaus_deckenlichter
|
||||
duration_until_off:
|
||||
hours: 0
|
||||
minutes: 15
|
||||
seconds: 0
|
||||
- id: '1696863812155'
|
||||
alias: AutoOff Ventil Brunnen in Zisterne nach 2h
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_off.yaml
|
||||
input:
|
||||
the_device: switch.ventil_brunnen_in_zisterne
|
||||
duration_until_off:
|
||||
hours: 2
|
||||
minutes: 0
|
||||
seconds: 0
|
||||
- id: '1696864608504'
|
||||
alias: Zisterne Ventil aus wenn voll
|
||||
description: Ventil Brunnen->Zisterne aus wenn Zisterne über 90% voll
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.zisterne_fullstand
|
||||
above: 90
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.ventil_brunnen_in_zisterne
|
||||
mode: single
|
||||
- id: '1705325828652'
|
||||
alias: NFC Tag Schreibtisch Oben Rechts ist gescannt
|
||||
description: Licht oben an aus
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: martin_iphone_nfc_schreibtisch_oben_rechts
|
||||
condition: []
|
||||
action:
|
||||
- service: light.toggle
|
||||
metadata: {}
|
||||
data:
|
||||
color_temp: 360
|
||||
brightness: 184
|
||||
transition: 0
|
||||
target:
|
||||
entity_id:
|
||||
- light.arbeitszimmer_oben_fluter_hinten
|
||||
- light.arbeitszimmer_oben_fluter_vorne
|
||||
mode: single
|
||||
- id: '1706512617470'
|
||||
alias: Büro Oben Steckdosen aus um 22:00
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '22:00:00'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.buro_oben_steckdosen
|
||||
mode: single
|
||||
- id: '1706512682295'
|
||||
alias: Büro Oben Steckosen ein um 7:45
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 07:45:00
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.buro_oben_steckdosen
|
||||
mode: single
|
||||
- id: '1709736390783'
|
||||
alias: KlingelnAussenBeiKlingelknopf
|
||||
description: aktiviert klingel wenn klingelknopf gedrueckt
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.klingelknopfgartensaeule
|
||||
- binary_sensor.klingelknopfhaustuerunten
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.klingel_aussentur
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 1
|
||||
milliseconds: 0
|
||||
- service: switch.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.klingel_aussentur
|
||||
mode: single
|
||||
- id: '1709736543280'
|
||||
alias: KlingelInnenBeiKlingelknopf
|
||||
description: klingelt wenn auf knopf bei innentuer gedrueckt wurde
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.klingelknopfinnentuer
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.klingel_innentur
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 1
|
||||
milliseconds: 0
|
||||
- service: switch.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.klingel_innentur
|
||||
mode: single
|
||||
- id: '1709737843307'
|
||||
alias: KlingelknopfHaustuerUntenAufMobileGeräte
|
||||
description: Push Notification auf Martin Handy, Rebecca Handy und iPad
|
||||
trigger:
|
||||
- entity_id:
|
||||
- binary_sensor.klingelknopfhaustuerunten
|
||||
from: 'off'
|
||||
platform: state
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_von_martin
|
||||
metadata: {}
|
||||
data:
|
||||
message: Jemand hat an der Haustür unten geklingelt
|
||||
title: "\U0001F514 \U0001F6AA Klingel"
|
||||
- service: notify.mobile_app_rebeccahandysamsung
|
||||
metadata: {}
|
||||
data:
|
||||
message: Jemand hat an der Haustür unten geklingelt
|
||||
title: "\U0001F514 \U0001F6AA Klingel"
|
||||
- service: notify.mobile_app_martins_ipad
|
||||
metadata: {}
|
||||
data:
|
||||
title: "\U0001F514 \U0001F6AA Klingel"
|
||||
message: Jemand hat an der Haustür unten geklingelt
|
||||
mode: single
|
||||
- id: '1709738037256'
|
||||
alias: KlingelknopfInnentürAufMobileGeräte
|
||||
description: Push Notification auf Martin Handy und iPad
|
||||
trigger:
|
||||
- entity_id:
|
||||
- binary_sensor.klingelknopfinnentuer
|
||||
from: 'off'
|
||||
platform: state
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_von_martin
|
||||
metadata: {}
|
||||
data:
|
||||
message: Jemand hat an der Innentür geklingelt
|
||||
title: "\U0001F56D Klingel Innen"
|
||||
- service: notify.mobile_app_martins_ipad
|
||||
metadata: {}
|
||||
data:
|
||||
title: "\U0001F56D Klingel Innen"
|
||||
message: Jemand hat an der Innentür geklingelt
|
||||
mode: single
|
||||
|
||||
Reference in New Issue
Block a user