From 38a5b77f0b8a58f650ae57e9b789892aa9e861b0 Mon Sep 17 00:00:00 2001
From: Erick Hitter <services@ethitter.com>
Date: Sun, 21 Aug 2016 22:26:56 -0700
Subject: [PATCH] Sync with upstream

e1d35a2
---
 customizations/switches.yaml |  6 ++++++
 groups.yaml                  |  6 ++++++
 switches.yaml                | 10 ++++++++++
 3 files changed, 22 insertions(+)

diff --git a/customizations/switches.yaml b/customizations/switches.yaml
index dee265a..669d6c0 100644
--- a/customizations/switches.yaml
+++ b/customizations/switches.yaml
@@ -2,3 +2,9 @@ switch.lava_lamp:
   icon: mdi:led-on
 switch.wireless_charger:
   icon: mdi:battery-charging
+switch.august_front:
+  friendly_name: Front Door
+  icon: mdi:key
+switch.august_rear:
+  friendly_name: Back Door
+  icon: mdi:key
diff --git a/groups.yaml b/groups.yaml
index f42fa99..5b58a20 100755
--- a/groups.yaml
+++ b/groups.yaml
@@ -3,6 +3,7 @@ default_view:
   icon: mdi:home
   view: yes
   entities:
+    - group.locks
     - group.master_bedroom
     - group.master_bathroom
     - group.living_room
@@ -37,6 +38,11 @@ misc_view:
   view: yes
   entities:
     - media_player.nexus_player
+locks:
+  name: Locks
+  entities:
+    - switch.august_front
+    - switch.august_rear
 master_bedroom:
   name: Master Bedroom
   entities:
diff --git a/switches.yaml b/switches.yaml
index f897b9c..745fbb2 100755
--- a/switches.yaml
+++ b/switches.yaml
@@ -12,3 +12,13 @@
   payload_on: "on"
   payload_off: "off"
   retain: true
+- platform: command_line
+  switches:
+    august_front:
+      oncmd: 'curl "http://localhost:3000/api/lock/front"'
+      offcmd: 'curl "http://localhost:3000/api/unlock/front"'
+- platform: command_line
+  switches:
+    august_rear:
+      oncmd: 'curl "http://localhost:3000/api/lock/rear"'
+      offcmd: 'curl "http://localhost:3000/api/unlock/rear"'
-- 
GitLab