homeassistant-config/automations.yaml

687 lines
16 KiB
YAML
Raw Permalink Normal View History

2019-11-30 17:14:40 +01:00
- id: '1575130335468'
2022-08-28 22:33:35 +02:00
alias: Fernbedienung Weihnachtslichter Oben
2019-11-30 17:14:40 +01:00
description: ''
trigger:
- event_data:
button_name: key_yellow
2019-12-21 21:36:31 +01:00
host: esszimmerradio
2019-11-30 17:14:40 +01:00
repeat_counter: 0
event_type: ir_command_received
platform: event
condition: []
action:
- data:
2019-12-21 21:36:31 +01:00
entity_id: switch.mobile_steckdose_schalter_2
2019-11-30 17:14:40 +01:00
service: switch.toggle
2022-08-28 22:33:35 +02:00
mode: single
2019-12-21 21:36:31 +01:00
- id: '1575202743482'
alias: Wecker Licht an
description: ''
trigger:
- platform: template
2024-05-03 20:50:49 +02:00
value_template: '{% set alarm_time = as_timestamp(states(''input_datetime.martin_wake_up_alarm''))
2019-12-21 21:36:31 +01:00
%}
{% set current_timestamp_minute = as_timestamp(strptime(states(''sensor.date_time''),
"%Y-%m-%d, %H:%M")) %}
{% set before_time_secs = 600 %}
2024-05-03 20:50:49 +02:00
{% set trigger = states(''input_datetime.martin_wake_up_alarm'') and (alarm_time
2019-12-21 21:36:31 +01:00
<= current_timestamp_minute + before_time_secs < alarm_time + 60) %}
{{ trigger }}'
condition: []
action:
- data:
2024-05-03 20:50:49 +02:00
brightness: 148
2019-12-21 21:36:31 +01:00
transition: 600
2024-05-03 20:50:49 +02:00
color_temp: 269
xy_color: {}
2019-12-21 21:36:31 +01:00
service: light.turn_on
2024-05-03 20:50:49 +02:00
target:
entity_id: light.arbeitszimmer_oben_fluter
2020-06-06 18:04:06 +02:00
- id: '1589377976830'
2022-08-28 22:33:35 +02:00
alias: Alarm Martin Handy
2020-06-06 18:04:06 +02:00
description: ''
trigger:
- entity_id: binary_sensor.gang_bewegungsmelder_schlafzimmer, binary_sensor.gang_bewegungsmelder_ost,
binary_sensor.gang_bewegungsmelder_mitte
from: 'off'
platform: state
to: 'on'
condition: []
action:
2024-05-03 20:50:49 +02:00
- service: notify.mobile_app_iphone_von_martin
data:
2020-06-06 18:04:06 +02:00
message: Bewegung im Gang
- data:
message: Bewegung im Gang
title: Alarm
2021-02-01 21:02:55 +01:00
service: notify.mobile_app_martins_ipad
2024-05-03 20:50:49 +02:00
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
2021-02-01 21:02:55 +01:00
mode: single
2020-10-04 22:57:16 +02:00
- id: '1598594894559'
2024-05-03 20:50:49 +02:00
alias: KlingelknopfGartensäuleAufMobileGeräte
description: Push Notification auf Martin Handy, Rebecca Handy und iPad
2020-10-04 22:57:16 +02:00
trigger:
2024-05-03 20:50:49 +02:00
- entity_id:
- binary_sensor.klingelknopfgartensaeule
2020-10-04 22:57:16 +02:00
from: 'off'
platform: state
to: 'on'
condition: []
action:
2024-05-03 20:50:49 +02:00
- 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
2020-10-04 22:57:16 +02:00
mode: single
2021-02-01 21:02:55 +01:00
- id: '1606655282153'
2022-08-28 22:33:35 +02:00
alias: Weihnachtslichter an morgens um 6
2021-02-01 21:02:55 +01:00
description: ''
trigger:
- platform: time
at: 06:00
condition: []
action:
- service: switch.turn_on
data: {}
entity_id:
- switch.tasmota02
2022-08-28 22:33:35 +02:00
- switch.tasmota04
- switch.tasmota05
2024-05-03 20:50:49 +02:00
- switch.tasmota06
2021-02-01 21:02:55 +01:00
mode: single
- id: '1607412098745'
2022-08-28 22:33:35 +02:00
alias: Weihnachtslichter aus morgens
2021-02-01 21:02:55 +01:00
description: ''
trigger:
- platform: sun
event: sunrise
offset: 00:15:00
condition: []
action:
- service: switch.turn_off
data: {}
entity_id:
- switch.tasmota02
2022-08-28 22:33:35 +02:00
- switch.tasmota04
- switch.tasmota05
2024-05-03 20:50:49 +02:00
- switch.tasmota06
2021-02-01 21:02:55 +01:00
mode: single
- id: '1607412144113'
2022-08-28 22:33:35 +02:00
alias: Weihnachtslichter An Abends
2021-02-01 21:02:55 +01:00
description: ''
trigger:
- platform: sun
event: sunset
condition: []
action:
- service: switch.turn_on
data: {}
entity_id:
- switch.tasmota02
2022-08-28 22:33:35 +02:00
- switch.tasmota04
- switch.tasmota05
2024-05-03 20:50:49 +02:00
- switch.tasmota06
2021-02-01 21:02:55 +01:00
mode: single
- id: '1607412210097'
2022-08-28 22:33:35 +02:00
alias: Weihnachtslichter Aus Abends
2021-02-01 21:02:55 +01:00
description: ''
trigger:
- platform: time
at: '22:30'
condition: []
action:
- service: switch.turn_off
data: {}
entity_id:
- switch.tasmota02
2022-08-28 22:33:35 +02:00
- switch.tasmota04
- switch.tasmota05
2024-05-03 20:50:49 +02:00
- switch.tasmota06
2021-02-01 21:02:55 +01:00
mode: single
- id: '1612028092169'
2022-08-28 22:33:35 +02:00
alias: Bewegungsmelder Schlafzimmer Nacht
2021-02-01 21:02:55 +01:00
description: ''
trigger:
- platform: state
entity_id: binary_sensor.arbeitszimmer_bewegungsmelder_bewegung
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: light.bett_rebecca
state: 'off'
- condition: state
entity_id: light.bett_martin
state: 'off'
- condition: state
entity_id: light.schlafzimmer_deckenlampe
state: 'off'
- condition: numeric_state
entity_id: cover.schlafzimmer_rollo_gross
attribute: current_position
below: '20'
action:
- service: light.turn_on
data:
xy_color:
- 0.502
- 0.414
brightness: 6
entity_id: light.bett_martin, light.bett_rebecca
- delay: '1'
2021-09-18 07:04:51 +02:00
- service: light.turn_off
2021-02-01 21:02:55 +01:00
data:
transition: 120
entity_id: light.bett_martin, light.bett_rebecca
mode: single
2022-08-28 22:33:35 +02:00
- id: '1632393568599'
alias: Herd vorgeheizt -> iPad
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.backofen_verbrauch
below: '20'
for:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
condition: []
action:
- service: notify.mobile_app_martins_ipad
data:
title: Herd vorgeheizt
message: herd ist heiss :)
mode: single
- id: '1633435293611'
alias: Gang Bogen Nachtlicht
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.gang_bewegungsmelder_schlafzimmer
- binary_sensor.gang_bewegungsmelder_wohnzimmer
from: 'off'
to: 'on'
condition:
- condition: template
value_template: '{{ state_attr(''sun.sun'', ''elevation'') < 5 }}'
action:
- service: light.turn_on
target:
entity_id: light.gang_bogen
data:
brightness_pct: 50
xy_color:
- 0.607
- 0.378
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: light.turn_off
target:
entity_id: light.gang_bogen
data:
transition: 5
mode: restart
- id: '1634461079797'
alias: 3D Drucker State Change
description: ''
trigger:
- platform: state
entity_id: binary_sensor.octoprint_printing
condition: []
action:
- service: notify.telegram_martin
data:
title: 3D Drucker
2024-05-03 20:50:49 +02:00
message: '3D Printer: {{ sensor.octoprint_current_state }}'
2022-08-28 22:33:35 +02:00
mode: single
- id: '1656971839915'
alias: Rollos zu nachts
description: ''
trigger:
- platform: time
2024-05-03 20:50:49 +02:00
at: 02:00:00
2022-08-28 22:33:35 +02:00
condition: []
action:
- service: cover.close_cover
data: {}
target:
entity_id:
- cover.schlafzimmer_rollo_klein
- cover.schlafzimmer_rollo_gross
mode: single
2023-01-03 20:42:39 +01:00
- id: '1669014477577'
alias: Weihnachtslichter oben 01 morgens an um 7
description: ''
trigger:
- platform: time
at: 07:00:00
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.tasmota06
mode: single
- id: '1669014568292'
alias: Weihnachtslichter oben 02 morgens aus um 9
description: ''
trigger:
- platform: time
at: 09:00:00
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.tasmota06
mode: single
- id: '1669014612655'
alias: Weihnachtslichter oben 03 abends an 16:30
description: ''
trigger:
- platform: time
at: '16:30:00'
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.tasmota06
mode: single
- id: '1669014682496'
alias: Weihnachtslichter oben 04 abends aus 22:00
description: ''
trigger:
- platform: time
at: '22:00:00'
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.tasmota06
mode: single
2024-05-03 20:50:49 +02:00
- 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