Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42930ef2f0 | |||
| 999ffceec9 | |||
| 18d3293953 |
@@ -155,6 +155,49 @@ cards:
|
||||
target:
|
||||
entity_id: button.roborock_s8_pro_ultra_vac_followed_by_mop
|
||||
|
||||
# 🏎️ Plæneklipper
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
entity: input_datetime.ploeneklipper_sidst_koert
|
||||
show_icon: false
|
||||
show_name: true
|
||||
show_state: true
|
||||
name: Sidst klippet
|
||||
tap_action:
|
||||
action: none
|
||||
styles:
|
||||
card:
|
||||
- padding: 8px
|
||||
name:
|
||||
- font-size: 11px
|
||||
- color: var(--secondary-text-color)
|
||||
- padding-bottom: 4px
|
||||
state:
|
||||
- white-space: normal
|
||||
- word-break: break-word
|
||||
- line-height: 1.2
|
||||
- font-size: 13px
|
||||
- text-align: center
|
||||
|
||||
- type: button
|
||||
name: Klip
|
||||
icon: mdi:robot-mower
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: lawn_mower.start_mowing
|
||||
target:
|
||||
entity_id: lawn_mower.husqvarna_automower
|
||||
|
||||
- type: button
|
||||
name: Stop
|
||||
icon: mdi:home-import-outline
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: lawn_mower.dock
|
||||
target:
|
||||
entity_id: lawn_mower.husqvarna_automower
|
||||
|
||||
# 💡 Lys kontrol
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
home-assistant:
|
||||
container_name: homeassistant
|
||||
image: homeassistant/home-assistant:latest
|
||||
volumes:
|
||||
- /volume1/homeassistant:/config
|
||||
devices:
|
||||
- /dev/ttyUSB0:/dev/ttyUSB0
|
||||
network_mode: host
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=Europe/Copenhagen
|
||||
@@ -81,8 +81,8 @@
|
||||
before: '22:00:00'
|
||||
action:
|
||||
service: light.turn_off
|
||||
data:
|
||||
entity_id: light.gang_2
|
||||
target:
|
||||
entity_id: light.gang
|
||||
|
||||
########## NIGHT
|
||||
|
||||
@@ -124,8 +124,8 @@
|
||||
before: '06:30:00'
|
||||
action:
|
||||
service: light.turn_off
|
||||
data:
|
||||
entity_id: light.gang_2
|
||||
target:
|
||||
entity_id: light.gang
|
||||
|
||||
- alias: 'Lys i gang - ikke arbejdsdag - nat'
|
||||
trigger:
|
||||
@@ -166,6 +166,6 @@
|
||||
before: '08:00:00'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.gang_2
|
||||
target:
|
||||
entity_id: light.gang
|
||||
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
- 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'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.family_presence
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
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'
|
||||
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
|
||||
- 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'
|
||||
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
|
||||
- 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'
|
||||
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
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "Plæneklipper"
|
||||
message: "Klipperen er sendt hjem - {{ trigger.to_state.attributes.friendly_name }} kom hjem."
|
||||
@@ -0,0 +1,4 @@
|
||||
ploeneklipper_sidst_koert:
|
||||
name: Plæneklipper sidst kørt
|
||||
has_date: true
|
||||
has_time: true
|
||||
Reference in New Issue
Block a user