home-assistant: a bit of cleanup

This commit is contained in:
Ingolf Wagner 2020-05-01 03:36:51 +02:00
parent 5d946306a2
commit 8fb2b628a0
Signed by: palo
GPG key ID: 76BF5F1928B9618B
3 changed files with 4 additions and 11 deletions

View file

@ -101,6 +101,7 @@ in {
entity_id = "group.${presentsGroup}";
from = "on";
to = "off";
for.seconds = 2 * 60;
};
condition = {
condition = "state";

View file

@ -8,9 +8,9 @@ let
groups = [ "all_lights" "bed_room_lights" "bed_room" ];
};
"pal02" = {
label = "Wohnzimmer Lampe";
label = "Nummer 2";
icon = "mdi:lightbulb";
groups = [ "all_lights" "living_room_lights" "living_room" ];
# groups = [ ];
};
"pal03" = {
label = "Wohnzimmer Lampe";

View file

@ -7,49 +7,41 @@ let
"motion_sensor_1" = {
id = "0x00158d0002fbd451";
groups = [ "kitchen_room" "kitchen_room_present" ];
timeout = 60 * 2;
};
"motion_sensor_2" = {
id = "0x00158d0002f9a6b8";
groups = [ "kitchen_room" "kitchen_room_present" ];
timeout = 60 * 2;
};
"motion_sensor_3" = {
id = "0x00158d0002f04522";
groups = [ "living_room" "living_room_present" ];
timeout = 60 * 3;
};
"motion_sensor_4" = {
id = "0x00158d0002f9a558";
groups = [ "living_room" "living_room_present" ];
timeout = 60 * 3;
};
"motion_sensor_5" = {
id = "0x00158d0002f9a56f";
groups = [ "bath_room" "bath_room_present" ];
timeout = 60 * 3;
};
"motion_sensor_6" = {
id = "0x00158d0002f9a5cb";
groups = [ "floor_room" "floor_room_present" ];
timeout = 60 * 2;
};
"motion_sensor_7" = {
id = "0x00158d0002f9a6aa";
groups = [ "bed_room" "bed_room_present" ];
timeout = 60 * 1.2;
};
"motion_sensor_8" = {
id = "0x00158d0002f04637";
groups = [ "bath_room" "bath_room_present" ];
timeout = 60 * 3;
};
};
in {
services.zigbee2mqtt.devices = lib.mapAttrs' (name:
{ id, timeout ? 90, ... }: {
{ id, timeout ? 65, ... }: {
name = id;
value = {
retain = false;