Tilføj notifikationer til plæneklipper automatiseringer

This commit is contained in:
2026-04-16 17:18:45 +02:00
parent 999ffceec9
commit 42930ef2f0
+51 -21
View File
@@ -7,28 +7,46 @@
- condition: state - condition: state
entity_id: binary_sensor.arbejdsdag entity_id: binary_sensor.arbejdsdag
state: 'on' state: 'on'
- condition: state
entity_id: binary_sensor.family_presence
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: weather.home
attribute: condition
state: 'rainy'
- condition: state
entity_id: weather.home
attribute: condition
state: 'pouring'
action: action:
- service: lawn_mower.start_mowing - choose:
target: - conditions:
entity_id: lawn_mower.husqvarna_automower - condition: state
- service: input_datetime.set_datetime entity_id: binary_sensor.family_presence
target: state: 'on'
entity_id: input_datetime.ploeneklipper_sidst_koert sequence:
data: - service: notify.mobile_app_claus_iphone_15pro
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}" data:
title: "Plæneklipper"
message: "Klipperen startede IKKE kl. 9 - der er nogen hjemme."
- conditions:
- condition: or
conditions:
- condition: state
entity_id: weather.home
attribute: condition
state: 'rainy'
- condition: state
entity_id: weather.home
attribute: condition
state: 'pouring'
sequence:
- service: notify.mobile_app_claus_iphone_15pro
data:
title: "Plæneklipper"
message: "Klipperen startede IKKE kl. 9 - det regner."
default:
- service: lawn_mower.start_mowing
target:
entity_id: lawn_mower.husqvarna_automower
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.ploeneklipper_sidst_koert
data:
datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
- service: notify.mobile_app_claus_iphone_15pro
data:
title: "Plæneklipper"
message: "Klipperen er startet."
- alias: 'Plæneklipper - dock arbejdsdag' - alias: 'Plæneklipper - dock arbejdsdag'
description: 'Send plæneklipper hjem kl 13 på arbejdsdage' description: 'Send plæneklipper hjem kl 13 på arbejdsdage'
@@ -46,6 +64,10 @@
- service: lawn_mower.dock - service: lawn_mower.dock
target: target:
entity_id: lawn_mower.husqvarna_automower entity_id: lawn_mower.husqvarna_automower
- service: notify.mobile_app_claus_iphone_15pro
data:
title: "Plæneklipper"
message: "Klipperen er sendt hjem (kl. 13 stop)."
- alias: 'Plæneklipper - stop ved regn' - alias: 'Plæneklipper - stop ved regn'
description: 'Send plæneklipper hjem hvis det begynder at regne' description: 'Send plæneklipper hjem hvis det begynder at regne'
@@ -66,6 +88,10 @@
- service: lawn_mower.dock - service: lawn_mower.dock
target: target:
entity_id: lawn_mower.husqvarna_automower entity_id: lawn_mower.husqvarna_automower
- service: notify.mobile_app_claus_iphone_15pro
data:
title: "Plæneklipper"
message: "Klipperen er sendt hjem - det begyndte at regne."
- alias: 'Plæneklipper - stop når nogen kommer hjem' - alias: 'Plæneklipper - stop når nogen kommer hjem'
description: 'Send plæneklipper hjem når nogen ankommer' description: 'Send plæneklipper hjem når nogen ankommer'
@@ -81,3 +107,7 @@
- service: lawn_mower.dock - service: lawn_mower.dock
target: target:
entity_id: lawn_mower.husqvarna_automower entity_id: lawn_mower.husqvarna_automower
- service: notify.mobile_app_claus_iphone_15pro
data:
title: "Plæneklipper"
message: "Klipperen er sendt hjem - {{ trigger.to_state.attributes.friendly_name }} kom hjem."