summaryrefslogtreecommitdiffstats
path: root/2configs/bureautomation/binary_sensor/motion.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-11-18 20:50:43 +0100
committermakefu <github@syntax-fehler.de>2020-11-18 20:51:14 +0100
commit34b220961fffac0629c66a876d169e58ded9a0df (patch)
tree8e765d96c9d02c1a01d15db5ce48d63f253d4e39 /2configs/bureautomation/binary_sensor/motion.nix
parent265149d4a3d5991d03d3fb4e22e0aed70469b54d (diff)
ma bureautomation: move to 20.09 style imports
Diffstat (limited to '2configs/bureautomation/binary_sensor/motion.nix')
-rw-r--r--2configs/bureautomation/binary_sensor/motion.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/2configs/bureautomation/binary_sensor/motion.nix b/2configs/bureautomation/binary_sensor/motion.nix
index ad8fab038..0c5a808e0 100644
--- a/2configs/bureautomation/binary_sensor/motion.nix
+++ b/2configs/bureautomation/binary_sensor/motion.nix
@@ -1,12 +1,15 @@
-[
- { 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";
- }
-]
+{
+ 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";
+ }
+ ];
+}
[cgit] Unable to lock slot /tmp/cgit/92000000.lock: No such file or directory (2)