light-control: update
This commit is contained in:
parent
46b1c6d07e
commit
d219a65110
2 changed files with 15 additions and 15 deletions
|
@ -29,55 +29,55 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
sensors = let
|
sensors = let
|
||||||
door = { topic, rooms }: {
|
door = { topic, room }: {
|
||||||
topic = topic;
|
topic = topic;
|
||||||
key = "contact";
|
key = "contact";
|
||||||
rooms = rooms;
|
room = room;
|
||||||
invert_state = true;
|
invert_state = true;
|
||||||
delay = 90;
|
delay = 90;
|
||||||
};
|
};
|
||||||
motion = { topic, rooms }: {
|
motion = { topic, room }: {
|
||||||
topic = topic;
|
topic = topic;
|
||||||
key = "occupancy";
|
key = "occupancy";
|
||||||
rooms = rooms;
|
room = room;
|
||||||
delay = 60;
|
delay = 60;
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_2";
|
topic = "zigbee2mqtt/motion_sensor_2";
|
||||||
rooms = [ "bed_room" ];
|
room = "bed_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_7";
|
topic = "zigbee2mqtt/motion_sensor_7";
|
||||||
rooms = [ "bed_room" ];
|
room = "bed_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_1";
|
topic = "zigbee2mqtt/motion_sensor_1";
|
||||||
rooms = [ "kitchen_room" ];
|
room = "kitchen_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_3";
|
topic = "zigbee2mqtt/motion_sensor_3";
|
||||||
rooms = [ "living_room" ];
|
room = "living_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_4";
|
topic = "zigbee2mqtt/motion_sensor_4";
|
||||||
rooms = [ "living_room" ];
|
room = "living_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_5";
|
topic = "zigbee2mqtt/motion_sensor_5";
|
||||||
rooms = [ "bath_room" ];
|
room = "bath_room";
|
||||||
})
|
})
|
||||||
(motion {
|
(motion {
|
||||||
topic = "zigbee2mqtt/motion_sensor_8";
|
topic = "zigbee2mqtt/motion_sensor_8";
|
||||||
rooms = [ "bath_room" ];
|
room = "bath_room";
|
||||||
})
|
})
|
||||||
(door {
|
(door {
|
||||||
topic = "zigbee2mqtt/door_sensor_2";
|
topic = "zigbee2mqtt/door_sensor_2";
|
||||||
rooms = [ "floor_room" ];
|
room = "floor_room";
|
||||||
})
|
})
|
||||||
(door {
|
(door {
|
||||||
topic = "zigbee2mqtt/door_sensor_4";
|
topic = "zigbee2mqtt/door_sensor_4";
|
||||||
rooms = [ "floor_room" ];
|
room = "floor_room";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
switches = let
|
switches = let
|
||||||
|
|
|
@ -5,8 +5,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://git.ingolf-wagner.de/palo/light-control.git";
|
url = "https://git.ingolf-wagner.de/palo/light-control.git";
|
||||||
rev = "af6f9f78180af24f329736f04bda07cf90ab98c9";
|
rev = "2009a829681c32127cc8b74dac759db566fe9599";
|
||||||
sha256 = "0yc5chl3pfx91rr59ngjfj0dahipjc0jkclxs2w0fg1j5aknxinc";
|
sha256 = "0hqrnqbzwpvgpx8sb13m89kz60pv6xgym3dhp3q56383hafijb4c";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1yzkbj36sx4vc8dsgcxahrvn33ci2ad1cpd1shcismw33k63rimh";
|
cargoSha256 = "1yzkbj36sx4vc8dsgcxahrvn33ci2ad1cpd1shcismw33k63rimh";
|
||||||
|
|
Loading…
Reference in a new issue