Move subconfigs to subdir
Tá an tiomantas seo le fáil i:
46
config/automations/alarm.yaml
Comhad gnáth
46
config/automations/alarm.yaml
Comhad gnáth
@@ -0,0 +1,46 @@
|
||||
- alias: alarm disarm
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.home_alarm
|
||||
to: 'disarmed'
|
||||
action:
|
||||
- service: notify.telegram_fb
|
||||
data_template:
|
||||
title: "*Alarm DEAKTIVIERT!*"
|
||||
message: "Der Alarm wurde *deaktiviert*."
|
||||
- service: script.shinobi_active
|
||||
|
||||
- alias: alarm pending
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.home_alarm
|
||||
to: 'pending'
|
||||
action:
|
||||
- service: notify.telegram_fb
|
||||
data_template:
|
||||
title: "*Alarm wird aktiviert...*"
|
||||
message: "Der Alarm wird in kürze scharf geschaltet!"
|
||||
|
||||
- alias: alarm away
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.home_alarm
|
||||
to: 'armed_away'
|
||||
action:
|
||||
- service: notify.telegram_fb
|
||||
data_template:
|
||||
title: "*Alarm SCHARF!*"
|
||||
message: "Der Alarm ist im *Unterwegs*-Modus."
|
||||
- service: script.shinobi_active_with_motion
|
||||
|
||||
- alias: alarm night
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.home_alarm
|
||||
to: 'armed_night'
|
||||
action:
|
||||
- service: notify.telegram_fb
|
||||
data_template:
|
||||
title: "*Alarm SCHARF!*"
|
||||
message: "Der Alarm ist im *Nacht*-Modus."
|
||||
- service: script.shinobi_active_with_motion
|
||||
11
config/automations/hassio.yaml
Comhad gnáth
11
config/automations/hassio.yaml
Comhad gnáth
@@ -0,0 +1,11 @@
|
||||
- alias: Update notifications
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: updater.updater
|
||||
action:
|
||||
service: notify.telegram_fb
|
||||
data_template:
|
||||
title: Neuer Home Assistant Release
|
||||
message: |
|
||||
Home Assistant {{ states.updater.updater.state }} ist nun verfügbar.
|
||||
Changelog: https://github.com/home-assistant/home-assistant/releases
|
||||
31
config/automations/humidity.yaml
Comhad gnáth
31
config/automations/humidity.yaml
Comhad gnáth
@@ -0,0 +1,31 @@
|
||||
- alias: Dachboden Luftfeuchtigkeit
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{% if (states.sensor.attic_humidity.state|float) > 64 or (states.sensor.attic_humidity.state|float) < 35 %}true{% endif %}"
|
||||
action:
|
||||
service: notify.android
|
||||
data:
|
||||
title: 'Bitte den *Dachboden* lüften!'
|
||||
message: 'Die Luftfeuchtigkeit liegt mit einem Wert von *{{ states.sensor.attic_humidity.state }}%* außerhalb des Grenzbereichs.'
|
||||
|
||||
#- alias: Badezimmer Luftfeuchtigkeit
|
||||
# trigger:
|
||||
# platform: numeric_state
|
||||
# entity_id: sensor.bathroom_hygrometer_humidity
|
||||
# value_template: '{{ state|float }}'
|
||||
# below: 35
|
||||
# above: 65
|
||||
# action:
|
||||
# service: notify.telegram_group
|
||||
# data:
|
||||
# title: 'Bitte das Badezimmer lüften!'
|
||||
# message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.'
|
||||
- alias: Badezimmer Luftfeuchtigkeit
|
||||
trigger:
|
||||
platform: template
|
||||
value_template: "{% if states.sensor.bathroom_hygrometer_humidity and ((states.sensor.bathroom_hygrometer_humidity.state|float) > 55 or (states.sensor.bathroom_hygrometer_humidity.state|float) < 35) %}true{% endif %}"
|
||||
action:
|
||||
service: notify.telegram_group
|
||||
data:
|
||||
title: 'Bitte das *Badezimmer* lüften!'
|
||||
message: 'Die Luftfeuchtigkeit liegt mit einem Wert von *{{ states.sensor.bathroom_hygrometer_humidity.state }}%* außerhalb des Grenzbereichs.'
|
||||
44
config/automations/livingroom.yaml
Comhad gnáth
44
config/automations/livingroom.yaml
Comhad gnáth
@@ -0,0 +1,44 @@
|
||||
- alias: Ambilight HDMI
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
||||
to: 'on'
|
||||
action:
|
||||
service: light.turn_on
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
effect: HDMI
|
||||
|
||||
- alias: Musik an
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: switch.harmony_music_bt
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.livingroom_music_scenario_on
|
||||
|
||||
- alias: Musik aus
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: switch.harmony_music_bt
|
||||
to: 'off'
|
||||
action:
|
||||
- service: script.livingroom_music_scenario_off
|
||||
|
||||
- alias: Ambilight aus
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
||||
to: 'off'
|
||||
action:
|
||||
service: light.turn_off
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
|
||||
- alias: Ambilight aus wird zu an und schwarz
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: light.ambilight
|
||||
to: 'off'
|
||||
action:
|
||||
- service: script.ambilight_off
|
||||
65
config/automations/roku.yaml
Comhad gnáth
65
config/automations/roku.yaml
Comhad gnáth
@@ -0,0 +1,65 @@
|
||||
- alias: Roku Ambilight HDMI
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: roku_command
|
||||
event_data:
|
||||
source_name: Home Assistant
|
||||
type: keypress
|
||||
key: Fwd
|
||||
action:
|
||||
service: light.turn_on
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
effect: "HDMI"
|
||||
- alias: Roku Ambilight Effect Rainbow
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: roku_command
|
||||
event_data:
|
||||
source_name: Home Assistant
|
||||
type: keypress
|
||||
key: Play
|
||||
action:
|
||||
service: light.turn_on
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
effect: "Rainbow swirl"
|
||||
- alias: Roku Ambilight Light
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: roku_command
|
||||
event_data:
|
||||
source_name: Home Assistant
|
||||
type: keypress
|
||||
key: Rev
|
||||
action:
|
||||
service: light.turn_on
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
rgb_color: [255,63,0]
|
||||
brightness: 255
|
||||
- alias: Roku Ambilight Toggle
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: roku_command
|
||||
event_data:
|
||||
source_name: Home Assistant
|
||||
type: keypress
|
||||
key: Left
|
||||
action:
|
||||
service: light.toggle
|
||||
data:
|
||||
entity_id: light.ambilight
|
||||
|
||||
- alias: Roku Mood Light Toggle
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: roku_command
|
||||
event_data:
|
||||
source_name: Home Assistant
|
||||
type: keypress
|
||||
key: Right
|
||||
action:
|
||||
service: light.toggle
|
||||
data:
|
||||
entity_id: light.stimmungslicht
|
||||
28
config/automations/theme-switch.yaml
Comhad gnáth
28
config/automations/theme-switch.yaml
Comhad gnáth
@@ -0,0 +1,28 @@
|
||||
# You can replace default by Light - Green, for example
|
||||
- alias: 'Set theme at startup'
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service: frontend.set_theme
|
||||
data:
|
||||
name: default
|
||||
- alias: 'Set HA theme for day and night'
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
to: above_horizon
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
to: below_horizon
|
||||
action:
|
||||
- service_template: frontend.set_theme
|
||||
data_template:
|
||||
name: >
|
||||
{% if states.sun.sun.state == "above_horizon" %}
|
||||
default
|
||||
{% else %}
|
||||
default
|
||||
{% endif %}
|
||||
25
config/automations/wallboard.yaml
Comhad gnáth
25
config/automations/wallboard.yaml
Comhad gnáth
@@ -0,0 +1,25 @@
|
||||
- alias: Wallboard On
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.anyone_home
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: sensor.harmony_activity
|
||||
from: 'Fire TV sehen'
|
||||
action:
|
||||
service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.wallboard_display
|
||||
|
||||
- alias: Wallboard Off
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.anyone_home
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: sensor.harmony_activity
|
||||
to: 'Fire TV sehen'
|
||||
action:
|
||||
service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.wallboard_display
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir