summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/automation/fenster_auf.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-08-27 22:45:16 +0200
committermakefu <github@syntax-fehler.de>2021-08-27 22:45:16 +0200
commit2c9923264e318ad83ab9ceb4a13e47112dff0d4f (patch)
tree757d2841b57ec6792ab9959d0f00bb020dfc46fa /makefu/2configs/home/ham/automation/fenster_auf.nix
parent57bf42286dba8b20cfdc02e28b4dc4a0a9291765 (diff)
ma ham: add keller button logic
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")