Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf4395c441 | ||
|
|
7493149d03 | ||
|
|
b67f137b50 | ||
|
|
d834d2fc68 |
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
2026.9.4
|
||||
2026.10.3
|
||||
@@ -894,7 +894,7 @@ cards:
|
||||
- type: entities
|
||||
title: Modes
|
||||
entities:
|
||||
- entity: input_boolean.guests_mode
|
||||
- entity: input_boolean.gaester
|
||||
name: Vi har gæster
|
||||
icon: mdi:account-group
|
||||
- entity: input_boolean.vacation_mode
|
||||
|
||||
@@ -402,6 +402,8 @@ sections:
|
||||
- type: entities
|
||||
title: Automatiske tidspunkter
|
||||
entities:
|
||||
- entity: input_boolean.vanding_saeson_aktiv
|
||||
name: Automatisk vanding (sæson)
|
||||
- entity: input_datetime.vanding_morgen_tid
|
||||
name: Morgen – start
|
||||
- entity: input_datetime.vanding_aften_tid
|
||||
|
||||
@@ -5,5 +5,5 @@ panel: true
|
||||
|
||||
cards:
|
||||
- type: iframe
|
||||
url: /local/snapshots/indkorsel_loader.html?v=20261005220433
|
||||
url: /local/snapshots/indkorsel_loader.html?v=20261108130726
|
||||
aspect_ratio: 100%
|
||||
@@ -31,7 +31,10 @@
|
||||
- variables:
|
||||
lights: >
|
||||
{% set base = ['light.indkorsel_2', 'light.garage'] %}
|
||||
{% if now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 %}
|
||||
{% set baghave_tilladt = not is_state('input_boolean.gaester', 'on')
|
||||
or 9 <= now().hour < 22 %}
|
||||
{% if baghave_tilladt and
|
||||
(now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8) %}
|
||||
{{ (base + ['light.extended_color_light_1']) | list }}
|
||||
{% else %}
|
||||
{{ base }}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
- id: gaester_tilstand_skifter
|
||||
alias: Gæster - tilstand skifter
|
||||
description: >
|
||||
Kobler "Vi har gæster"-knappen (input_boolean.gaester) til scripts der
|
||||
slår gæste-automationer og alarmer fra/til.
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.gaester
|
||||
from: "off"
|
||||
to: "on"
|
||||
id: "on"
|
||||
- platform: state
|
||||
entity_id: input_boolean.gaester
|
||||
from: "on"
|
||||
to: "off"
|
||||
id: "off"
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
id: start
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: script.guest_mode_on
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "off"
|
||||
sequence:
|
||||
- service: script.guest_mode_off
|
||||
|
||||
- id: gaester_gardiner_morgen
|
||||
alias: Gæster - gardiner ved første bevægelse og helt op kl. 9
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.stue_bevaegelse
|
||||
to: "on"
|
||||
id: motion
|
||||
- platform: time
|
||||
at: "09:00:00"
|
||||
id: open
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "on"
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: motion
|
||||
- condition: time
|
||||
after: "05:50:00"
|
||||
before: "09:00:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.first_run
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
target:
|
||||
entity_id: scene.morgen
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.first_run
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: open
|
||||
sequence:
|
||||
- service: cover.open_cover
|
||||
target:
|
||||
entity_id: cover.alle_gardiner
|
||||
|
||||
- id: gaester_soendag_paamindelse
|
||||
alias: Gæster - spørg søndag kl. 20 om gæstetilstand skal slås fra
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "20:00:00"
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- sun
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "on"
|
||||
action:
|
||||
- variables:
|
||||
confirm_action: "{{ 'GUEST_MODE_OFF_' ~ context.id }}"
|
||||
keep_action: "{{ 'GUEST_MODE_KEEP_' ~ context.id }}"
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "Gæstetilstand"
|
||||
message: "Vil du slå gæstetilstand fra nu?"
|
||||
data:
|
||||
tag: gaester_soendag
|
||||
actions:
|
||||
- action: "{{ confirm_action }}"
|
||||
title: "Slå fra"
|
||||
- action: "{{ keep_action }}"
|
||||
title: "Behold gæstetilstand"
|
||||
- wait_for_trigger:
|
||||
- platform: event
|
||||
event_type: mobile_app_notification_action
|
||||
event_data:
|
||||
action: "{{ confirm_action }}"
|
||||
id: confirmed
|
||||
- platform: event
|
||||
event_type: mobile_app_notification_action
|
||||
event_data:
|
||||
action: "{{ keep_action }}"
|
||||
id: keep
|
||||
- platform: state
|
||||
entity_id: input_boolean.gaester
|
||||
to: "off"
|
||||
id: already_off
|
||||
timeout: "04:00:00"
|
||||
continue_on_timeout: true
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: clear_notification
|
||||
data:
|
||||
tag: gaester_soendag
|
||||
- condition: template
|
||||
value_template: "{{ wait.trigger is not none and wait.trigger.id == 'confirmed' }}"
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "on"
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.gaester
|
||||
@@ -0,0 +1,60 @@
|
||||
- id: garageport_anne_evening_close
|
||||
alias: Garageport Anne - luk kl. 21 med mulighed for annullering
|
||||
description: >
|
||||
Varsl kl. 21 og luk efter to minutter, medmindre brugeren annullerer
|
||||
eller porten lukkes i mellemtiden. Den eksisterende reminder er uændret.
|
||||
mode: single
|
||||
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "21:00:00"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garageport
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "Garageport"
|
||||
message: "Garageporten er åben og lukkes automatisk om 2 minutter. Tryk Annuller for at lade den stå åben."
|
||||
data:
|
||||
tag: garage_anne_evening_close
|
||||
actions:
|
||||
- action: CANCEL_GARAGE_ANNE_EVENING
|
||||
title: "Annuller"
|
||||
|
||||
- wait_for_trigger:
|
||||
- platform: event
|
||||
event_type: mobile_app_notification_action
|
||||
event_data:
|
||||
action: CANCEL_GARAGE_ANNE_EVENING
|
||||
id: cancelled
|
||||
- platform: state
|
||||
entity_id: binary_sensor.garageport
|
||||
to: "off"
|
||||
id: closed
|
||||
timeout: "00:02:00"
|
||||
continue_on_timeout: true
|
||||
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: clear_notification
|
||||
data:
|
||||
tag: garage_anne_evening_close
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ wait.trigger is not none }}"
|
||||
sequence:
|
||||
- stop: "Aftenlukning annulleret, eller porten er allerede lukket"
|
||||
|
||||
- condition: state
|
||||
entity_id: binary_sensor.garageport
|
||||
state: "on"
|
||||
|
||||
- service: cover.close_cover
|
||||
target:
|
||||
entity_id: cover.anne
|
||||
@@ -3,6 +3,9 @@
|
||||
- platform: time
|
||||
at: '07:00:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
@@ -16,6 +19,9 @@
|
||||
- platform: time
|
||||
at: '09:00:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
@@ -29,6 +35,9 @@
|
||||
- platform: time
|
||||
at: '06:00:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
@@ -42,6 +51,9 @@
|
||||
- platform: time
|
||||
at: '07:00:00'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 2
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
action:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
|
||||
@@ -44,6 +44,12 @@
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}"
|
||||
|
||||
# Gæster: ingen motion-lys om natten (22-09)
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ not is_state('input_boolean.gaester', 'on') or
|
||||
900 <= now().strftime('%H%M') | int < 2200 }}
|
||||
|
||||
sequence:
|
||||
|
||||
- service: light.turn_on
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
{% endif %}
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||
# Gæster: ingen motion-lys om natten (22-09)
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ not is_state('input_boolean.gaester', 'on') or
|
||||
900 <= now().strftime('%H%M') | int < 2200 }}
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
lux_limit: "{{ states('input_number.gang_lux_threshold') | int }}"
|
||||
is_dag: >
|
||||
{% set t = now().strftime('%H%M') | int %}
|
||||
{% if is_state('binary_sensor.arbejdsdag', 'on') %}
|
||||
{% set arbejdsdag = is_state('binary_sensor.arbejdsdag', 'on') %}
|
||||
{% set start = 630 if arbejdsdag else 800 %}
|
||||
{% if is_state('input_boolean.gaester', 'on') %}
|
||||
{{ start <= t < 2300 }}
|
||||
{% elif arbejdsdag %}
|
||||
{{ 630 <= t < 2130 }}
|
||||
{% else %}
|
||||
{{ 800 <= t < 2200 }}
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
value_template: >
|
||||
{{ states('sensor.kontor_belysningsstyrke') | int <
|
||||
states('input_number.kontor_lux_threshold') | int }}
|
||||
# Gæster: ingen motion-lys om natten (22-09)
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ not is_state('input_boolean.gaester', 'on') or
|
||||
900 <= now().strftime('%H%M') | int < 2200 }}
|
||||
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
|
||||
@@ -46,6 +46,10 @@
|
||||
{% endif %}
|
||||
|
||||
action:
|
||||
# Gæster styrer stuen manuelt, også ved sengetid.
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
- choose:
|
||||
|
||||
# Motion on: taend lys hvis lux lavt
|
||||
@@ -57,15 +61,6 @@
|
||||
{{ states('sensor.stue_belysningsstyrke') | int < lux_limit }}
|
||||
sequence:
|
||||
- choose:
|
||||
# Gæster: altid Annes favorit uanset tidspunkt
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "on"
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
target:
|
||||
entity_id: scene.stue_annes_favorit
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ dagperiode == 'morgen' }}"
|
||||
@@ -118,6 +113,9 @@
|
||||
value_template: >
|
||||
{{ dagperiode not in ('aften','aften_lys') or
|
||||
is_state('media_player.samsung', 'off') }}
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.livingroom
|
||||
@@ -137,6 +135,9 @@
|
||||
- condition: state
|
||||
entity_id: media_player.samsung
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.livingroom
|
||||
@@ -171,6 +172,9 @@
|
||||
- platform: time_pattern
|
||||
minutes: "/30"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.gaester
|
||||
state: "off"
|
||||
- condition: time
|
||||
after: "00:00:00"
|
||||
before: "05:31:00"
|
||||
|
||||
@@ -7,6 +7,11 @@
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.indkorsel_sensor_illuminance
|
||||
below: 90
|
||||
# Gæster: kun baghaven (drivhus, paradis og Hue "baghave") spærres 22-09.
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ not is_state('input_boolean.gaester', 'on') or
|
||||
900 <= now().strftime('%H%M') | int < 2200 }}
|
||||
# - condition: time
|
||||
# before: '23:00:00'
|
||||
|
||||
@@ -43,4 +48,3 @@
|
||||
entity_id: light.extended_color_light_1
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
value_template: >
|
||||
{% set dt = states('input_datetime.vacation_end') %}
|
||||
{{ dt not in ['unknown','unavailable',''] and
|
||||
now() >= as_datetime(dt) }}
|
||||
as_timestamp(now()) >= as_timestamp(dt) }}
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
value_template: >
|
||||
{% set dt = states('input_datetime.vacation_end') %}
|
||||
{{ dt not in ['unknown','unavailable',''] and
|
||||
now() >= as_datetime(dt) }}
|
||||
as_timestamp(now()) >= as_timestamp(dt) }}
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
trigger:
|
||||
platform: time
|
||||
at: input_datetime.vanding_morgen_tid
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vanding_saeson_aktiv
|
||||
state: 'on'
|
||||
action:
|
||||
- service: script.vanding_hojbed_skiftevis
|
||||
|
||||
@@ -9,6 +13,10 @@
|
||||
trigger:
|
||||
platform: time
|
||||
at: input_datetime.vanding_aften_tid
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vanding_saeson_aktiv
|
||||
state: 'on'
|
||||
action:
|
||||
- service: script.vanding_hojbed_skiftevis
|
||||
|
||||
@@ -103,6 +111,9 @@
|
||||
- platform: time_pattern
|
||||
minutes: 0
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vanding_saeson_aktiv
|
||||
state: 'on'
|
||||
# Er denne time et af de N tidspunkter jævnt fordelt mellem kl. 9 og 21?
|
||||
# input_number.vanding_kapillaer_antal styrer antallet (0 = slået fra).
|
||||
- condition: template
|
||||
@@ -192,4 +203,3 @@
|
||||
entity_id: select.vanding_liter
|
||||
data:
|
||||
option: "{{ trigger.id }}"
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
# - Tilstedeværelse - hjemme/væk skifter
|
||||
# - Ferietilstand - ferie til/fra
|
||||
# - HA genstart - genopret korrekt temp
|
||||
#
|
||||
# VIGTIGT: Kald altid scriptet med script.turn_on (fire-and-forget).
|
||||
# Scriptet har et verifikationsloop der kan tage ~8 min; venter
|
||||
# automationen på det (service: script.varme_recalculate), blokerer
|
||||
# den og sluger nye triggers (mode: single). Scriptet er mode: restart,
|
||||
# så nyeste kald vinder altid.
|
||||
##################################################
|
||||
|
||||
- alias: "Varme - Genberegn: Morgen"
|
||||
@@ -15,7 +21,9 @@
|
||||
- platform: time
|
||||
at: input_datetime.varme_morgen_tid
|
||||
action:
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Genberegn: Nat"
|
||||
id: varme_recalc_nat
|
||||
@@ -24,18 +32,25 @@
|
||||
- platform: time
|
||||
at: input_datetime.varme_aften_tid
|
||||
action:
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Genberegn: Tilstedeværelse"
|
||||
id: varme_recalc_presence
|
||||
description: "Justerer temperaturer når family_presence ændres (hjemme/væk)"
|
||||
# restart: nyt hjemme/væk-skifte under delay'en genstarter ventetiden,
|
||||
# så genberegningen altid bruger den nyeste tilstand
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.family_presence
|
||||
action:
|
||||
# Kort forsinkelse så person-sensorer er stabile
|
||||
- delay: "00:01:00"
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Genberegn: Ferie"
|
||||
id: varme_recalc_vacation
|
||||
@@ -44,7 +59,9 @@
|
||||
- platform: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
action:
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Genberegn: HA genstart"
|
||||
id: varme_recalc_ha_start
|
||||
@@ -55,7 +72,9 @@
|
||||
action:
|
||||
# Vent til integrationer er loaded
|
||||
- delay: "00:01:00"
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Genberegn: Komforttemperatur ændret"
|
||||
id: varme_recalc_komfort_changed
|
||||
@@ -72,8 +91,12 @@
|
||||
- input_number.varme_komfort_lille_bad
|
||||
- input_number.varme_komfort_badevarelse
|
||||
- input_number.varme_komfort_stue
|
||||
- input_number.varme_komfort_bryggers
|
||||
- input_number.varme_komfort_kokken
|
||||
action:
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Ferietilstand: Aktiver ved afrejse"
|
||||
id: varme_ferie_aktiver
|
||||
@@ -158,3 +181,46 @@
|
||||
push:
|
||||
interruption-level: time-sensitive
|
||||
tag: haandklaedevarmer_efteraar
|
||||
|
||||
- alias: "Varme - Alarm: Bryggers/køkken for varmt trods slukket varme"
|
||||
id: varme_alarm_overtemp_kokken_bryggers
|
||||
description: >
|
||||
Fail-safe. Giver besked hvis bryggers eller køkken er mere end 3° over
|
||||
måltemperaturen i 1 time mens relæet er slukket (HA kalder ikke på varme),
|
||||
fx hvis gulvvarmens ventil ikke lukker eller hovedhanen er skruet for højt op.
|
||||
mode: queued
|
||||
trigger:
|
||||
- platform: template
|
||||
id: kokken
|
||||
value_template: >
|
||||
{% set t = states('sensor.temp_kokken_temperatur') | float(none) %}
|
||||
{% set m = state_attr('climate.kokken', 'temperature') | float(none) %}
|
||||
{{ t is not none and m is not none
|
||||
and is_state('switch.varme_kokken', 'off')
|
||||
and t > m + 3 }}
|
||||
for: "01:00:00"
|
||||
- platform: template
|
||||
id: bryggers
|
||||
value_template: >
|
||||
{% set t = states('sensor.temp_bryggers_temperatur') | float(none) %}
|
||||
{% set m = state_attr('climate.bryggers', 'temperature') | float(none) %}
|
||||
{{ t is not none and m is not none
|
||||
and is_state('switch.varme_bryggers', 'off')
|
||||
and t > m + 3 }}
|
||||
for: "01:00:00"
|
||||
action:
|
||||
- variables:
|
||||
rum: "{{ {'kokken': 'Køkkenet', 'bryggers': 'Bryggers'}[trigger.id] }}"
|
||||
temp: "{{ states('sensor.temp_' ~ trigger.id ~ '_temperatur') }}"
|
||||
maal: "{{ state_attr('climate.' ~ trigger.id, 'temperature') }}"
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
title: "{{ rum }} er for varmt"
|
||||
message: >
|
||||
{{ rum }} er {{ temp }}° (mål {{ maal }}°), og HA kalder ikke på varme.
|
||||
Tjek at gulvvarmens ventil lukker, og overvej at skrue hovedhanen
|
||||
i bryggers ned.
|
||||
data:
|
||||
push:
|
||||
interruption-level: time-sensitive
|
||||
tag: "varme_overtemp_{{ trigger.id }}"
|
||||
@@ -24,7 +24,9 @@
|
||||
- "off"
|
||||
for: "00:00:05"
|
||||
action:
|
||||
- service: script.varme_recalculate
|
||||
- service: script.turn_on
|
||||
target:
|
||||
entity_id: script.varme_recalculate
|
||||
|
||||
### Notifikation: Vindue åbner og ingen er hjemme
|
||||
|
||||
|
||||
@@ -31,9 +31,7 @@ Varme:
|
||||
|
||||
guest_automations_off:
|
||||
entities:
|
||||
- automation.der_er_nogen_i_indkorslen
|
||||
- automation.godmorgen
|
||||
- automation.godmorgen_children_arbejdsdag
|
||||
- automation.godmorgen_rul_gardin_lidt_op_og_taend_lys_i_stue
|
||||
- automation.godnat
|
||||
- automation.gruppe_kokken_uden_stue_alrum
|
||||
- automation.gruppe_kokken_stue_alrum
|
||||
@@ -41,14 +39,11 @@ guest_automations_off:
|
||||
- automation.lys_sovevaerelse_dag_arbejdsdag
|
||||
- automation.lys_sovevaerelse_dag_ikke_arbejdsdag
|
||||
- automation.sunset_stuff_on
|
||||
# Alarm-automationer der tænder Sonos-alarmer (inkl. "genaktiver" efter sygdom)
|
||||
- automation.turn_on_alarms_andreas
|
||||
- automation.turn_on_alarms_andreas_saturdays
|
||||
- automation.turn_on_alarms_andreas_tuesdays
|
||||
- automation.turn_on_alarms_badevaerelse
|
||||
- automation.turn_on_alarms_badevaerelse_afsted
|
||||
- automation.turn_on_alarms_daniel
|
||||
- automation.turn_on_alarms_daniel_afsted
|
||||
- automation.turn_on_alarms_daniel_saturdays
|
||||
- automation.turn_on_alarms_soft_wakeup
|
||||
|
||||
|
||||
|
||||
- automation.syg_daniel_genaktiver_alarmer
|
||||
- automation.syg_sovevaerelse_genaktiver_alarmer
|
||||
@@ -0,0 +1,3 @@
|
||||
vanding_saeson_aktiv:
|
||||
name: Automatisk vanding (sæson)
|
||||
icon: mdi:sprinkler-variant
|
||||
@@ -5,7 +5,7 @@ varme_komfort_andreas:
|
||||
max: 28
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 19
|
||||
initial: 20
|
||||
icon: mdi:thermometer
|
||||
|
||||
varme_komfort_daniel:
|
||||
@@ -14,7 +14,7 @@ varme_komfort_daniel:
|
||||
max: 28
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 19
|
||||
initial: 20
|
||||
icon: mdi:thermometer
|
||||
|
||||
varme_komfort_sovevaerelse:
|
||||
@@ -77,7 +77,7 @@ varme_komfort_stue:
|
||||
max: 28
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 23.5
|
||||
initial: 24
|
||||
icon: mdi:thermometer
|
||||
|
||||
# Globale sænkninger
|
||||
@@ -87,7 +87,7 @@ varme_nat_saenkning:
|
||||
max: 8
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 3
|
||||
initial: 2
|
||||
icon: mdi:weather-night
|
||||
|
||||
varme_vaek_saenkning:
|
||||
@@ -96,7 +96,7 @@ varme_vaek_saenkning:
|
||||
max: 8
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 3
|
||||
initial: 1.5
|
||||
icon: mdi:home-export-outline
|
||||
|
||||
varme_ferie_temp:
|
||||
@@ -114,7 +114,7 @@ varme_komfort_bryggers:
|
||||
max: 28
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 20
|
||||
initial: 23
|
||||
icon: mdi:thermometer
|
||||
|
||||
varme_komfort_kokken:
|
||||
@@ -123,5 +123,5 @@ varme_komfort_kokken:
|
||||
max: 28
|
||||
step: 0.5
|
||||
unit_of_measurement: "°C"
|
||||
initial: 20
|
||||
initial: 23
|
||||
icon: mdi:thermometer
|
||||
@@ -1,12 +1,34 @@
|
||||
guest_mode_on:
|
||||
sequence:
|
||||
- service: automation.turn_off
|
||||
entity_id:
|
||||
- group.guest_automations_off
|
||||
target:
|
||||
entity_id: group.guest_automations_off
|
||||
# Slå Sonos-alarmer fra der allerede er tændt (fx Daniels lørdagsalarm)
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.sonos_alarm_1782 # Soft wakeup
|
||||
- switch.sonos_alarm_298 # Badeværelse
|
||||
- switch.sonos_alarm_377 # Daniel hverdag
|
||||
- switch.sonos_alarm_445 # Andreas hverdag
|
||||
- switch.sonos_alarm_3471 # Daniel lørdag
|
||||
|
||||
guest_mode_off:
|
||||
sequence:
|
||||
- service: automation.turn_on
|
||||
entity_id:
|
||||
- group.guest_automations_off
|
||||
|
||||
target:
|
||||
entity_id: group.guest_automations_off
|
||||
# Efter kl. 20:09 har aftenens alarm-automationer allerede kørt (og var slået fra),
|
||||
# så kør dem nu. Betingelserne (arbejdsdag i morgen, ikke syg) vurderes som normalt.
|
||||
- condition: template
|
||||
value_template: "{{ now().strftime('%H%M') | int >= 2009 }}"
|
||||
- service: automation.trigger
|
||||
target:
|
||||
entity_id:
|
||||
- automation.turn_on_alarms_soft_wakeup
|
||||
- automation.turn_on_alarms_andreas
|
||||
- automation.turn_on_alarms_badevaerelse
|
||||
- automation.turn_on_alarms_daniel
|
||||
- automation.turn_on_alarms_daniel_saturdays
|
||||
data:
|
||||
skip_condition: false
|
||||
+105
-129
@@ -31,6 +31,7 @@ varme_recalculate:
|
||||
|
||||
# Sæt alle rum til manuel tilstand (preset: none) så Roth-tidsprogram ikke overstyrer
|
||||
- service: climate.set_preset_mode
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id:
|
||||
- climate.andreas
|
||||
@@ -43,136 +44,71 @@ varme_recalculate:
|
||||
data:
|
||||
preset_mode: "none"
|
||||
|
||||
# ---- Andreas (vindue: binary_sensor.andreas_vindue) ----
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('binary_sensor.andreas_vindue', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.andreas
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_andreas') | float(20) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.andreas
|
||||
data:
|
||||
temperature: "{{ ferie_temp }}"
|
||||
# ---- Roth-rum: beregn alle mål ét sted (vindue åbent → ferietemp) ----
|
||||
# Målene gemmes i roth_maal så verifikationen til sidst kan gensende
|
||||
# til rum hvor Roth-controlleren har tabt skrivningen (pytouchline).
|
||||
- variables:
|
||||
roth_maal:
|
||||
climate.andreas: >-
|
||||
{% set k = states('input_number.varme_komfort_andreas') | float(20) %}
|
||||
{% if is_state('binary_sensor.andreas_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.daniel: >-
|
||||
{% set k = states('input_number.varme_komfort_daniel') | float(20) %}
|
||||
{% if is_state('binary_sensor.daniel_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.sovev_prelse: >-
|
||||
{% set k = states('input_number.varme_komfort_sovevaerelse') | float(18) %}
|
||||
{% if is_state('binary_sensor.sovevaerelse_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.kontor: >-
|
||||
{% set k = states('input_number.varme_komfort_kontor') | float(21) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.fordelingsgang: >-
|
||||
{% set k = states('input_number.varme_komfort_gang') | float(18) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.forgang: >-
|
||||
{% set k = states('input_number.varme_komfort_forgang') | float(17) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
climate.lille_bad: >-
|
||||
{% set k = states('input_number.varme_komfort_lille_bad') | float(22) %}
|
||||
{% if is_state('binary_sensor.lille_bad_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
|
||||
# ---- Daniel (vindue: binary_sensor.daniel_vindue) ----
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('binary_sensor.daniel_vindue', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.daniel
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_daniel') | float(20) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.daniel
|
||||
data:
|
||||
temperature: "{{ ferie_temp }}"
|
||||
|
||||
# ---- Soveværelse (vindue: binary_sensor.sovevaerelse_vindue) ----
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('binary_sensor.sovevaerelse_vindue', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.sovev_prelse
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_sovevaerelse') | float(18) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.sovev_prelse
|
||||
data:
|
||||
temperature: "{{ ferie_temp }}"
|
||||
|
||||
# ---- Kontor (ingen vinduesensor) ----
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.kontor
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_kontor') | float(21) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
|
||||
# ---- Gang / Fordelingsgang (ingen vinduesensor) ----
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.fordelingsgang
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_gang') | float(18) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
|
||||
# ---- Forgang (ingen vinduesensor) ----
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.forgang
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_forgang') | float(17) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
|
||||
# ---- Lille bad (vindue: binary_sensor.lille_bad_vindue) ----
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('binary_sensor.lille_bad_vindue', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.lille_bad
|
||||
data:
|
||||
temperature: >
|
||||
{% set k = states('input_number.varme_komfort_lille_bad') | float(22) %}
|
||||
{% if vacation %} {{ ferie_temp }}
|
||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: climate.lille_bad
|
||||
data:
|
||||
temperature: "{{ ferie_temp }}"
|
||||
# ---- Roth-rum: sæt alle mål ----
|
||||
- repeat:
|
||||
for_each: "{{ roth_maal | dictsort }}"
|
||||
sequence:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: "{{ repeat.item[0] }}"
|
||||
data:
|
||||
temperature: "{{ repeat.item[1] | float }}"
|
||||
|
||||
# ---- Badeværelse – Danfoss Ally (vindue: binary_sensor.badevaerelse_vindue) ----
|
||||
- if:
|
||||
@@ -180,6 +116,7 @@ varme_recalculate:
|
||||
value_template: "{{ not is_state('binary_sensor.badevaerelse_vindue', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.badevarelse
|
||||
data:
|
||||
@@ -193,6 +130,7 @@ varme_recalculate:
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.badevarelse
|
||||
data:
|
||||
@@ -205,6 +143,7 @@ varme_recalculate:
|
||||
value_template: "{{ not is_state('binary_sensor.terrassedor', 'on') }}"
|
||||
then:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.stue
|
||||
data:
|
||||
@@ -218,6 +157,7 @@ varme_recalculate:
|
||||
{% endif %}
|
||||
else:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.stue
|
||||
data:
|
||||
@@ -226,6 +166,7 @@ varme_recalculate:
|
||||
|
||||
# ---- Bryggers – generic_thermostat (ingen vinduesensor) ----
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.bryggers
|
||||
data:
|
||||
@@ -240,6 +181,7 @@ varme_recalculate:
|
||||
|
||||
# ---- Køkken – generic_thermostat (ingen vinduesensor) ----
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: climate.kokken
|
||||
data:
|
||||
@@ -252,6 +194,40 @@ varme_recalculate:
|
||||
{% else %} {{ k }}
|
||||
{% endif %}
|
||||
|
||||
# ---- Verifikation: Roth taber af og til skrivninger ----
|
||||
# HA viser først det nye mål optimistisk; ved næste poll (~1-2 min)
|
||||
# afsløres det hvis controlleren aldrig modtog værdien (målet "hopper
|
||||
# tilbage"). Vent på poll, sammenlign, og gensend kun de rum der
|
||||
# mangler. Op til 3 forsøg. mode: restart afbryder hvis en ny
|
||||
# genberegning starter imens.
|
||||
- repeat:
|
||||
count: 3
|
||||
sequence:
|
||||
- delay: "00:02:30"
|
||||
- variables:
|
||||
roth_mangler: >-
|
||||
{% set ns = namespace(l=[]) %}
|
||||
{% for e, t in roth_maal.items() %}
|
||||
{% if (state_attr(e, 'temperature') | float(-99) | round(1)) != (t | float | round(1)) %}
|
||||
{% set ns.l = ns.l + [[e, t]] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{{ ns.l }}
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ roth_mangler | length == 0 }}"
|
||||
then:
|
||||
- stop: "Alle Roth-mål bekræftet"
|
||||
- repeat:
|
||||
for_each: "{{ roth_mangler }}"
|
||||
sequence:
|
||||
- service: climate.set_temperature
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: "{{ repeat.item[0] }}"
|
||||
data:
|
||||
temperature: "{{ repeat.item[1] | float }}"
|
||||
|
||||
|
||||
varme_save_defaults:
|
||||
alias: Gem varme-standardværdier
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"count": 4, "items": [{"date": "2026-10-06", "recipe": {"name": "Lasagne", "slug": "lasagne"}}, {"date": "2026-10-08", "recipe": {"name": "Rester fra Kylling i Karry a la Ristaffel", "slug": ""}}, {"date": "2026-10-09", "recipe": {"name": "Laks med sesam og citron", "slug": "laks-med-sesam-og-citron"}}, {"date": "2026-10-07", "recipe": {"name": "Pastasalat med kylling", "slug": "pastasalat-med-kylling"}}]}
|
||||
{"count": 6, "items": [{"date": "2026-11-14", "recipe": {"name": "Tagliata med rucola og parmesan", "slug": "tagliata-med-rucola-og-parmesan"}}, {"date": "2026-11-13", "recipe": {"name": "Pasta med laks og fl\u00f8de", "slug": "pasta-med-laks-og-flode"}}, {"date": "2026-11-09", "recipe": {"name": "Rester (bolognese)", "slug": ""}}, {"date": "2026-11-10", "recipe": {"name": "Rester", "slug": ""}}, {"date": "2026-11-08", "recipe": {"name": "Spaghetti Bolognese - pasta med k\u00f8dsovs", "slug": "spaghetti-bolognese-pasta-med-kodsovs"}}, {"date": "2026-11-11", "recipe": {"name": "Pastasalat med kylling", "slug": "pastasalat-med-kylling"}}]}
|
||||
Reference in new issue
Block a user