home-assistant: a bit of cleanup
This commit is contained in:
parent
5d946306a2
commit
8fb2b628a0
3 changed files with 4 additions and 11 deletions
|
@ -101,6 +101,7 @@ in {
|
||||||
entity_id = "group.${presentsGroup}";
|
entity_id = "group.${presentsGroup}";
|
||||||
from = "on";
|
from = "on";
|
||||||
to = "off";
|
to = "off";
|
||||||
|
for.seconds = 2 * 60;
|
||||||
};
|
};
|
||||||
condition = {
|
condition = {
|
||||||
condition = "state";
|
condition = "state";
|
||||||
|
|
|
@ -8,9 +8,9 @@ let
|
||||||
groups = [ "all_lights" "bed_room_lights" "bed_room" ];
|
groups = [ "all_lights" "bed_room_lights" "bed_room" ];
|
||||||
};
|
};
|
||||||
"pal02" = {
|
"pal02" = {
|
||||||
label = "Wohnzimmer Lampe";
|
label = "Nummer 2";
|
||||||
icon = "mdi:lightbulb";
|
icon = "mdi:lightbulb";
|
||||||
groups = [ "all_lights" "living_room_lights" "living_room" ];
|
# groups = [ ];
|
||||||
};
|
};
|
||||||
"pal03" = {
|
"pal03" = {
|
||||||
label = "Wohnzimmer Lampe";
|
label = "Wohnzimmer Lampe";
|
||||||
|
|
|
@ -7,49 +7,41 @@ let
|
||||||
"motion_sensor_1" = {
|
"motion_sensor_1" = {
|
||||||
id = "0x00158d0002fbd451";
|
id = "0x00158d0002fbd451";
|
||||||
groups = [ "kitchen_room" "kitchen_room_present" ];
|
groups = [ "kitchen_room" "kitchen_room_present" ];
|
||||||
timeout = 60 * 2;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_2" = {
|
"motion_sensor_2" = {
|
||||||
id = "0x00158d0002f9a6b8";
|
id = "0x00158d0002f9a6b8";
|
||||||
groups = [ "kitchen_room" "kitchen_room_present" ];
|
groups = [ "kitchen_room" "kitchen_room_present" ];
|
||||||
timeout = 60 * 2;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_3" = {
|
"motion_sensor_3" = {
|
||||||
id = "0x00158d0002f04522";
|
id = "0x00158d0002f04522";
|
||||||
groups = [ "living_room" "living_room_present" ];
|
groups = [ "living_room" "living_room_present" ];
|
||||||
timeout = 60 * 3;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_4" = {
|
"motion_sensor_4" = {
|
||||||
id = "0x00158d0002f9a558";
|
id = "0x00158d0002f9a558";
|
||||||
groups = [ "living_room" "living_room_present" ];
|
groups = [ "living_room" "living_room_present" ];
|
||||||
timeout = 60 * 3;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_5" = {
|
"motion_sensor_5" = {
|
||||||
id = "0x00158d0002f9a56f";
|
id = "0x00158d0002f9a56f";
|
||||||
groups = [ "bath_room" "bath_room_present" ];
|
groups = [ "bath_room" "bath_room_present" ];
|
||||||
timeout = 60 * 3;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_6" = {
|
"motion_sensor_6" = {
|
||||||
id = "0x00158d0002f9a5cb";
|
id = "0x00158d0002f9a5cb";
|
||||||
groups = [ "floor_room" "floor_room_present" ];
|
groups = [ "floor_room" "floor_room_present" ];
|
||||||
timeout = 60 * 2;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_7" = {
|
"motion_sensor_7" = {
|
||||||
id = "0x00158d0002f9a6aa";
|
id = "0x00158d0002f9a6aa";
|
||||||
groups = [ "bed_room" "bed_room_present" ];
|
groups = [ "bed_room" "bed_room_present" ];
|
||||||
timeout = 60 * 1.2;
|
|
||||||
};
|
};
|
||||||
"motion_sensor_8" = {
|
"motion_sensor_8" = {
|
||||||
id = "0x00158d0002f04637";
|
id = "0x00158d0002f04637";
|
||||||
groups = [ "bath_room" "bath_room_present" ];
|
groups = [ "bath_room" "bath_room_present" ];
|
||||||
timeout = 60 * 3;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
services.zigbee2mqtt.devices = lib.mapAttrs' (name:
|
services.zigbee2mqtt.devices = lib.mapAttrs' (name:
|
||||||
{ id, timeout ? 90, ... }: {
|
{ id, timeout ? 65, ... }: {
|
||||||
name = id;
|
name = id;
|
||||||
value = {
|
value = {
|
||||||
retain = false;
|
retain = false;
|
||||||
|
|
Loading…
Reference in a new issue