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