stockholm/makefu/2configs/home/ham/light/arbeitszimmer.nix

43 lines
1.0 KiB
Nix
Raw Normal View History

2020-12-30 10:02:21 +00:00
let
arbeitszimmer_deko = [
"light.led_wand"
"light.box_led_status"
"light.arbeitszimmer_led1_led_strip" # LED-Kreis in cube
];
arbeitszimmerbeleuchtung = [
"light.arbeitszimmer_schrank_dimmer"
2021-12-04 16:31:26 +00:00
"light.arbeitszimmer_kerze"
"light.arbeitszimmer_pflanzenlicht"
2020-12-30 10:02:21 +00:00
];
in {
services.home-assistant.config.light = [
{
platform = "group";
name = "Arbeitszimmerbeleuchtung";
entities = arbeitszimmerbeleuchtung;
}
{
platform = "group";
name = "Arbeitszimmer Deko";
entities = arbeitszimmer_deko;
}
2021-12-04 16:31:26 +00:00
{ 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";
};
}
2020-12-30 10:02:21 +00:00
];
}