From c44c8e9d6f7ebde87c46f301feebc7da5bd65deb Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 8 Apr 2017 22:10:01 -0400 Subject: [PATCH] Added new sensor for GD --- customize.yaml | 6 ++++++ groups.yaml | 5 ++++- sensors/smartthings.yaml | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sensors/smartthings.yaml diff --git a/customize.yaml b/customize.yaml index 43cb1b2..8c90945 100644 --- a/customize.yaml +++ b/customize.yaml @@ -180,3 +180,9 @@ switch.front_porch_right: switch.rail_lights: icon: mdi:lightbulb + +sensor.garage_door: + icon: mdi:garage + +cover.garage_door: + icon: mdi:garage diff --git a/groups.yaml b/groups.yaml index 77cd404..d3ee6ed 100644 --- a/groups.yaml +++ b/groups.yaml @@ -5,8 +5,8 @@ default_view: icon: mdi:home entities: - group.family - - group.outside - group.temperature + - group.security people: name: People @@ -164,3 +164,6 @@ Outside Lights: Garage Door: - cover.garage_door + +Security: + - sensor.garage_door diff --git a/sensors/smartthings.yaml b/sensors/smartthings.yaml new file mode 100644 index 0000000..822564c --- /dev/null +++ b/sensors/smartthings.yaml @@ -0,0 +1,6 @@ +- platform: mqtt + name: "Garage Door" + state_topic: "smartthings/Garage Door/contact" + qos: 0 + unit_of_measurement: "" + value_template: '{{ value.x }}'