Diverse opdateringer: automations (doerklokke, kommerhjem, vinduer, lys_stue, julelys, infrastructure_alerts), scripts (doorbell, home_actions), templates, dashboards, configuration, binary_sensors/infrastructure ny fil
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - doublepress
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - doublepress
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - triple-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - triple-press
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - long-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på bagdøren - long-press
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- sequence:
|
||||
@@ -121,7 +121,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
data:
|
||||
title: "Home Assistant: MQTT broker nede"
|
||||
message: "MQTT-brokeren svarer ikke efter opstart. Tjek Synology-containere."
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
title: "Home Assistant: MQTT broker nede"
|
||||
message: "MQTT-brokeren svarer ikke efter opstart. Tjek Synology-containere."
|
||||
@@ -45,9 +45,63 @@
|
||||
data:
|
||||
title: "Home Assistant: MQTT broker nede"
|
||||
message: "MQTT-brokeren har været nede i mindst 2 minutter. Tjek Synology-containere."
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
title: "Home Assistant: MQTT broker nede"
|
||||
message: "MQTT-brokeren har været nede i mindst 2 minutter. Tjek Synology-containere."
|
||||
|
||||
mode: single
|
||||
|
||||
- alias: Infrastruktur - Zigbee USB mangler efter opstart
|
||||
id: infrastructure_zigbee_usb_missing_after_start
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
action:
|
||||
- delay: "00:03:00"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.zigbee_usb_ttyusb0
|
||||
state: "off"
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
title: "Zigbee USB er nede"
|
||||
message: >-
|
||||
Zigbee USB-donglen (ttyUSB0) er ikke tilgaengelig efter Home Assistant-opstart.
|
||||
Zigbee-enheder kan derfor vaere utilgaengelige.
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "Home Assistant: Zigbee USB nede"
|
||||
message: "Zigbee USB-donglen (ttyUSB0) mangler efter opstart. Tjek Synology USB-setup."
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
title: "Home Assistant: Zigbee USB nede"
|
||||
message: "Zigbee USB-donglen (ttyUSB0) mangler efter opstart. Tjek Synology USB-setup."
|
||||
|
||||
mode: single
|
||||
|
||||
- alias: Infrastruktur - Zigbee USB gik ned
|
||||
id: infrastructure_zigbee_usb_down_runtime
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.zigbee_usb_ttyusb0
|
||||
to: "off"
|
||||
for: "00:02:00"
|
||||
|
||||
action:
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
title: "Zigbee USB er nede"
|
||||
message: >-
|
||||
Zigbee USB-donglen (ttyUSB0) har vaeret utilgaengelig i mindst 2 minutter.
|
||||
Zigbee-enheder kan derfor vaere utilgaengelige.
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "Home Assistant: Zigbee USB nede"
|
||||
message: "Zigbee USB-donglen (ttyUSB0) har vaeret nede i mindst 2 minutter. Tjek Synology USB-setup."
|
||||
- service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
title: "Home Assistant: Zigbee USB nede"
|
||||
message: "Zigbee USB-donglen (ttyUSB0) har vaeret nede i mindst 2 minutter. Tjek Synology USB-setup."
|
||||
|
||||
mode: single
|
||||
@@ -2,58 +2,58 @@
|
||||
## Skal være tændt fra solnedgang og til kl 22
|
||||
## og fra 6-solopgang
|
||||
## derudover: hvis solen er under horisonten, så tænd i 5 minutter ved bevægelse
|
||||
- alias: 'Julelys tænd morgen'
|
||||
trigger:
|
||||
platform: time
|
||||
at: "06:30:00"
|
||||
condition:
|
||||
- condition: state # from sunset until sunrise
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: template # Vintersæson uge 42-8
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys tænd morgen'
|
||||
# trigger:
|
||||
# platform: time
|
||||
# at: "06:30:00"
|
||||
# condition:
|
||||
# - condition: state # from sunset until sunrise
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
# - condition: template # Vintersæson uge 42-8
|
||||
# value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
# action:
|
||||
# - service: light.turn_on
|
||||
# data:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys sluk morgen'
|
||||
trigger:
|
||||
platform: sun
|
||||
event: sunrise
|
||||
condition:
|
||||
- condition: template # Vintersæson uge 42-8
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys sluk morgen'
|
||||
# trigger:
|
||||
# platform: sun
|
||||
# event: sunrise
|
||||
# condition:
|
||||
# - condition: template # Vintersæson uge 42-8
|
||||
# value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
# action:
|
||||
# - service: light.turn_off
|
||||
# data:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys tænd aften'
|
||||
trigger:
|
||||
platform: sun
|
||||
event: sunset
|
||||
condition:
|
||||
- condition: time
|
||||
before: '21:30:00'
|
||||
- condition: template # Vintersæson uge 42-8
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys tænd aften'
|
||||
# trigger:
|
||||
# platform: sun
|
||||
# event: sunset
|
||||
# condition:
|
||||
# - condition: time
|
||||
# before: '21:30:00'
|
||||
# - condition: template # Vintersæson uge 42-8
|
||||
# value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
# action:
|
||||
# - service: light.turn_on
|
||||
# data:
|
||||
# entity_id: light.julelys
|
||||
|
||||
- alias: 'Julelys sluk aften'
|
||||
trigger:
|
||||
platform: time
|
||||
at: "22:00:00"
|
||||
condition:
|
||||
- condition: template # Vintersæson uge 42-8
|
||||
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.julelys
|
||||
# - alias: 'Julelys sluk aften'
|
||||
# trigger:
|
||||
# platform: time
|
||||
# at: "22:00:00"
|
||||
# condition:
|
||||
# - condition: template # Vintersæson uge 42-8
|
||||
# value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||
# action:
|
||||
# - service: light.turn_off
|
||||
# data:
|
||||
# entity_id: light.julelys
|
||||
|
||||
|
||||
# - alias: 'Julelys tænd ved bevægelse'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- alias: 'Mor kommer hjem'
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.annes_iphone_xs_4
|
||||
entity_id: device_tracker.annes_iphone_17pro
|
||||
to: 'home'
|
||||
|
||||
action:
|
||||
@@ -16,7 +16,7 @@
|
||||
to: 'home'
|
||||
|
||||
action:
|
||||
service: notify.mobile_app_annes_iphone_14_pro
|
||||
service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: 'Daniel kommer hjem'
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
to: 'home'
|
||||
|
||||
action:
|
||||
service: notify.mobile_app_annes_iphone_14_pro
|
||||
service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: 'Andreas kommer hjem'
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
to: 'Skole'
|
||||
|
||||
action:
|
||||
service: notify.mobile_app_annes_iphone_14_pro
|
||||
service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: 'Andreas ankommer til skole'
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
to: 'Østre Alle'
|
||||
|
||||
action:
|
||||
service: notify.mobile_app_annes_iphone_14_pro
|
||||
service: notify.mobile_app_annes_iphone_17pro
|
||||
data:
|
||||
message: 'Daniel ankommer til skole'
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
to: "off"
|
||||
id: tv_off
|
||||
|
||||
- platform: time
|
||||
at: "23:30:00"
|
||||
id: natfallback
|
||||
|
||||
variables:
|
||||
lux_limit: "{{ states('input_number.stue_lux_threshold') | int }}"
|
||||
dagperiode: >
|
||||
@@ -136,3 +140,25 @@
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.livingroom
|
||||
|
||||
# Natfallback kl 23:30: sluk hvis ingen gaester, TV ikke on, og ingen bevaegelse i 5 min
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: natfallback
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.samsung_s95ca_55_3
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.stue_bevaegelse
|
||||
state: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.livingroom
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
sidste_person: >-
|
||||
{% set people = [
|
||||
('person.claus_dethlefsen', 'notify.mobile_app_claus_iphone_15pro'),
|
||||
('person.anne_schusler_dethlefsen', 'notify.mobile_app_annes_iphone_14_pro'),
|
||||
('person.anne_schusler_dethlefsen', 'notify.mobile_app_annes_iphone_17pro'),
|
||||
('person.andreas_schusler_dethlefsen', 'notify.mobile_app_andreas_iphone_17pro'),
|
||||
('person.daniel_schusler_dethlefsen', 'notify.mobile_app_daniels_iphone_17pro')
|
||||
] %}
|
||||
|
||||
Reference in New Issue
Block a user