light-control: update

This commit is contained in:
Ingolf Wagner 2020-06-05 00:15:46 +02:00
parent 46b1c6d07e
commit d219a65110
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 15 additions and 15 deletions

View file

@ -29,55 +29,55 @@
}
];
sensors = let
door = { topic, rooms }: {
door = { topic, room }: {
topic = topic;
key = "contact";
rooms = rooms;
room = room;
invert_state = true;
delay = 90;
};
motion = { topic, rooms }: {
motion = { topic, room }: {
topic = topic;
key = "occupancy";
rooms = rooms;
room = room;
delay = 60;
};
in [
(motion {
topic = "zigbee2mqtt/motion_sensor_2";
rooms = [ "bed_room" ];
room = "bed_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_7";
rooms = [ "bed_room" ];
room = "bed_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_1";
rooms = [ "kitchen_room" ];
room = "kitchen_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_3";
rooms = [ "living_room" ];
room = "living_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_4";
rooms = [ "living_room" ];
room = "living_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_5";
rooms = [ "bath_room" ];
room = "bath_room";
})
(motion {
topic = "zigbee2mqtt/motion_sensor_8";
rooms = [ "bath_room" ];
room = "bath_room";
})
(door {
topic = "zigbee2mqtt/door_sensor_2";
rooms = [ "floor_room" ];
room = "floor_room";
})
(door {
topic = "zigbee2mqtt/door_sensor_4";
rooms = [ "floor_room" ];
room = "floor_room";
})
];
switches = let

View file

@ -5,8 +5,8 @@ rustPlatform.buildRustPackage rec {
version = "0.1.0";
src = fetchgit {
url = "https://git.ingolf-wagner.de/palo/light-control.git";
rev = "af6f9f78180af24f329736f04bda07cf90ab98c9";
sha256 = "0yc5chl3pfx91rr59ngjfj0dahipjc0jkclxs2w0fg1j5aknxinc";
rev = "2009a829681c32127cc8b74dac759db566fe9599";
sha256 = "0hqrnqbzwpvgpx8sb13m89kz60pv6xgym3dhp3q56383hafijb4c";
};
cargoSha256 = "1yzkbj36sx4vc8dsgcxahrvn33ci2ad1cpd1shcismw33k63rimh";