pepe: add kitchen to hass again

This commit is contained in:
Ingolf Wagner 2020-04-16 03:20:18 +02:00
parent 4e38e47e8b
commit ddccee53cc
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -94,68 +94,20 @@ in {
]; ];
} }
]; ];
in lib.flatten (map roomPresents [ in lib.flatten (map roomPresents (lib.flatten (map (name: [
{ {
roomGroup = "kitchen_room_lights"; roomGroup = "${name}_lights";
presentsGroup = "kitchen_room_present"; presentsGroup = "${name}_present";
situation = "on"; situation = "on";
} }
{ {
roomGroup = "living_room_lights"; roomGroup = "${name}_essential";
presentsGroup = "living_room_present"; roomOffGroup = "${name}_lights";
situation = "on"; presentsGroup = "${name}_present";
}
{
roomGroup = "floor_room_lights";
presentsGroup = "floor_room_present";
situation = "on";
}
{
roomGroup = "bath_room_lights";
presentsGroup = "bath_room_present";
situation = "on";
}
{
roomGroup = "bed_room_lights";
presentsGroup = "bed_room_present";
situation = "on";
}
{
roomGroup = "kitchen_room_essentials";
roomOffGroup = "kitchen_room";
presentsGroup = "kitchen_room_present";
situation = "essential"; situation = "essential";
brightness = 30; brightness = 30;
} }
{ ]) [ "living_room" "floor_room" "bath_room" "bed_room" "kitchen_room" ]))) ++ [
roomGroup = "living_room_essential";
roomOffGroup = "living_room_lights";
presentsGroup = "living_room_present";
situation = "essential";
brightness = 30;
}
{
roomGroup = "floor_room_essential";
roomOffGroup = "floor_room_lights";
presentsGroup = "floor_room_present";
situation = "essential";
brightness = 30;
}
{
roomGroup = "bath_room_essential";
roomOffGroup = "bath_room_lights";
presentsGroup = "bath_room_present";
situation = "essential";
brightness = 30;
}
{
roomGroup = "bed_room_essential";
roomOffGroup = "bed_room_lights";
presentsGroup = "bed_room_present";
situation = "essential";
brightness = 30;
}
]) ++ [
{ {
alias = "set essential"; alias = "set essential";
trigger = { trigger = {