blob: 45fbfb57bf21f2246cc4b34aab78fe927a54aa27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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";
};
}
];
}
|