remove keypress events
This commit is contained in:
563
automations.yaml
Executable file
563
automations.yaml
Executable file
@@ -0,0 +1,563 @@
|
||||
- id: MultisensorBatteryLowNotification
|
||||
alias: MultisensorBatteryLowNotification
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.batt_multisensor
|
||||
below: '40'
|
||||
action:
|
||||
- service: notify.pushover
|
||||
data:
|
||||
message: Time to change batteries of MultiSensor
|
||||
title: ''
|
||||
initial_state: true
|
||||
mode: single
|
||||
- id: NonPresenceIroningSwitchOff
|
||||
alias: NonPresenceIroningSwitchOff
|
||||
trigger:
|
||||
- entity_id: group.all_mobile_devices
|
||||
from: home
|
||||
platform: state
|
||||
to: not_home
|
||||
action:
|
||||
- data:
|
||||
entity_id: switch.ieq0378957
|
||||
service: switch.turn_off
|
||||
initial_state: true
|
||||
- id: ZwaveTemperatureToHomematicTimed
|
||||
alias: ZwaveTemperatureToHomematicTimed
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: /5
|
||||
action:
|
||||
- service: homematic.set_variable_value
|
||||
data_template:
|
||||
entity_id: homematic.ccu2
|
||||
name: AussenTemp
|
||||
value: '{{states.sensor.neomulti4in1_temperature.state}}'
|
||||
initial_state: true
|
||||
- id: ZwaveHumidityToHomematicTimed
|
||||
alias: ZwaveHumidityToHomematicTimed
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: /5
|
||||
action:
|
||||
- service: homematic.set_variable_value
|
||||
data_template:
|
||||
entity_id: homematic.ccu2
|
||||
name: ZWHumidity
|
||||
value: '{{states.sensor.neomulti4in1_humidity.state}}'
|
||||
initial_state: true
|
||||
- id: standlamp_on
|
||||
alias: Stehlampe ein
|
||||
trigger:
|
||||
- event: sunset
|
||||
offset: -00:20:00
|
||||
platform: sun
|
||||
action:
|
||||
- data:
|
||||
brightness_pct: 10
|
||||
entity_id: light.wzstehlampe
|
||||
transition: 5
|
||||
entity_id:
|
||||
- light.stehlampe
|
||||
- light.klampekuehlschrank
|
||||
- light.zylinder_wohnzimmer
|
||||
service: light.turn_on
|
||||
mode: single
|
||||
- id: standlamp_off
|
||||
alias: Stehlampe aus
|
||||
trigger:
|
||||
platform: time
|
||||
at: '23:43:11'
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id:
|
||||
- light.stehlampe
|
||||
- light.lampe_kuche
|
||||
data:
|
||||
transition: 5
|
||||
- id: HallwayLightSwitchOnSunsetBased
|
||||
alias: HallwayLightSwitchOnSunsetBased
|
||||
trigger:
|
||||
- event: sunset
|
||||
offset: 00:15:00
|
||||
platform: sun
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.baby_bed
|
||||
state: 'off'
|
||||
action:
|
||||
- device_id: e872770fe15a488c9f5a5604b1ada0eb
|
||||
domain: light
|
||||
entity_id: light.bodenlampe
|
||||
type: turn_on
|
||||
mode: single
|
||||
- id: HallwayLightSwitchOffEvening
|
||||
alias: HallwayLightSwitchOffEvening
|
||||
trigger:
|
||||
- at: '23:49:11'
|
||||
platform: time
|
||||
action:
|
||||
- device_id: e872770fe15a488c9f5a5604b1ada0eb
|
||||
domain: light
|
||||
entity_id: light.bodenlampe
|
||||
type: turn_off
|
||||
- id: HarmonyLivingroomSetInputselectToExternalStateChangeTimed
|
||||
alias: HarmonyLivingroomSetInputselectToExternalStateChangeTimed
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: /2
|
||||
action:
|
||||
service: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.living_room_tv
|
||||
option: '{{ states.remote.harmony_hub_wohnzimmer.attributes.current_activity
|
||||
}}'
|
||||
- id: HarmonyLivingroomSetInputselectToExternalStateChanged
|
||||
alias: HarmonyLivingroomSetInputselectToExternalStateChanged
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: remote.harmony_hub_wohnzimmer
|
||||
action:
|
||||
service: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.living_room_tv
|
||||
option: '{{ states.remote.harmony_hub_wohnzimmer.attributes.current_activity
|
||||
}}'
|
||||
- id: HarmonyLivingroomSetCurrentActivityToChangedInputselect
|
||||
alias: HarmonyLivingroomSetCurrentActivityToChangedInputselect
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.living_room_tv
|
||||
action:
|
||||
service: script.turn_on
|
||||
entity_id: script.input_select_harmony_living_room
|
||||
- id: HarmonyBedroomSetInputselectToExternalStateChanged
|
||||
alias: HarmonyBedroomSetInputselectToExternalStateChanged
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: remote.harmony_hub_schlafzimmer
|
||||
action:
|
||||
service: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.bed_room_tv
|
||||
option: '{{ states.remote.harmony_hub_schlafzimmer.attributes.current_activity
|
||||
}}'
|
||||
- id: HarmonyBedroomSetInputselectToExternalStateChangeTimed
|
||||
alias: HarmonyBedroomSetInputselectToExternalStateChangeTimed
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: /2
|
||||
action:
|
||||
service: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.bed_room_tv
|
||||
option: '{{ states.remote.harmony_hub_schlafzimmer.attributes.current_activity
|
||||
}}'
|
||||
- id: HarmonyBedroomSetCurrentActivityToChangedInputselect
|
||||
alias: HarmonyBedroomSetCurrentActivityToChangedInputselect
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.bed_room_tv
|
||||
action:
|
||||
service: script.turn_on
|
||||
entity_id: script.input_select_harmony_bed_room
|
||||
- id: OpenWindowEveningNotification
|
||||
alias: OpenWindowEveningNotification
|
||||
trigger:
|
||||
platform: time
|
||||
at: '23:00:00'
|
||||
action:
|
||||
service: notify.pushover
|
||||
data_template:
|
||||
title: Offene Fenster
|
||||
message: '{% for device in dict(states.sensor|groupby(''state''))[''open'']
|
||||
-%} {{ device.name|replace("Fenster ","") }} {%- endfor -%} {% for device
|
||||
in dict(states.sensor|groupby(''state''))[''tilted''] -%} {{ device.name }}
|
||||
{%- endfor -%} {%- if dict(states.binary_sensor|groupby(''state''))[''on'']|length
|
||||
> 0 and dict(states.sensor|groupby(''state''))[''open'']|length>0 -%}, {%-
|
||||
endif %} {%- for device in dict(states.binary_sensor|groupby(''state''))[''on'']
|
||||
-%} {% if device.name and device.name.startswith(''Fenster'') or device.name.startswith(''Haus'')
|
||||
%} {{ device.name|replace("Fenster ","") }} {%- endif -%} {%- endfor -%}'
|
||||
- alias: Notify about phone state
|
||||
id: cac63d2f26884b86ae2ec785e249e8c2
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.phone
|
||||
action:
|
||||
- service: notify.pushover
|
||||
data:
|
||||
title: Phone
|
||||
message: '{% if is_state("sensor.phone", "ringing") %} Eingehender Anruf von
|
||||
{{ states.sensor.phone.attributes.from_name }} ({{ states.sensor.phone.attributes.from
|
||||
}}) {% endif %}'
|
||||
- id: kitchen_light_off_at_brightness
|
||||
alias: Küche aus bei Helligkeit
|
||||
trigger:
|
||||
- above: '800'
|
||||
entity_id: sensor.aeon_labs_zw074_multisensor_gen5_luminance
|
||||
platform: numeric_state
|
||||
condition: []
|
||||
action:
|
||||
- device_id: 528e131b5e274f58bb37a9d102283acb
|
||||
domain: light
|
||||
entity_id: light.klampekuehlschrank
|
||||
type: turn_off
|
||||
- id: update_notification
|
||||
alias: Update Available Notifications
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: updater.updater
|
||||
action:
|
||||
service: notify.pushover
|
||||
data:
|
||||
title: Home Assistant Update
|
||||
message: Watch out! Update for Home Assistant is available.
|
||||
- id: '1549313817016'
|
||||
alias: TVBedroomSwitchOffPresenceBased
|
||||
trigger:
|
||||
- at: '9:00:00'
|
||||
platform: time
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: group.all_mobile_devices
|
||||
state: not_home
|
||||
action:
|
||||
- data:
|
||||
entity_id: switch.smartplug2
|
||||
service: switch.turn_off
|
||||
- id: '1549314090330'
|
||||
alias: TVBedroomSwitchOnTimeBased
|
||||
trigger:
|
||||
- at: '20:30:00'
|
||||
platform: time
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: device_tracker.xperia_carmen
|
||||
state: home
|
||||
- condition: state
|
||||
entity_id: device_tracker.mia2basti
|
||||
state: home
|
||||
action:
|
||||
- data:
|
||||
entity_id: switch.smartplug2
|
||||
service: switch.turn_on
|
||||
- id: '1550446484812'
|
||||
alias: Küche Morgens
|
||||
trigger:
|
||||
- hours: '5'
|
||||
minutes: '00'
|
||||
platform: time_pattern
|
||||
condition: []
|
||||
action:
|
||||
- device_id: 528e131b5e274f58bb37a9d102283acb
|
||||
domain: light
|
||||
entity_id: light.klampekuehlschrank
|
||||
type: turn_on
|
||||
- id: '1566136553211'
|
||||
alias: sonos_nachtmodus
|
||||
trigger:
|
||||
- at: '23:00'
|
||||
platform: time
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
volume_level: 0.05
|
||||
service: media_player.volume_set
|
||||
target:
|
||||
entity_id: media_player.kuche
|
||||
- id: '1566136633830'
|
||||
alias: sonos_tagmodus
|
||||
trigger:
|
||||
- at: '6:15'
|
||||
platform: time
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
volume_level: 0.07
|
||||
service: media_player.volume_set
|
||||
target:
|
||||
entity_id: media_player.kuche
|
||||
- id: '1576823443552'
|
||||
alias: Rollo hoch Licht
|
||||
description: ''
|
||||
trigger:
|
||||
- above: '800'
|
||||
entity_id: sensor.aeon_labs_zw074_multisensor_gen5_luminance
|
||||
platform: numeric_state
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
entity_id: group.all_covers
|
||||
service: cover.open_cover
|
||||
- id: '1576823503380'
|
||||
alias: Rollo runter Sonnenuntergang
|
||||
description: ''
|
||||
trigger:
|
||||
- event: sunset
|
||||
offset: +0:05
|
||||
platform: sun
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.baby_bed
|
||||
state: 'off'
|
||||
action:
|
||||
- data:
|
||||
position: 20
|
||||
service: cover.set_cover_position
|
||||
target:
|
||||
entity_id:
|
||||
- cover.bedroom_cover_l
|
||||
- cover.bedroom_cover_r
|
||||
- cover.00115a498e0439
|
||||
mode: single
|
||||
- id: '1577661091935'
|
||||
alias: Weihnachtsbeleuchtung Ein
|
||||
description: ''
|
||||
trigger:
|
||||
- event: sunset
|
||||
offset: -00:15:00
|
||||
platform: sun
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
entity_id: switch.smartplug3
|
||||
service: switch.turn_on
|
||||
- type: turn_on
|
||||
device_id: 1ca29332bdbb4af2afe3246cb0c8cef0
|
||||
entity_id: switch.smartplug1
|
||||
domain: switch
|
||||
- type: turn_on
|
||||
device_id: 8f967677acd571da0cc2f4762e5ea84b
|
||||
entity_id: switch.smartplug6
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1577661201952'
|
||||
alias: Weihnachtsbeleuchtung Aus
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '23:27'
|
||||
condition: []
|
||||
action:
|
||||
- data:
|
||||
entity_id: switch.smartplug3
|
||||
service: switch.turn_off
|
||||
- type: turn_off
|
||||
device_id: 1ca29332bdbb4af2afe3246cb0c8cef0
|
||||
entity_id: switch.smartplug1
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1579939003577'
|
||||
alias: Rollos hoch Sonnenaufgang
|
||||
description: ''
|
||||
trigger:
|
||||
- event: sunrise
|
||||
platform: sun
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'Off'
|
||||
action:
|
||||
- data:
|
||||
entity_id: group.all_covers
|
||||
service: cover.open_cover
|
||||
mode: single
|
||||
- id: '1582149264429'
|
||||
alias: Alle Lichter aus bei Verlassen morgens
|
||||
description: ''
|
||||
trigger:
|
||||
- entity_id: group.all_mobile_devices
|
||||
from: home
|
||||
platform: state
|
||||
to: not_home
|
||||
- at: '8:45'
|
||||
platform: time
|
||||
condition:
|
||||
- condition: time
|
||||
before: '9:00'
|
||||
action:
|
||||
- device_id: e872770fe15a488c9f5a5604b1ada0eb
|
||||
domain: light
|
||||
entity_id: light.bodenlampe
|
||||
type: turn_off
|
||||
- device_id: 528e131b5e274f58bb37a9d102283acb
|
||||
domain: light
|
||||
entity_id: light.klampekuehlschrank
|
||||
type: turn_off
|
||||
mode: single
|
||||
- id: '1590530631139'
|
||||
alias: DiskstationStartFuerBackup
|
||||
description: Diskstation für Backup starten
|
||||
trigger:
|
||||
- at: '19:55'
|
||||
platform: time
|
||||
condition:
|
||||
- condition: time
|
||||
weekday: wed
|
||||
action:
|
||||
- data: {}
|
||||
entity_id: switch.diskstation
|
||||
service: switch.turn_on
|
||||
mode: single
|
||||
- id: '1606779292835'
|
||||
alias: TrinkbrunnenPatternEin
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
hours: /2
|
||||
minutes: '2'
|
||||
seconds: '0'
|
||||
condition:
|
||||
- condition: time
|
||||
after: '5:30'
|
||||
before: '23:00'
|
||||
action:
|
||||
- type: turn_on
|
||||
device_id: 23fa59564a94277011906429fd0feb2e
|
||||
entity_id: switch.smartplug5
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1606779292855'
|
||||
alias: TrinkbrunnenPatternAus
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
hours: /2
|
||||
seconds: '0'
|
||||
minutes: '44'
|
||||
condition:
|
||||
- condition: time
|
||||
after: '5:30'
|
||||
before: '23:00'
|
||||
action:
|
||||
- type: turn_off
|
||||
device_id: 23fa59564a94277011906429fd0feb2e
|
||||
entity_id: switch.smartplug5
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1607164189976'
|
||||
alias: DNS Check
|
||||
description: Alle 5 Minuten checken, ob DNS und Fritz IP übereinstimmen (Voraussetzung
|
||||
für Alexa-Erreichbarkeit
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
hours: '*'
|
||||
minutes: /5
|
||||
seconds: '0'
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ states(''sensor.fritz_box_6490_cable_lgi_external_ip.state'')
|
||||
!= states(''bb2k34f24w8jtpg2_homeee_schnorbus_net.state'') }}'
|
||||
action:
|
||||
- service: notify.pushover
|
||||
data:
|
||||
message: IP stimmt nicht mehr -> DNS updaten
|
||||
title: DNS Check
|
||||
mode: single
|
||||
- id: '1614029930763'
|
||||
alias: test
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
seconds: /30
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: notify.pushover
|
||||
data:
|
||||
message: blub
|
||||
mode: single
|
||||
- id: '1619867143833'
|
||||
alias: VDR bei TV-Aktivierung einschalten wenn aus
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_select.living_room_tv
|
||||
to: Fernsehen
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: switch.vdr
|
||||
state: 'off'
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.vdr
|
||||
mode: single
|
||||
- id: '1627487138001'
|
||||
alias: NFC Tag BastiSchlafzimmer ist gescannt
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: tag
|
||||
tag_id: 93480283-b090-4d2d-9d74-92aedc5f796b
|
||||
- platform: tag
|
||||
tag_id: f8a8e7d1-4b41-4db2-b358-5028c7084d15
|
||||
condition: []
|
||||
action:
|
||||
- service: notify.mobile_app_pixel4a
|
||||
data:
|
||||
message: fsafsadf
|
||||
- scene: scene.schlafenszeit
|
||||
mode: single
|
||||
- id: '1627567078221'
|
||||
alias: NFC Tag SchreibtischStudio ist gescannt
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: tag
|
||||
tag_id: ef867548-5345-4ea9-a54e-3d8a447bab51
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.tp_link_smart_plug_b251
|
||||
mode: single
|
||||
- id: '1633454005094'
|
||||
alias: Reset Baby im Bett
|
||||
description: Baby im Bett morgens resetten
|
||||
trigger:
|
||||
- platform: time
|
||||
at: 06:00
|
||||
condition: []
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.baby_bed
|
||||
mode: single
|
||||
- id: '1647203893473'
|
||||
alias: Reset Scene Script Schalter
|
||||
description: ''
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.run_script_fernsehschauen
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: switch.run_script_streamingstarten
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: switch.run_script_musikstreamingstarten
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: switch.run_script_radiostarten
|
||||
to: 'on'
|
||||
condition: []
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- switch.run_script_fernsehschauen
|
||||
- switch.run_script_streamingstarten
|
||||
- switch.run_script_musikstreamingstarten
|
||||
- switch.run_script_radiostarten
|
||||
mode: single
|
||||
Reference in New Issue
Block a user