Fix humidity control
This commit is contained in:
parent
b0be9bdda6
commit
5426a03796
1 changed files with 26 additions and 26 deletions
|
@ -125,7 +125,7 @@ in {
|
||||||
{
|
{
|
||||||
alias = "Entfeuchtersteuerung Schlafzimmer";
|
alias = "Entfeuchtersteuerung Schlafzimmer";
|
||||||
trigger = [
|
trigger = [
|
||||||
(triggers.stateTrigger "sensor.670dcb_bme280_humidity")
|
(triggers.stateTrigger "sensor.670dcb_bme280_relative_humidity")
|
||||||
(triggers.stateTrigger "binary_sensor.schlafzimmerfenster")
|
(triggers.stateTrigger "binary_sensor.schlafzimmerfenster")
|
||||||
];
|
];
|
||||||
action = [
|
action = [
|
||||||
|
@ -138,7 +138,7 @@ in {
|
||||||
conditions = [
|
conditions = [
|
||||||
{
|
{
|
||||||
condition = "numeric_state";
|
condition = "numeric_state";
|
||||||
entity_id = "sensor.670dcb_bme280_humidity";
|
entity_id = "sensor.670dcb_bme280_relative_humidity";
|
||||||
below = humidity_threshold.schlafzimmer.lower;
|
below = humidity_threshold.schlafzimmer.lower;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -158,7 +158,7 @@ in {
|
||||||
conditions = [
|
conditions = [
|
||||||
{
|
{
|
||||||
condition = "numeric_state";
|
condition = "numeric_state";
|
||||||
entity_id = "sensor.670dcb_bme280_humidity";
|
entity_id = "sensor.670dcb_bme280_relative_humidity";
|
||||||
above = humidity_threshold.schlafzimmer.upper;
|
above = humidity_threshold.schlafzimmer.upper;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -173,7 +173,7 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
alias = "Lüftungssteuerung Bad";
|
alias = "Lüftungssteuerung Bad";
|
||||||
trigger = [(triggers.stateTrigger "sensor.670dbe_bme280_humidity")];
|
trigger = [(triggers.stateTrigger "sensor.670dbe_bme280_relative_humidity")];
|
||||||
action = [
|
action = [
|
||||||
{
|
{
|
||||||
choose = [
|
choose = [
|
||||||
|
@ -181,7 +181,7 @@ in {
|
||||||
conditions = [
|
conditions = [
|
||||||
{
|
{
|
||||||
condition = "numeric_state";
|
condition = "numeric_state";
|
||||||
entity_id = "sensor.670dbe_bme280_humidity";
|
entity_id = "sensor.670dbe_bme280_relative_humidity";
|
||||||
above = humidity_threshold.bad.upper;
|
above = humidity_threshold.bad.upper;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -194,7 +194,7 @@ in {
|
||||||
conditions = [
|
conditions = [
|
||||||
{
|
{
|
||||||
condition = "numeric_state";
|
condition = "numeric_state";
|
||||||
entity_id = "sensor.670dbe_bme280_humidity";
|
entity_id = "sensor.670dbe_bme280_relative_humidity";
|
||||||
below = humidity_threshold.bad.lower;
|
below = humidity_threshold.bad.lower;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -378,26 +378,26 @@ in {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ (map
|
++ (map
|
||||||
(minutes: {
|
(minutes: {
|
||||||
alias = "Warnung bei ${minutes} Minuten offenem Fenster oder offener Tür";
|
alias = "Warnung bei ${minutes} Minuten offenem Fenster oder offener Tür";
|
||||||
trigger =
|
trigger =
|
||||||
map
|
map
|
||||||
(name:
|
(name:
|
||||||
triggers.stateTrigger name
|
triggers.stateTrigger name
|
||||||
// {
|
// {
|
||||||
to = "on";
|
to = "on";
|
||||||
for = "00:${minutes}:00";
|
for = "00:${minutes}:00";
|
||||||
})
|
})
|
||||||
fenster;
|
fenster;
|
||||||
#condition = {
|
#condition = {
|
||||||
# condition = "numeric_state";
|
# condition = "numeric_state";
|
||||||
# entity_id = "weather.dwd_darmstadt";
|
# entity_id = "weather.dwd_darmstadt";
|
||||||
# attribute = "temperature";
|
# attribute = "temperature";
|
||||||
# below = 15;
|
# below = 15;
|
||||||
#};
|
#};
|
||||||
action = [(actions.notify "{{ trigger.to_state.name }} ist seit mehr als ${minutes} Minuten offen.")];
|
action = [(actions.notify "{{ trigger.to_state.name }} ist seit mehr als ${minutes} Minuten offen.")];
|
||||||
})
|
})
|
||||||
(map toString [10 20 30 40 50 60]));
|
(map toString [10 20 30 40 50 60]));
|
||||||
history = {};
|
history = {};
|
||||||
image = {};
|
image = {};
|
||||||
sun = {};
|
sun = {};
|
||||||
|
|
Loading…
Reference in a new issue