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
|
- type: entities
|
||||||
title: Modes
|
title: Modes
|
||||||
entities:
|
entities:
|
||||||
- entity: input_boolean.guests_mode
|
- entity: input_boolean.gaester
|
||||||
name: Vi har gæster
|
name: Vi har gæster
|
||||||
icon: mdi:account-group
|
icon: mdi:account-group
|
||||||
- entity: input_boolean.vacation_mode
|
- entity: input_boolean.vacation_mode
|
||||||
|
|||||||
@@ -402,6 +402,8 @@ sections:
|
|||||||
- type: entities
|
- type: entities
|
||||||
title: Automatiske tidspunkter
|
title: Automatiske tidspunkter
|
||||||
entities:
|
entities:
|
||||||
|
- entity: input_boolean.vanding_saeson_aktiv
|
||||||
|
name: Automatisk vanding (sæson)
|
||||||
- entity: input_datetime.vanding_morgen_tid
|
- entity: input_datetime.vanding_morgen_tid
|
||||||
name: Morgen – start
|
name: Morgen – start
|
||||||
- entity: input_datetime.vanding_aften_tid
|
- entity: input_datetime.vanding_aften_tid
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ panel: true
|
|||||||
|
|
||||||
cards:
|
cards:
|
||||||
- type: iframe
|
- type: iframe
|
||||||
url: /local/snapshots/indkorsel_loader.html?v=20261005220433
|
url: /local/snapshots/indkorsel_loader.html?v=20261108130726
|
||||||
aspect_ratio: 100%
|
aspect_ratio: 100%
|
||||||
@@ -31,7 +31,10 @@
|
|||||||
- variables:
|
- variables:
|
||||||
lights: >
|
lights: >
|
||||||
{% set base = ['light.indkorsel_2', 'light.garage'] %}
|
{% 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 }}
|
{{ (base + ['light.extended_color_light_1']) | list }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ base }}
|
{{ 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
|
- platform: time
|
||||||
at: '07:00:00'
|
at: '07:00:00'
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@@ -16,6 +19,9 @@
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: '09:00:00'
|
at: '09:00:00'
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'off'
|
state: 'off'
|
||||||
@@ -29,6 +35,9 @@
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: '06:00:00'
|
at: '06:00:00'
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@@ -42,6 +51,9 @@
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: '07:00:00'
|
at: '07:00:00'
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
to: "off"
|
to: "off"
|
||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 2
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: "off"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -44,6 +44,12 @@
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}"
|
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:
|
sequence:
|
||||||
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
|||||||
@@ -38,6 +38,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
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:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -17,7 +17,11 @@
|
|||||||
lux_limit: "{{ states('input_number.gang_lux_threshold') | int }}"
|
lux_limit: "{{ states('input_number.gang_lux_threshold') | int }}"
|
||||||
is_dag: >
|
is_dag: >
|
||||||
{% set t = now().strftime('%H%M') | int %}
|
{% 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 }}
|
{{ 630 <= t < 2130 }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ 800 <= t < 2200 }}
|
{{ 800 <= t < 2200 }}
|
||||||
|
|||||||
@@ -12,6 +12,11 @@
|
|||||||
value_template: >
|
value_template: >
|
||||||
{{ states('sensor.kontor_belysningsstyrke') | int <
|
{{ states('sensor.kontor_belysningsstyrke') | int <
|
||||||
states('input_number.kontor_lux_threshold') | 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:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
|
|||||||
@@ -46,6 +46,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
# Gæster styrer stuen manuelt, også ved sengetid.
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: "off"
|
||||||
- choose:
|
- choose:
|
||||||
|
|
||||||
# Motion on: taend lys hvis lux lavt
|
# Motion on: taend lys hvis lux lavt
|
||||||
@@ -57,15 +61,6 @@
|
|||||||
{{ states('sensor.stue_belysningsstyrke') | int < lux_limit }}
|
{{ states('sensor.stue_belysningsstyrke') | int < lux_limit }}
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- 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:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ dagperiode == 'morgen' }}"
|
value_template: "{{ dagperiode == 'morgen' }}"
|
||||||
@@ -118,6 +113,9 @@
|
|||||||
value_template: >
|
value_template: >
|
||||||
{{ dagperiode not in ('aften','aften_lys') or
|
{{ dagperiode not in ('aften','aften_lys') or
|
||||||
is_state('media_player.samsung', 'off') }}
|
is_state('media_player.samsung', 'off') }}
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: "off"
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.livingroom
|
entity_id: light.livingroom
|
||||||
@@ -137,6 +135,9 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.samsung
|
entity_id: media_player.samsung
|
||||||
state: "off"
|
state: "off"
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: "off"
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.livingroom
|
entity_id: light.livingroom
|
||||||
@@ -171,6 +172,9 @@
|
|||||||
- platform: time_pattern
|
- platform: time_pattern
|
||||||
minutes: "/30"
|
minutes: "/30"
|
||||||
condition:
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.gaester
|
||||||
|
state: "off"
|
||||||
- condition: time
|
- condition: time
|
||||||
after: "00:00:00"
|
after: "00:00:00"
|
||||||
before: "05:31:00"
|
before: "05:31:00"
|
||||||
|
|||||||
@@ -7,6 +7,11 @@
|
|||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.indkorsel_sensor_illuminance
|
entity_id: sensor.indkorsel_sensor_illuminance
|
||||||
below: 90
|
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
|
# - condition: time
|
||||||
# before: '23:00:00'
|
# before: '23:00:00'
|
||||||
|
|
||||||
@@ -43,4 +48,3 @@
|
|||||||
entity_id: light.extended_color_light_1
|
entity_id: light.extended_color_light_1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
value_template: >
|
value_template: >
|
||||||
{% set dt = states('input_datetime.vacation_end') %}
|
{% set dt = states('input_datetime.vacation_end') %}
|
||||||
{{ dt not in ['unknown','unavailable',''] and
|
{{ dt not in ['unknown','unavailable',''] and
|
||||||
now() >= as_datetime(dt) }}
|
as_timestamp(now()) >= as_timestamp(dt) }}
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
value_template: >
|
value_template: >
|
||||||
{% set dt = states('input_datetime.vacation_end') %}
|
{% set dt = states('input_datetime.vacation_end') %}
|
||||||
{{ dt not in ['unknown','unavailable',''] and
|
{{ dt not in ['unknown','unavailable',''] and
|
||||||
now() >= as_datetime(dt) }}
|
as_timestamp(now()) >= as_timestamp(dt) }}
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: input_datetime.vanding_morgen_tid
|
at: input_datetime.vanding_morgen_tid
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vanding_saeson_aktiv
|
||||||
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.vanding_hojbed_skiftevis
|
- service: script.vanding_hojbed_skiftevis
|
||||||
|
|
||||||
@@ -9,6 +13,10 @@
|
|||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: input_datetime.vanding_aften_tid
|
at: input_datetime.vanding_aften_tid
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vanding_saeson_aktiv
|
||||||
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.vanding_hojbed_skiftevis
|
- service: script.vanding_hojbed_skiftevis
|
||||||
|
|
||||||
@@ -103,6 +111,9 @@
|
|||||||
- platform: time_pattern
|
- platform: time_pattern
|
||||||
minutes: 0
|
minutes: 0
|
||||||
condition:
|
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?
|
# 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).
|
# input_number.vanding_kapillaer_antal styrer antallet (0 = slået fra).
|
||||||
- condition: template
|
- condition: template
|
||||||
@@ -192,4 +203,3 @@
|
|||||||
entity_id: select.vanding_liter
|
entity_id: select.vanding_liter
|
||||||
data:
|
data:
|
||||||
option: "{{ trigger.id }}"
|
option: "{{ trigger.id }}"
|
||||||
|
|
||||||
@@ -6,6 +6,12 @@
|
|||||||
# - Tilstedeværelse - hjemme/væk skifter
|
# - Tilstedeværelse - hjemme/væk skifter
|
||||||
# - Ferietilstand - ferie til/fra
|
# - Ferietilstand - ferie til/fra
|
||||||
# - HA genstart - genopret korrekt temp
|
# - 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"
|
- alias: "Varme - Genberegn: Morgen"
|
||||||
@@ -15,7 +21,9 @@
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.varme_morgen_tid
|
at: input_datetime.varme_morgen_tid
|
||||||
action:
|
action:
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Genberegn: Nat"
|
- alias: "Varme - Genberegn: Nat"
|
||||||
id: varme_recalc_nat
|
id: varme_recalc_nat
|
||||||
@@ -24,18 +32,25 @@
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.varme_aften_tid
|
at: input_datetime.varme_aften_tid
|
||||||
action:
|
action:
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Genberegn: Tilstedeværelse"
|
- alias: "Varme - Genberegn: Tilstedeværelse"
|
||||||
id: varme_recalc_presence
|
id: varme_recalc_presence
|
||||||
description: "Justerer temperaturer når family_presence ændres (hjemme/væk)"
|
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:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.family_presence
|
entity_id: binary_sensor.family_presence
|
||||||
action:
|
action:
|
||||||
# Kort forsinkelse så person-sensorer er stabile
|
# Kort forsinkelse så person-sensorer er stabile
|
||||||
- delay: "00:01:00"
|
- delay: "00:01:00"
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Genberegn: Ferie"
|
- alias: "Varme - Genberegn: Ferie"
|
||||||
id: varme_recalc_vacation
|
id: varme_recalc_vacation
|
||||||
@@ -44,7 +59,9 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_boolean.vacation_mode
|
entity_id: input_boolean.vacation_mode
|
||||||
action:
|
action:
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Genberegn: HA genstart"
|
- alias: "Varme - Genberegn: HA genstart"
|
||||||
id: varme_recalc_ha_start
|
id: varme_recalc_ha_start
|
||||||
@@ -55,7 +72,9 @@
|
|||||||
action:
|
action:
|
||||||
# Vent til integrationer er loaded
|
# Vent til integrationer er loaded
|
||||||
- delay: "00:01:00"
|
- delay: "00:01:00"
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Genberegn: Komforttemperatur ændret"
|
- alias: "Varme - Genberegn: Komforttemperatur ændret"
|
||||||
id: varme_recalc_komfort_changed
|
id: varme_recalc_komfort_changed
|
||||||
@@ -72,8 +91,12 @@
|
|||||||
- input_number.varme_komfort_lille_bad
|
- input_number.varme_komfort_lille_bad
|
||||||
- input_number.varme_komfort_badevarelse
|
- input_number.varme_komfort_badevarelse
|
||||||
- input_number.varme_komfort_stue
|
- input_number.varme_komfort_stue
|
||||||
|
- input_number.varme_komfort_bryggers
|
||||||
|
- input_number.varme_komfort_kokken
|
||||||
action:
|
action:
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
- alias: "Varme - Ferietilstand: Aktiver ved afrejse"
|
- alias: "Varme - Ferietilstand: Aktiver ved afrejse"
|
||||||
id: varme_ferie_aktiver
|
id: varme_ferie_aktiver
|
||||||
@@ -158,3 +181,46 @@
|
|||||||
push:
|
push:
|
||||||
interruption-level: time-sensitive
|
interruption-level: time-sensitive
|
||||||
tag: haandklaedevarmer_efteraar
|
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"
|
- "off"
|
||||||
for: "00:00:05"
|
for: "00:00:05"
|
||||||
action:
|
action:
|
||||||
- service: script.varme_recalculate
|
- service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: script.varme_recalculate
|
||||||
|
|
||||||
### Notifikation: Vindue åbner og ingen er hjemme
|
### Notifikation: Vindue åbner og ingen er hjemme
|
||||||
|
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ Varme:
|
|||||||
|
|
||||||
guest_automations_off:
|
guest_automations_off:
|
||||||
entities:
|
entities:
|
||||||
- automation.der_er_nogen_i_indkorslen
|
- automation.godmorgen_rul_gardin_lidt_op_og_taend_lys_i_stue
|
||||||
- automation.godmorgen
|
|
||||||
- automation.godmorgen_children_arbejdsdag
|
|
||||||
- automation.godnat
|
- automation.godnat
|
||||||
- automation.gruppe_kokken_uden_stue_alrum
|
- automation.gruppe_kokken_uden_stue_alrum
|
||||||
- automation.gruppe_kokken_stue_alrum
|
- automation.gruppe_kokken_stue_alrum
|
||||||
@@ -41,14 +39,11 @@ guest_automations_off:
|
|||||||
- automation.lys_sovevaerelse_dag_arbejdsdag
|
- automation.lys_sovevaerelse_dag_arbejdsdag
|
||||||
- automation.lys_sovevaerelse_dag_ikke_arbejdsdag
|
- automation.lys_sovevaerelse_dag_ikke_arbejdsdag
|
||||||
- automation.sunset_stuff_on
|
- 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
|
||||||
- automation.turn_on_alarms_andreas_saturdays
|
|
||||||
- automation.turn_on_alarms_andreas_tuesdays
|
|
||||||
- automation.turn_on_alarms_badevaerelse
|
- automation.turn_on_alarms_badevaerelse
|
||||||
- automation.turn_on_alarms_badevaerelse_afsted
|
|
||||||
- automation.turn_on_alarms_daniel
|
- automation.turn_on_alarms_daniel
|
||||||
- automation.turn_on_alarms_daniel_afsted
|
- automation.turn_on_alarms_daniel_saturdays
|
||||||
- automation.turn_on_alarms_soft_wakeup
|
- 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
|
max: 28
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 19
|
initial: 20
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
|
|
||||||
varme_komfort_daniel:
|
varme_komfort_daniel:
|
||||||
@@ -14,7 +14,7 @@ varme_komfort_daniel:
|
|||||||
max: 28
|
max: 28
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 19
|
initial: 20
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
|
|
||||||
varme_komfort_sovevaerelse:
|
varme_komfort_sovevaerelse:
|
||||||
@@ -77,7 +77,7 @@ varme_komfort_stue:
|
|||||||
max: 28
|
max: 28
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 23.5
|
initial: 24
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
|
|
||||||
# Globale sænkninger
|
# Globale sænkninger
|
||||||
@@ -87,7 +87,7 @@ varme_nat_saenkning:
|
|||||||
max: 8
|
max: 8
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 3
|
initial: 2
|
||||||
icon: mdi:weather-night
|
icon: mdi:weather-night
|
||||||
|
|
||||||
varme_vaek_saenkning:
|
varme_vaek_saenkning:
|
||||||
@@ -96,7 +96,7 @@ varme_vaek_saenkning:
|
|||||||
max: 8
|
max: 8
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 3
|
initial: 1.5
|
||||||
icon: mdi:home-export-outline
|
icon: mdi:home-export-outline
|
||||||
|
|
||||||
varme_ferie_temp:
|
varme_ferie_temp:
|
||||||
@@ -114,7 +114,7 @@ varme_komfort_bryggers:
|
|||||||
max: 28
|
max: 28
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 20
|
initial: 23
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
|
|
||||||
varme_komfort_kokken:
|
varme_komfort_kokken:
|
||||||
@@ -123,5 +123,5 @@ varme_komfort_kokken:
|
|||||||
max: 28
|
max: 28
|
||||||
step: 0.5
|
step: 0.5
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
initial: 20
|
initial: 23
|
||||||
icon: mdi:thermometer
|
icon: mdi:thermometer
|
||||||
@@ -1,12 +1,34 @@
|
|||||||
guest_mode_on:
|
guest_mode_on:
|
||||||
sequence:
|
sequence:
|
||||||
- service: automation.turn_off
|
- service: automation.turn_off
|
||||||
entity_id:
|
target:
|
||||||
- group.guest_automations_off
|
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:
|
guest_mode_off:
|
||||||
sequence:
|
sequence:
|
||||||
- service: automation.turn_on
|
- service: automation.turn_on
|
||||||
entity_id:
|
target:
|
||||||
- group.guest_automations_off
|
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
|
# Sæt alle rum til manuel tilstand (preset: none) så Roth-tidsprogram ikke overstyrer
|
||||||
- service: climate.set_preset_mode
|
- service: climate.set_preset_mode
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- climate.andreas
|
- climate.andreas
|
||||||
@@ -43,136 +44,71 @@ varme_recalculate:
|
|||||||
data:
|
data:
|
||||||
preset_mode: "none"
|
preset_mode: "none"
|
||||||
|
|
||||||
# ---- Andreas (vindue: binary_sensor.andreas_vindue) ----
|
# ---- Roth-rum: beregn alle mål ét sted (vindue åbent → ferietemp) ----
|
||||||
- if:
|
# Målene gemmes i roth_maal så verifikationen til sidst kan gensende
|
||||||
- condition: template
|
# til rum hvor Roth-controlleren har tabt skrivningen (pytouchline).
|
||||||
value_template: "{{ not is_state('binary_sensor.andreas_vindue', 'on') }}"
|
- variables:
|
||||||
then:
|
roth_maal:
|
||||||
- service: climate.set_temperature
|
climate.andreas: >-
|
||||||
target:
|
{% set k = states('input_number.varme_komfort_andreas') | float(20) %}
|
||||||
entity_id: climate.andreas
|
{% if is_state('binary_sensor.andreas_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||||
data:
|
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||||
temperature: >
|
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||||
{% set k = states('input_number.varme_komfort_andreas') | float(20) %}
|
{% else %} {{ k }}
|
||||||
{% if vacation %} {{ ferie_temp }}
|
{% endif %}
|
||||||
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
climate.daniel: >-
|
||||||
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
{% set k = states('input_number.varme_komfort_daniel') | float(20) %}
|
||||||
{% else %} {{ k }}
|
{% if is_state('binary_sensor.daniel_vindue', 'on') or vacation %} {{ ferie_temp }}
|
||||||
{% endif %}
|
{% elif night %} {{ [k - nat_sænk, 15] | max }}
|
||||||
else:
|
{% elif not home %} {{ [k - vaek_sænk, 15] | max }}
|
||||||
- service: climate.set_temperature
|
{% else %} {{ k }}
|
||||||
target:
|
{% endif %}
|
||||||
entity_id: climate.andreas
|
climate.sovev_prelse: >-
|
||||||
data:
|
{% set k = states('input_number.varme_komfort_sovevaerelse') | float(18) %}
|
||||||
temperature: "{{ ferie_temp }}"
|
{% 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) ----
|
# ---- Roth-rum: sæt alle mål ----
|
||||||
- if:
|
- repeat:
|
||||||
- condition: template
|
for_each: "{{ roth_maal | dictsort }}"
|
||||||
value_template: "{{ not is_state('binary_sensor.daniel_vindue', 'on') }}"
|
sequence:
|
||||||
then:
|
- service: climate.set_temperature
|
||||||
- service: climate.set_temperature
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.daniel
|
entity_id: "{{ repeat.item[0] }}"
|
||||||
data:
|
data:
|
||||||
temperature: >
|
temperature: "{{ repeat.item[1] | float }}"
|
||||||
{% 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 }}"
|
|
||||||
|
|
||||||
# ---- Badeværelse – Danfoss Ally (vindue: binary_sensor.badevaerelse_vindue) ----
|
# ---- Badeværelse – Danfoss Ally (vindue: binary_sensor.badevaerelse_vindue) ----
|
||||||
- if:
|
- if:
|
||||||
@@ -180,6 +116,7 @@ varme_recalculate:
|
|||||||
value_template: "{{ not is_state('binary_sensor.badevaerelse_vindue', 'on') }}"
|
value_template: "{{ not is_state('binary_sensor.badevaerelse_vindue', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.badevarelse
|
entity_id: climate.badevarelse
|
||||||
data:
|
data:
|
||||||
@@ -193,6 +130,7 @@ varme_recalculate:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
else:
|
else:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.badevarelse
|
entity_id: climate.badevarelse
|
||||||
data:
|
data:
|
||||||
@@ -205,6 +143,7 @@ varme_recalculate:
|
|||||||
value_template: "{{ not is_state('binary_sensor.terrassedor', 'on') }}"
|
value_template: "{{ not is_state('binary_sensor.terrassedor', 'on') }}"
|
||||||
then:
|
then:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.stue
|
entity_id: climate.stue
|
||||||
data:
|
data:
|
||||||
@@ -218,6 +157,7 @@ varme_recalculate:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
else:
|
else:
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.stue
|
entity_id: climate.stue
|
||||||
data:
|
data:
|
||||||
@@ -226,6 +166,7 @@ varme_recalculate:
|
|||||||
|
|
||||||
# ---- Bryggers – generic_thermostat (ingen vinduesensor) ----
|
# ---- Bryggers – generic_thermostat (ingen vinduesensor) ----
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.bryggers
|
entity_id: climate.bryggers
|
||||||
data:
|
data:
|
||||||
@@ -240,6 +181,7 @@ varme_recalculate:
|
|||||||
|
|
||||||
# ---- Køkken – generic_thermostat (ingen vinduesensor) ----
|
# ---- Køkken – generic_thermostat (ingen vinduesensor) ----
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
|
continue_on_error: true
|
||||||
target:
|
target:
|
||||||
entity_id: climate.kokken
|
entity_id: climate.kokken
|
||||||
data:
|
data:
|
||||||
@@ -252,6 +194,40 @@ varme_recalculate:
|
|||||||
{% else %} {{ k }}
|
{% else %} {{ k }}
|
||||||
{% endif %}
|
{% 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:
|
varme_save_defaults:
|
||||||
alias: Gem varme-standardværdier
|
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