qwerthon
(qwerthon)
29 Styczeń 2025 08:19
1
Cześć potrzebuję pomocy w przerobiebiu automatyzacji do sterowania CO w mieszkaniu. Chce dodać zmienna temperatury w poniższym kodzie aby temperatura nie była na sztywno 22°C tylko chce ją ustawiać na dashbord za pomocą suwaka input_number.temperatura. Automatyzacja wygląda teraz tak
alias: CO ON
description: ""
triggers:
- type: temperature
device_id: f2bcdc123bf3d0db81933c0278eb9b1c
entity_id: 17e483f600ef92934515356a10678dc6
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 4c540d170dde145d7c1a33a807f3fb83
entity_id: 248e3d5bbdecadc0980f4de113fb71a5
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 23
trigger: device
- type: temperature
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 23
trigger: device
- entity_id:
- input_boolean.co
to: "on"
from: "off"
trigger: state
conditions:
- condition: state
entity_id: input_boolean.co
state: "on"
actions:
- parallel:
- if:
- type: is_temperature
condition: device
device_id: f2bcdc123bf3d0db81933c0278eb9b1c
entity_id: 17e483f600ef92934515356a10678dc6
domain: sensor
below: 22
then:
- device_id: 7bdcf98e693e2026a597c07cf140deaa
domain: climate
entity_id: e96c14e96280327b13cda371cf81da1b
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 4c540d170dde145d7c1a33a807f3fb83
entity_id: 248e3d5bbdecadc0980f4de113fb71a5
domain: sensor
below: 22
then:
- device_id: e34d73dc83e2578f0370e8d1e3c836fa
domain: climate
entity_id: f9369490ea66b9a54742e027595cfbf3
type: set_hvac_mode
hvac_mode: heat
- device_id: 9b095e310dbeb7fba17c03fe11cf65bd
domain: climate
entity_id: 0dd083d639da52a8ef406bcd73f7c27d
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 22
then:
- device_id: b8d69fcd8d9729c3b478ae403cca375d
domain: climate
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 22
then:
- device_id: aeeba31fa645e3ca6d1a890e72048fee
domain: climate
entity_id: 2c59c3f20c1e56084f20bc663382a247
type: set_hvac_mode
hvac_mode: heat
- if:
- condition: or
conditions:
- type: is_temperature
condition: device
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 23
- type: is_temperature
condition: device
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 23
then:
- type: turn_on
device_id: 1d320aa09c2468a1bd8753a7845f420c
entity_id: d3d1c4c4f7436604f120393716d566d0
domain: switch
mode: single
qwerthon
(qwerthon)
29 Styczeń 2025 09:05
3
Wybacz już poprawiam
alias: CO ON
description: ""
triggers:
- type: temperature
device_id: f2bcdc123bf3d0db81933c0278eb9b1c
entity_id: 17e483f600ef92934515356a10678dc6
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 4c540d170dde145d7c1a33a807f3fb83
entity_id: 248e3d5bbdecadc0980f4de113fb71a5
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 22
trigger: device
- type: temperature
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 23
trigger: device
- type: temperature
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 23
trigger: device
- entity_id:
- input_boolean.co
to: "on"
from: "off"
trigger: state
conditions:
- condition: state
entity_id: input_boolean.co
state: "on"
actions:
- parallel:
- if:
- type: is_temperature
condition: device
device_id: f2bcdc123bf3d0db81933c0278eb9b1c
entity_id: 17e483f600ef92934515356a10678dc6
domain: sensor
below: 22
then:
- device_id: 7bdcf98e693e2026a597c07cf140deaa
domain: climate
entity_id: e96c14e96280327b13cda371cf81da1b
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 4c540d170dde145d7c1a33a807f3fb83
entity_id: 248e3d5bbdecadc0980f4de113fb71a5
domain: sensor
below: 22
then:
- device_id: e34d73dc83e2578f0370e8d1e3c836fa
domain: climate
entity_id: f9369490ea66b9a54742e027595cfbf3
type: set_hvac_mode
hvac_mode: heat
- device_id: 9b095e310dbeb7fba17c03fe11cf65bd
domain: climate
entity_id: 0dd083d639da52a8ef406bcd73f7c27d
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 22
then:
- device_id: b8d69fcd8d9729c3b478ae403cca375d
domain: climate
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
type: set_hvac_mode
hvac_mode: heat
- if:
- type: is_temperature
condition: device
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 22
then:
- device_id: aeeba31fa645e3ca6d1a890e72048fee
domain: climate
entity_id: 2c59c3f20c1e56084f20bc663382a247
type: set_hvac_mode
hvac_mode: heat
- if:
- condition: or
conditions:
- type: is_temperature
condition: device
device_id: 2e2d170371693c9fb39a949964971835
entity_id: b89ac64c66b28ed2008eb0bacc9459c2
domain: sensor
below: 23
- type: is_temperature
condition: device
device_id: 194bb2f1140ff85861f6f6cfcd1dd254
entity_id: ac5fa45d33b021fdbf14bd9f6d6580ae
domain: sensor
below: 23
then:
- type: turn_on
device_id: 1d320aa09c2468a1bd8753a7845f420c
entity_id: d3d1c4c4f7436604f120393716d566d0
domain: switch
mode: single
Ile byś tych suwaków chciał mieć , do każdego pomieszczenia inny czy jeden nastaw temperatury na całe mieszkanie ?, a tak na marginesie to w nocy tak samo i w dzień tak samo ?
qwerthon
(qwerthon)
29 Styczeń 2025 12:32
5
Jeden suwak na cale mieszkanie i temperatura tak samo w dzien i tak samo w nocy. Wazne aby odczyt temperatury byl z czujnika temperatury a nie z glowicy temostatycznej i zeby amplituda byla 1 stopien czyli np jak mam suwak na 22 to po osiagnieciu 21 stopni wlacza sie glowica a jak osiagnie 23 to sie wylacza.
Jaka ilość termostatów ? . Rozumiem że do każdego termostatu osobny czujnik temperatury. Założenie takie że gdy wszystkie termostaty w stanie off to switch od pieca też off ?
qwerthon
(qwerthon)
29 Styczeń 2025 15:48
7
1 termostat i glowica kuchnia
1 termostat i glowica łazienka
1 termostat i 2 głowice salon
1 termostat i glowica sypialnia
Założenie switcha jest aby wylaczyc wszystkie glowice jednym kliknieciem i zeby się nie wlaczaly kiedy jest w pozycji off. Pieca nie ma.
Dodatkowo jest zawor zalozony na linię podłogówki i chce zeby się zamyklał gdy kuchnia lub lazienka ma tenperature powyzej ustawionej na suwaku
Stwórz pomocnika input_number
o nazwie np: globalna temperatura - to będzie Twój “suwak” do ustawiania temp.
input_number:
globalna_temperatura:
name: Zadana temperatura
min: 15
max: 25
step: 0.5
unit_of_measurement: "°C"
Później automatyzacja
alias: Sterowanie Termostatami
description: >-
Automatyczne sterowanie grzejnikami z uwzględnieniem histerezy ±1°C i
wyłączeniem termostatów, gdy temperatura przekroczy zadaną
trigger:
- value_template: >
{{ states('sensor.kuchnia_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('sensor.lazienka_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('sensor.salon_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('sensor.sypialnia_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('sensor.kuchnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('sensor.lazienka_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('sensor.salon_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('sensor.sypialnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
condition:
- condition: state
entity_id: input_boolean.ogrzewanie_wlaczone
state: "on" # Automatyzacja działa tylko, gdy ogrzewanie jest włączone
action:
- parallel:
- if:
- condition: template
value_template: >
{{ states('sensor.kuchnia_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: climate.termostat_kuchnia
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.lazienka_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: climate.termostat_lazienka
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.salon_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id:
- climate.termostat_salon
- climate.termostat_salon2
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.sypialnia_temperatura') | float < (states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: climate.termostat_sypialnia
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.kuchnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: climate.termostat_kuchnia
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.lazienka_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: climate.termostat_lazienka
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.salon_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id:
- climate.termostat_salon
- climate.termostat_salon2
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.sypialnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: climate.termostat_sypialnia
data:
hvac_mode: "off"
action: climate.set_hvac_mode
mode: parallel
max: 10
Podpasuj nazwy sensorów temperatury i climate pod siebie, następnie 2 automatyzacja wł/wył zawór.
alias: Sterowanie zaworem podłogówki
description: "Włączanie i wyłączanie zaworu podłogówki w zależności od temperatury w kuchni i łazience"
mode: single
trigger:
- platform: template
value_template: >
{{ states('sensor.kuchnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
- platform: template
value_template: >
{{ states('sensor.lazienka_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
- platform: template
value_template: >
{{ states('sensor.kuchnia_temperatura') | float < (states('input_number.globalna_temperatura') | float) }}
- platform: template
value_template: >
{{ states('lazienka_temperatura') | float < (states('input_number.globalna_temperatura') | float) }}
action:
- choose:
- conditions:
- condition: template
value_template: >
{{ states('sensor.kuchnia_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
sequence:
- service: switch.turn_off
target:
entity_id: d3d1c4c4f7436604f120393716d566d0
- conditions:
- condition: template
value_template: >
{{ states('lazienka_temperatura') | float > (states('input_number.globalna_temperatura') | float + 1) }}
sequence:
- service: switch.turn_off
target:
entity_id: d3d1c4c4f7436604f120393716d566d0
- conditions:
- condition: template
value_template: >
{{ states('sensor.kuchnia_temperature') | float < (states('input_number.globalna_temperatura') | float) }}
sequence:
- service: switch.turn_on
target:
entity_id: d3d1c4c4f7436604f120393716d566d0
- conditions:
- condition: template
value_template: >
{{ states('lazienka_temperatura') | float < (states('input_number.globalna_temperatura') | float) }}
sequence:
- service: switch.turn_on
target:
entity_id: d3d1c4c4f7436604f120393716d566d0
Podrób pod siebie ,powinno działąć, choć myślę że nie jest dobrym pomysłem włączanie i wyłączanie podłogówki…
Edit … I jeszcze jedna osobna automatyzacja która wyłącza wszystkie termostaty na off
alias: Wyłącz Termostaty gdy CO jest off
description: "Automatycznie wyłącza wszystkie termostaty, gdy input_boolean.co jest ustawione na off"
trigger:
- platform: state
entity_id: input_boolean.co
to: "off"
action:
- service: climate.set_hvac_mode
target:
entity_id:
- climate.termostat_kuchnia
- climate.termostat_lazienka
- climate.termostat_salon
- climate.termostat_salon2
- climate.termostat_sypialnia
data:
hvac_mode: "off"
mode: single
qwerthon
(qwerthon)
29 Styczeń 2025 19:14
9
Niestety podstawiłem i coś nie działa, tak wygląda po podstawieniu
alias: Sterowanie Termostatami
description: >-
Automatyczne sterowanie grzejnikami z uwzględnieniem histerezy ±1°C i
wyłączeniem termostatów, gdy temperatura przekroczy zadaną
triggers:
- value_template: >
{{ states('sypialnia_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('salon_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('kuchnia_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('łazienka_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
trigger: template
- value_template: >
{{ states('sypialnia_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('salon_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('kuchnia_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
- value_template: >
{{ states('łazienka_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
trigger: template
conditions:
- condition: state
entity_id: input_boolean.co
state: "on"
enabled: true
actions:
- parallel:
- if:
- condition: template
value_template: >
{{ states('sypialnia_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: e96c14e96280327b13cda371cf81da1b
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('łazienka_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: 2c59c3f20c1e56084f20bc663382a247
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('salon_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id:
- f9369490ea66b9a54742e027595cfbf3
- 0dd083d639da52a8ef406bcd73f7c27d
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sypialnia_termostat_temperature') | float <
(states('input_number.globalna_temperatura') | float - 1) }}
then:
- target:
entity_id: e96c14e96280327b13cda371cf81da1b
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('kuchnia_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('łazienka_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: 2c59c3f20c1e56084f20bc663382a247
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('salon_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id:
- f9369490ea66b9a54742e027595cfbf3
- 0dd083d639da52a8ef406bcd73f7c27d
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('kuchnia_termostat_temperature') | float >
(states('input_number.globalna_temperatura') | float + 1) }}
then:
- target:
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- target:
entity_id:
- e96c14e96280327b13cda371cf81da1b
- 0dd083d639da52a8ef406bcd73f7c27d
- f9369490ea66b9a54742e027595cfbf3
- 09459c59b3f8ec37aba37b066ec45a4b
- 2c59c3f20c1e56084f20bc663382a247
data:
hvac_mode: "off"
action: climate.set_hvac_mode
mode: parallel
max: 10
Problem chyba jest z termostatami
Racja ,nie zwracało wartości poprawnie.Wymień kawałek kodu od actions i sprawdz czy przechodzi poprawnie przez wyzwalacze, jeśli nie to w wyzwalaczach zamiast float
zrób też float(0)
actions:
- parallel:
- if:
- condition: template
value_template: >
{{ states('sypialnia_termostat_temperature') | float(0) <
(states('input_number.globalna_temperatura') | float(0) - 1) }}
then:
- target:
entity_id: e96c14e96280327b13cda371cf81da1b
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('łazienka_termostat_temperature') | float(0) <
(states('input_number.globalna_temperatura') | float(0) - 1) }}
then:
- target:
entity_id: 2c59c3f20c1e56084f20bc663382a247
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('salon_termostat_temperature') | float(0) <
(states('input_number.globalna_temperatura') | float(0) - 1) }}
then:
- target:
entity_id:
- f9369490ea66b9a54742e027595cfbf3
- 0dd083d639da52a8ef406bcd73f7c27d
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sypialnia_termostat_temperature') | float(0) <
(states('input_number.globalna_temperatura') | float(0) - 1) }}
then:
- target:
entity_id: e96c14e96280327b13cda371cf81da1b
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('kuchnia_termostat_temperature') | float(0) >
(states('input_number.globalna_temperatura') | float(0) + 1) }}
then:
- target:
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('łazienka_termostat_temperature') | float(0) >
(states('input_number.globalna_temperatura') | float(0) + 1) }}
then:
- target:
entity_id: 2c59c3f20c1e56084f20bc663382a247
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('salon_termostat_temperature') | float(0) >
(states('input_number.globalna_temperatura') | float(0) + 1) }}
then:
- target:
entity_id:
- f9369490ea66b9a54742e027595cfbf3
- 0dd083d639da52a8ef406bcd73f7c27d
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('kuchnia_termostat_temperature') | float(0) >
(states('input_number.globalna_temperatura') | float(0) + 1) }}
then:
- target:
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
data:
hvac_mode: "off"
action: climate.set_hvac_mode
mode: parallel
max: 10
qwerthon
(qwerthon)
30 Styczeń 2025 15:37
12
Cześć
Na początku chciałbym podziękować za poświecony czas. Zrobilem jak zaleciłeś jednakże w dalszym ciągu te szablony nie dzialają…
Jaki masz identyfikator encji na przykład sensora w kuchnii ?. Podaj całą nazwe .Bo z tego co widzę to nie powinno być tak kuchnia_termostat_temperature
tylko tak sensor.kuchnia_termostat_temperature
. A jeśli mam racje to wszędzie to pozmieniaj…Mi działa jakby co.
qwerthon
(qwerthon)
31 Styczeń 2025 03:40
14
Miałeś rację, problem był w nazwie sensorów ale także w nazwie suwaka. Poprawiłem i działa super. Teraz wygląda to tak
alias: CO
description: >-
Automatyczne sterowanie grzejnikami z uwzględnieniem histerezy ±1°C i
wyłączeniem termostatów, gdy temperatura przekroczy zadaną
triggers:
- value_template: >
{{ states('sensor.sypialnia_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.salon_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.kuchnia_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.lazienka_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.sypialnia_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.salon_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.kuchnia_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
trigger: template
enabled: true
- value_template: >
{{ states('sensor.lazienka_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
trigger: template
enabled: true
- trigger: state
entity_id:
- input_boolean.co
from: null
to: null
conditions: []
actions:
- if:
- condition: state
entity_id: input_boolean.co
state: "on"
then:
- parallel:
- if:
- condition: template
value_template: >
{{ states('sensor.sypialnia_termostat_temperature') | float(0)
< (states('input_number.temperatura') | float(0) - 1) }}
then:
- target:
device_id: 7bdcf98e693e2026a597c07cf140deaa
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.salon_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
then:
- target:
device_id:
- e34d73dc83e2578f0370e8d1e3c836fa
- 9b095e310dbeb7fba17c03fe11cf65bd
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.kuchnia_termostat_temperature') | float(0) <
(states('input_number.temperatura') | float(0) - 1) }}
then:
- data:
hvac_mode: heat
action: climate.set_hvac_mode
target:
device_id: b8d69fcd8d9729c3b478ae403cca375d
- if:
- condition: template
value_template: >
{{ states('sensor.lazienka_termostat_temperature') | float(0)
< (states('input_number.temperatura') | float(0) - 1) }}
then:
- target:
device_id: aeeba31fa645e3ca6d1a890e72048fee
data:
hvac_mode: heat
action: climate.set_hvac_mode
- if:
- condition: template
value_template: >
{{ states('sensor.sypialnia_termostat_temperature') | float(0)
> (states('input_number.temperatura') | float(0) + 1) }}
then:
- data:
hvac_mode: "off"
action: climate.set_hvac_mode
target:
device_id: 7bdcf98e693e2026a597c07cf140deaa
- if:
- condition: template
value_template: >
{{ states('sensor.salon_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
then:
- data:
hvac_mode: "off"
action: climate.set_hvac_mode
target:
device_id:
- e34d73dc83e2578f0370e8d1e3c836fa
- 9b095e310dbeb7fba17c03fe11cf65bd
- if:
- condition: template
value_template: >
{{ states('sensor.kuchnia_termostat_temperature') | float(0) >
(states('input_number.temperatura') | float(0) + 1) }}
then:
- data:
hvac_mode: "off"
action: climate.set_hvac_mode
target:
device_id: b8d69fcd8d9729c3b478ae403cca375d
- if:
- condition: template
value_template: >
{{ states('sensor.lazienka_termostat_temperature') | float(0)
> (states('input_number.temperatura') | float(0) + 1) }}
then:
- target:
device_id: aeeba31fa645e3ca6d1a890e72048fee
data:
hvac_mode: "off"
action: climate.set_hvac_mode
- if:
- condition: or
conditions:
- condition: template
value_template: >+
{{ states('sensor.lazienka_termostat_temperature') |
float(0) < (states('input_number.temperatura') | float(0)
- 1) }}
- condition: template
value_template: >+
{{ states('sensor.kuchnia_termostat_temperature') |
float(0) < (states('input_number.temperatura') | float(0)
- 1) }}
then:
- type: turn_on
device_id: 1d320aa09c2468a1bd8753a7845f420c
entity_id: d3d1c4c4f7436604f120393716d566d0
domain: switch
- if:
- condition: or
conditions:
- condition: template
value_template: >-
{{ states('sensor.lazienka_termostat_temperature') |
float(0) > (states('input_number.temperatura') | float(0)
+ 1) }}
- condition: template
value_template: >
{{ states('sensor.kuchnia_termostat_temperature') |
float(0) > (states('input_number.temperatura') | float(0)
+ 1) }}
then:
- type: turn_off
device_id: 1d320aa09c2468a1bd8753a7845f420c
entity_id: d3d1c4c4f7436604f120393716d566d0
domain: switch
- if:
- condition: state
entity_id: input_boolean.co
state: "off"
then:
- parallel:
- device_id: 7bdcf98e693e2026a597c07cf140deaa
domain: climate
entity_id: e96c14e96280327b13cda371cf81da1b
type: set_hvac_mode
hvac_mode: "off"
- device_id: e34d73dc83e2578f0370e8d1e3c836fa
domain: climate
entity_id: f9369490ea66b9a54742e027595cfbf3
type: set_hvac_mode
hvac_mode: "off"
- device_id: 9b095e310dbeb7fba17c03fe11cf65bd
domain: climate
entity_id: 0dd083d639da52a8ef406bcd73f7c27d
type: set_hvac_mode
hvac_mode: "off"
- device_id: b8d69fcd8d9729c3b478ae403cca375d
domain: climate
entity_id: 09459c59b3f8ec37aba37b066ec45a4b
type: set_hvac_mode
hvac_mode: "off"
- device_id: aeeba31fa645e3ca6d1a890e72048fee
domain: climate
entity_id: 2c59c3f20c1e56084f20bc663382a247
type: set_hvac_mode
hvac_mode: "off"
- type: turn_off
device_id: 1d320aa09c2468a1bd8753a7845f420c
entity_id: d3d1c4c4f7436604f120393716d566d0
domain: switch
mode: parallel
max: 10
Dziekuję za pomoc!
2 polubienia