ma ham: add heizung
This commit is contained in:
parent
ae39dfcefe
commit
217dffa8ef
@ -88,7 +88,7 @@ in {
|
|||||||
duschfenster_lang_offen.name = "Duschfenster lange offen";
|
duschfenster_lang_offen.name = "Duschfenster lange offen";
|
||||||
ist_sommer = {
|
ist_sommer = {
|
||||||
name = "Es ist Sommer";
|
name = "Es ist Sommer";
|
||||||
initial = true; # TODO
|
initial = false; # TODO
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@ in {
|
|||||||
{ service = "media_player.media_stop";
|
{ service = "media_player.media_stop";
|
||||||
target.entity_id = all_media_player;
|
target.entity_id = all_media_player;
|
||||||
}
|
}
|
||||||
|
{ service = "script.turn_on";
|
||||||
|
target.entity_id = "script.alle_heizungen_aus";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -18,6 +18,7 @@ in {
|
|||||||
# ./multi/flurlicht.nix
|
# ./multi/flurlicht.nix
|
||||||
./multi/kurzzeitwecker.nix
|
./multi/kurzzeitwecker.nix
|
||||||
./multi/the_playlist.nix
|
./multi/the_playlist.nix
|
||||||
|
./multi/heizung.nix
|
||||||
# ./multi/fliegen-couter.nix
|
# ./multi/fliegen-couter.nix
|
||||||
|
|
||||||
./device_tracker/openwrt.nix
|
./device_tracker/openwrt.nix
|
||||||
@ -192,5 +193,10 @@ in {
|
|||||||
configDir = hassdir;
|
configDir = hassdir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
krebs.secret.files."hass-secrets" = {
|
||||||
|
source-path = toString <secrets> + "/hass/secrets.yaml";
|
||||||
|
path = "/var/lib/hass/secrets.yaml";
|
||||||
|
owner.name = "hass";
|
||||||
|
};
|
||||||
state = [ "/var/lib/hass/known_devices.yaml" ];
|
state = [ "/var/lib/hass/known_devices.yaml" ];
|
||||||
}
|
}
|
||||||
|
11
makefu/2configs/home/ham/multi/heizung.nix
Normal file
11
makefu/2configs/home/ham/multi/heizung.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
services.home-assistant.config =
|
||||||
|
{
|
||||||
|
# 18 Grad
|
||||||
|
script.alle_heizungen_aus.sequence = [{
|
||||||
|
service = "climate.set_temperature";
|
||||||
|
target.entity_id = [ "climate.wohnzimmer_heizung" ];
|
||||||
|
data.temperature = "18.0";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
@ -4,5 +4,7 @@
|
|||||||
{ platform = "dwd_weather_warnings";
|
{ platform = "dwd_weather_warnings";
|
||||||
region_name = "Stadt Stuttgart";
|
region_name = "Stadt Stuttgart";
|
||||||
}
|
}
|
||||||
|
{ platform = "nina";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
services.home-assistant.config.sensor =
|
services.home-assistant.config.sensor =
|
||||||
[
|
[
|
||||||
{ platform = "darksky";
|
{ platform = "darksky";
|
||||||
api_key = lib.removeSuffix "\n"
|
api_key = "!secret darksky";
|
||||||
(builtins.readFile <secrets/hass/darksky.apikey>);
|
|
||||||
language = "de";
|
language = "de";
|
||||||
monitored_conditions = [
|
monitored_conditions = [
|
||||||
"summary" "icon"
|
"summary" "icon"
|
||||||
@ -21,5 +20,11 @@
|
|||||||
units = "si" ;
|
units = "si" ;
|
||||||
scan_interval = "00:30:00";
|
scan_interval = "00:30:00";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
platform = "open_meteo";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
platform = "met";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user