diff --git a/dashboards/views/01_home.yaml b/dashboards/views/01_home.yaml index bfe2fb4..90bc1e7 100644 --- a/dashboards/views/01_home.yaml +++ b/dashboards/views/01_home.yaml @@ -698,6 +698,18 @@ cards: action: call-service service: script.tv_hygge_announcement + # 🏖️ Ferie + - type: entities + title: Ferie + icon: mdi:beach + entities: + - entity: input_datetime.vacation_start + name: Afrejse + - entity: input_datetime.vacation_end + name: Hjemkomst + - entity: input_boolean.vacation_mode + name: Ferietilstand aktiv + # 🗑️ Affald - type: glance columns: 3 diff --git a/dashboards/views/06_varme.yaml b/dashboards/views/06_varme.yaml index ba321a5..0901680 100644 --- a/dashboards/views/06_varme.yaml +++ b/dashboards/views/06_varme.yaml @@ -381,8 +381,6 @@ sections: - entity: input_number.varme_nat_saenkning - entity: input_number.varme_vaek_saenkning - entity: input_number.varme_ferie_temp - - entity: input_datetime.vacation_end - name: Hjemkomst (ferie slutter) - type: button name: Genberegn varme nu diff --git a/include/automations/varme_styring.yaml b/include/automations/varme_styring.yaml index b7eae30..32973e5 100644 --- a/include/automations/varme_styring.yaml +++ b/include/automations/varme_styring.yaml @@ -75,6 +75,17 @@ action: - service: script.varme_recalculate +- alias: "Varme - Ferietilstand: Aktiver ved afrejse" + id: varme_ferie_aktiver + description: "Slår vacation_mode til automatisk på afrejsetidspunktet (vacation_start)" + trigger: + - platform: time + at: input_datetime.vacation_start + action: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.vacation_mode + - alias: "Varme - Ferieopvarmning: Start 2 dage før hjemkomst" id: varme_ferie_forvarm description: > diff --git a/include/input/datetime/vacation.yaml b/include/input/datetime/vacation.yaml index 3c7d29c..a53265c 100644 --- a/include/input/datetime/vacation.yaml +++ b/include/input/datetime/vacation.yaml @@ -1,5 +1,10 @@ +vacation_start: + name: Vacation Start + has_date: true + has_time: true + vacation_end: name: Vacation End has_date: true has_time: true - +