Trigger progowy (template) był jedynym miejscem sprawdzania progu; każdy inny trigger brzegowy (balkon > salon, sunrise, input_boolean on, koniec suszenia) omijał go i startował cool poniżej progu. Dowód z produkcji 2026-07-23 ~14:57: start w cool przy 23.6°C (próg 27). Gałąź start dostaje warunek template będący lustrem triggera progowego. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
73 lines
2.4 KiB
YAML
73 lines
2.4 KiB
YAML
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: start
|
|
- condition: state
|
|
entity_id: input_boolean.klima_salon_auto
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: sun.sun
|
|
state: above_horizon
|
|
- condition: template
|
|
value_template: '{{ states(''sensor.thtuyabalkon_temperature'') | float(0) > states(''sensor.thsalon_temperature'') | float(0) }}'
|
|
- condition: template
|
|
value_template: '{{ states(''sensor.thsalon_temperature'') | float(0) > (states(''input_number.klima_salon_temp_docelowa'') | float(0) + states(''input_number.klima_salon_tolerancja'') | float(0)) }}'
|
|
- condition: state
|
|
entity_id: climate.gree_ir_blaster_klimatyzacja
|
|
state: 'off'
|
|
- condition: state
|
|
entity_id: script.klima_salon_dry_off
|
|
state: 'off'
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
hvac_mode: cool
|
|
temperature: '{{ states(''input_number.klima_salon_temp_docelowa'') | float }}'
|
|
target:
|
|
entity_id: climate.gree_ir_blaster_klimatyzacja
|
|
- conditions:
|
|
- condition: trigger
|
|
id: sync
|
|
- condition: state
|
|
entity_id: input_boolean.klima_salon_auto
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: climate.gree_ir_blaster_klimatyzacja
|
|
state: cool
|
|
sequence:
|
|
- action: climate.set_temperature
|
|
data:
|
|
temperature: '{{ states(''input_number.klima_salon_temp_docelowa'') | float }}'
|
|
target:
|
|
entity_id: climate.gree_ir_blaster_klimatyzacja
|
|
default: []
|
|
alias: 'Klima salon: włącz chłodzenie i synchronizuj cel'
|
|
conditions: []
|
|
description: 'Włącza chłodzenie klimatyzacji w salonie po przekroczeniu progu temperatury i aktualizuje zadaną temperaturę podczas pracy. managed-by: repo'
|
|
id: '1784804667795'
|
|
mode: single
|
|
triggers:
|
|
- id: start
|
|
trigger: template
|
|
value_template: '{{ states(''sensor.thsalon_temperature'') | float(0) > (states(''input_number.klima_salon_temp_docelowa'') | float(0) + states(''input_number.klima_salon_tolerancja'') | float(0)) }}'
|
|
- event: sunrise
|
|
id: start
|
|
offset: 0
|
|
trigger: sun
|
|
- entity_id: input_boolean.klima_salon_auto
|
|
id: start
|
|
to: 'on'
|
|
trigger: state
|
|
- above: sensor.thsalon_temperature
|
|
entity_id: sensor.thtuyabalkon_temperature
|
|
id: start
|
|
trigger: numeric_state
|
|
- entity_id: script.klima_salon_dry_off
|
|
id: start
|
|
to: 'off'
|
|
trigger: state
|
|
- entity_id: input_number.klima_salon_temp_docelowa
|
|
id: sync
|
|
trigger: state
|