Tilføj plæneklipper automatiseringer og dashboard

This commit is contained in:
2026-04-16 16:15:37 +02:00
parent 18d3293953
commit 999ffceec9
3 changed files with 130 additions and 0 deletions
+83
View File
@@ -0,0 +1,83 @@
- alias: 'Plæneklipper - start arbejdsdag'
description: 'Start plæneklipper kl 9 på arbejdsdage hvis det ikke regner og ingen er hjemme'
trigger:
- platform: time
at: '09:00:00'
condition:
- condition: state
entity_id: binary_sensor.arbejdsdag
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:
- 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') }}"
- alias: 'Plæneklipper - dock arbejdsdag'
description: 'Send plæneklipper hjem kl 13 på arbejdsdage'
trigger:
- platform: time
at: '13:00:00'
condition:
- condition: state
entity_id: binary_sensor.arbejdsdag
state: 'on'
- condition: state
entity_id: lawn_mower.husqvarna_automower
state: 'mowing'
action:
- service: lawn_mower.dock
target:
entity_id: lawn_mower.husqvarna_automower
- alias: 'Plæneklipper - stop ved regn'
description: 'Send plæneklipper hjem hvis det begynder at regne'
trigger:
- platform: state
entity_id: weather.home
attribute: condition
to: 'rainy'
- platform: state
entity_id: weather.home
attribute: condition
to: 'pouring'
condition:
- condition: state
entity_id: lawn_mower.husqvarna_automower
state: 'mowing'
action:
- service: lawn_mower.dock
target:
entity_id: lawn_mower.husqvarna_automower
- alias: 'Plæneklipper - stop når nogen kommer hjem'
description: 'Send plæneklipper hjem når nogen ankommer'
trigger:
- platform: state
entity_id: binary_sensor.family_presence
to: 'on'
condition:
- condition: state
entity_id: lawn_mower.husqvarna_automower
state: 'mowing'
action:
- service: lawn_mower.dock
target:
entity_id: lawn_mower.husqvarna_automower
@@ -0,0 +1,4 @@
ploeneklipper_sidst_koert:
name: Plæneklipper sidst kørt
has_date: true
has_time: true