stockholm/makefu/2configs/home/ham/light/arbeitszimmer.nix
2021-12-04 17:31:26 +01:00

43 lines
1.0 KiB
Nix

let
arbeitszimmer_deko = [
"light.led_wand"
"light.box_led_status"
"light.arbeitszimmer_led1_led_strip" # LED-Kreis in cube
];
arbeitszimmerbeleuchtung = [
"light.arbeitszimmer_schrank_dimmer"
"light.arbeitszimmer_kerze"
"light.arbeitszimmer_pflanzenlicht"
];
in {
services.home-assistant.config.light = [
{
platform = "group";
name = "Arbeitszimmerbeleuchtung";
entities = arbeitszimmerbeleuchtung;
}
{
platform = "group";
name = "Arbeitszimmer Deko";
entities = arbeitszimmer_deko;
}
{ platform = "switch";
name = "Arbeitszimmer Pflanzenlicht";
entity_id = "switch.arbeitszimmer_stecker1";
}
];
services.home-assistant.config.automation = [
{
alias = "Toggle Arbeitszimmerbeleuchtung via Remote";
trigger = {
platform = "state";
entity_id = "sensor.arbeitszimmer_remote1_action";
};
action = {
service = "light.toggle";
data.entity_id = "light.arbeitszimmerbeleuchtung";
};
}
];
}