Skip to content

Commit

Permalink
Create new light groups for switches
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Dec 12, 2024
1 parent 2dc20fb commit ab0daf2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
11 changes: 3 additions & 8 deletions configuration/devices/headless/server/home-assistant/hue.nix
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,12 @@ in {
}
{
name = "entrance";
targetId = "light.group_entrance";
targetId = "light.group_switch_entrance";
switch = switches.entrance;
}
{
name = "kitchen";
targetId = "light.group_kitchen";
switch = switches.livingRoom;
}
{
name = "living room";
targetId = "light.group_living_room";
name = "kitchen and living room";
targetId = "light.group_switch_living_room";
switch = switches.livingRoom;
}
]);
Expand Down
28 changes: 27 additions & 1 deletion configuration/devices/headless/server/home-assistant/lights.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,38 @@
{
platform = "group";
name = "Group Living room";
entities = [ "light.living_room_signe_gradient_kitchen" "light.living_room_signe_gradient_window" "light.living_room_standing_lamp" ];
entities = [
"light.living_room_signe_gradient_kitchen"
"light.living_room_signe_gradient_window"
"light.living_room_standing_lamp"
"light.living_room_table_lamp"
];
}
{
platform = "group";
name = "Group Reduit";
entities = [ "light.reduit_closet_lights" ];
}

{
platform = "group";
name = "Group switch bedroom";
entities = [ "light.bedroom_standing_lamp" ];
}
{
platform = "group";
name = "Group switch entrance";
entities = [ "light.entrance_lamp" "light.entrance_sideboard_lamp" ];
}
{
platform = "group";
name = "Group switch living room";
entities = [
"light.kitchen_standing_lamp"
"light.living_room_signe_gradient_kitchen"
"light.living_room_standing_lamp"
"light.living_room_table_lamp"
];
}
];
}

0 comments on commit ab0daf2

Please sign in to comment.