ma ham/light/groups: init

This commit is contained in:
makefu 2020-11-18 23:57:59 +01:00
parent c20d3cb51c
commit 7117223d68
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 47 additions and 0 deletions

View File

@ -18,10 +18,16 @@ in {
./multi/kurzzeitwecker.nix ./multi/kurzzeitwecker.nix
./multi/the_playlist.nix ./multi/the_playlist.nix
./multi/fliegen-couter.nix ./multi/fliegen-couter.nix
./device_tracker/openwrt.nix ./device_tracker/openwrt.nix
./sensor/outside.nix ./sensor/outside.nix
./calendar/nextcloud.nix ./calendar/nextcloud.nix
./automation/firetv_restart.nix ./automation/firetv_restart.nix
./light/groups.nix
]; ];
services.home-assistant = { services.home-assistant = {

View File

@ -0,0 +1,41 @@
let
arbeitszimmer_licht = [
"light.led_wand"
"light.arbeitszimmer_led1_led_strip" # LED-Kreis in cube
"light.arbeitszimmer_flur_osram_light"
"light.arbeitszimmer_schrank_dimmer_light"
"light.arbeitszimmer_schrank_osram_light"
];
wohnzimmer_licht = [
"light.wohnzimmer_fernseher_led_strip" # led um fernseher
"light.wohnzimmer_komode_osram_light"
"light.wohnzimmer_schrank_osram_light"
"light.wohnzimmer_stehlampe_osram_light"
];
schlafzimmer_licht = [
"schlafzimmer_komode_osram_light"
];
in {
services.home-assistant.config.light = [
{
platform = "group";
name = "Arbeitszimmer Lichter";
entities = arbeitszimmer_licht;
}
{
platform = "group";
name = "Wohnzimmer Lichter";
entities = wohnzimmer_licht;
}
{
platform = "group";
name = "Schlafzimmer Lichter";
entities = schlafzimmer_licht;
}
{
platform = "group";
name = "Alle Lichter";
entities = arbeitszimmer_licht ++ wohnzimmer_licht ++ schlafzimmer_licht;
}
];
}