summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/automation/fenster_auf.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/home/ham/automation/fenster_auf.nix')
-rw-r--r--makefu/2configs/home/ham/automation/fenster_auf.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/home/ham/automation/fenster_auf.nix b/makefu/2configs/home/ham/automation/fenster_auf.nix
index b24f6445d..fa2052be8 100644
--- a/makefu/2configs/home/ham/automation/fenster_auf.nix
+++ b/makefu/2configs/home/ham/automation/fenster_auf.nix
@@ -15,6 +15,12 @@ let
for.minutes = min;
}
];
+ condition = [
+ { condition = "state";
+ entity_id = "input_boolean.ist_sommer";
+ state = "off";
+ }
+ ];
action =
[
{
@@ -61,10 +67,19 @@ let
};
in {
services.home-assistant.config = {
+ sensor = [
+ { platform = "season"; type = "meteorological";}
+ ];
+
input_boolean = {
badezimmerfenster_lang_offen.name = "Badezimmer lange offen";
duschfenster_lang_offen.name = "Duschfenster lange offen";
+ ist_sommer = {
+ name = "Es ist Sommer";
+ initial = true; # TODO
+ };
};
+
automation = [
(fenster_geschlossen_lang "Badezimmerfenster" "binary_sensor.badezimmer_fenster_contact")
(fenster_geschlossen_lang "Duschfenster" "binary_sensor.dusche_fenster_contact")