nixos-config/2configs/bam/binary_sensor/motion.nix
2023-07-12 20:30:58 +02:00

16 lines
373 B
Nix

{
services.home-assistant.config.binary_sensor =
[
{ platform = "mqtt";
device_class = "motion";
name = "Motion";
state_topic = "/bam/easy2/movement/Switch";
payload_on = "1";
payload_off = "0";
availability_topic = "/bam/easy2/tele/LWT";
payload_available = "Online";
payload_not_available = "Offline";
}
];
}