2020-12-30 10:02:21 +00:00
|
|
|
let
|
|
|
|
wohnzimmerbeleuchtung = [
|
|
|
|
"light.wohnzimmer_komode_osram_light"
|
|
|
|
"light.wohnzimmer_schrank_osram_light"
|
|
|
|
];
|
|
|
|
wohnzimmer_deko = [
|
|
|
|
"light.wohnzimmer_fernseher_led_strip" # led um fernseher
|
|
|
|
"light.wohnzimmer_lichterkette_led_strip" # led um fernsehwand
|
2023-06-03 13:27:46 +00:00
|
|
|
"light.wohnzimmer_fenster_lichterkette_licht" # led um fenster
|
2020-12-30 10:02:21 +00:00
|
|
|
];
|
|
|
|
in {
|
2022-01-20 22:48:09 +00:00
|
|
|
imports = [ ./tint_wohnzimmer.nix ];
|
2023-06-03 13:27:46 +00:00
|
|
|
services.home-assistant.config.scene = [
|
|
|
|
{ name = "Wohnzimmer Abendlicht";
|
|
|
|
id = "living_room_evening";
|
|
|
|
entities = {
|
|
|
|
"light.wohnzimmer_komode_osram_light" = {
|
|
|
|
state = "on";
|
|
|
|
brightness = 128;
|
|
|
|
};
|
|
|
|
"light.wohnzimmer_schrank_osram_light" = {
|
|
|
|
state = "on";
|
|
|
|
brightness = 128;
|
|
|
|
};
|
|
|
|
"light.wohnzimmer_fenster_lichterkette_licht" = "on";
|
|
|
|
"light.wohnzimmer_fernseher_led_strip" = {
|
|
|
|
state = "on";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
];
|
2022-01-20 22:48:09 +00:00
|
|
|
services.home-assistant.config.wled = {};
|
2020-12-30 10:02:21 +00:00
|
|
|
services.home-assistant.config.light = [
|
|
|
|
{
|
|
|
|
platform = "group";
|
|
|
|
name = "Wohnzimmerbeleuchtung";
|
|
|
|
entities = wohnzimmerbeleuchtung;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
platform = "group";
|
|
|
|
name = "Wohnzimmer Deko";
|
|
|
|
entities = wohnzimmer_deko;
|
|
|
|
}
|
2023-06-03 13:27:46 +00:00
|
|
|
{
|
|
|
|
platform = "group";
|
|
|
|
name = "living_room_lights";
|
|
|
|
entities = wohnzimmerbeleuchtung ++ wohnzimmer_deko;
|
|
|
|
}
|
2020-12-30 10:02:21 +00:00
|
|
|
];
|
|
|
|
}
|
2022-01-20 22:48:09 +00:00
|
|
|
|
|
|
|
# trigger.to_state.attributes.action_group:
|
|
|
|
# 1: 18388
|
|
|
|
# 2: 18389
|
|
|
|
# 3: 18390
|