Skip to content
Snippets Groups Projects
Verified Commit dae53408 authored by Erick Hitter's avatar Erick Hitter
Browse files

Sync with upstream

399ceba
parent 38a5b77f
No related branches found
No related tags found
No related merge requests found
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
restart_august_daemon: /usr/bin/pm2 restart npm
switches.yaml 100755 → 100644
...@@ -14,11 +14,15 @@ ...@@ -14,11 +14,15 @@
retain: true retain: true
- platform: command_line - platform: command_line
switches: switches:
august_front: august_interior:
oncmd: 'curl "http://localhost:3000/api/lock/front"' oncmd: 'curl "http://localhost:3000/api/lock/interior"'
offcmd: 'curl "http://localhost:3000/api/unlock/front"' offcmd: 'curl "http://localhost:3000/api/unlock/interior"'
statecmd: 'curl --silent "http://localhost:3000/api/status/interior" | grep -oP "(\bunlocked\b)" | wc -l'
value_template: '{{ value == "0" }}'
- platform: command_line - platform: command_line
switches: switches:
august_rear: august_keyed:
oncmd: 'curl "http://localhost:3000/api/lock/rear"' oncmd: 'curl "http://localhost:3000/api/lock/keyed"'
offcmd: 'curl "http://localhost:3000/api/unlock/rear"' offcmd: 'curl "http://localhost:3000/api/unlock/keyed"'
statecmd: 'curl --silent "http://localhost:3000/api/status/keyed" | grep -oP "(\bunlocked\b)" | wc -l'
value_template: '{{ value == "0" }}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment