From f9965e81d185575d933ff75c5b16aa737cfd98c3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sun, 13 Oct 2019 16:00:46 -0400 Subject: [PATCH] Added new sensor for hassbian vlc - used in Disney Automations --- binary_sensors/motion.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/binary_sensors/motion.yaml b/binary_sensors/motion.yaml index 5140359..387b22a 100755 --- a/binary_sensors/motion.yaml +++ b/binary_sensors/motion.yaml @@ -3,4 +3,11 @@ state_topic: "smartthings/Garage Motion/contact" payload_on: "active" payload_off: "inactive" - device_class: motion \ No newline at end of file + device_class: motion + +- platform: command_line + name: vlc player + command: 'pidof vlc | wc -l' + payload_on: 1 + payload_off: 0 + scan_interval: 10 \ No newline at end of file