From 6e54f4becf9d2b741af93c78ce461a9b9e37e567 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 11 Sep 2017 14:56:38 +0200 Subject: [PATCH] Extend hass.io cli with new feature for 0.61 (#178) * Update hassio * Update config.json --- ssh/config.json | 2 +- ssh/hassio | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ssh/config.json b/ssh/config.json index f50f402..947e99a 100644 --- a/ssh/config.json +++ b/ssh/config.json @@ -1,6 +1,6 @@ { "name": "SSH server", - "version": "2.7", + "version": "2.8", "slug": "ssh", "description": "Allows connections over SSH", "url": "https://home-assistant.io/addons/ssh/", diff --git a/ssh/hassio b/ssh/hassio index f1c1955..f3e1cb7 100644 --- a/ssh/hassio +++ b/ssh/hassio @@ -9,6 +9,8 @@ if [ "$1" == "help" ] || [ "$#" -lt 2 ]; then HomeAssistant: $ hassio homeassistant logs $ hassio homeassistant restart + $ hassio homeassistant stop + $ hassio homeassistant start $ hassio homeassistant update $ hassio homeassistant check @@ -67,7 +69,7 @@ function call_api() { ###### # homeassistant functions if [ "$1" == "homeassistant" ]; then - hass_cmd=('logs' 'restart' 'update' 'check') + hass_cmd=('logs' 'restart' 'update' 'check' 'start' 'stop') if [[ ! ${hass_cmd[*]} =~ $2 ]]; then echo "No homeassistant command '$2' found!" exit 1