summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/binary_sensor/motion.nix
blob: 0c5a808e0f925c7bb16f6d725b89056ee1997ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  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";
    }
  ];
}