bump to next test version
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: TSUN-Proxy (Dev)
|
name: TSUN-Proxy (Dev)
|
||||||
description: MQTT Proxy for TSUN Photovoltaic Inverters
|
description: MQTT Proxy for TSUN Photovoltaic Inverters
|
||||||
version: 0.15.0-dev-2506211550
|
version: 0.15.0-dev-2506211601
|
||||||
image: docker.io/sallius/tsun-gen3-addon
|
image: docker.io/sallius/tsun-gen3-addon
|
||||||
url: https://github.com/s-allius/tsun-gen3-proxy
|
url: https://github.com/s-allius/tsun-gen3-proxy
|
||||||
slug: tsun-proxy-dev
|
slug: tsun-proxy-dev
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ bashio::cache.flush_all
|
|||||||
MQTT_HOST=""
|
MQTT_HOST=""
|
||||||
SLUG=""
|
SLUG=""
|
||||||
HOSTNAME=""
|
HOSTNAME=""
|
||||||
|
ADDONNAME=""
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log "run.sh: info: check Home Assistant bashio for config values"
|
bashio::log "run.sh: info: check Home Assistant bashio for config values"
|
||||||
if bashio::services.available mqtt; then
|
if bashio::services.available mqtt; then
|
||||||
@@ -17,7 +18,8 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.yellow "run.sh: info: Home Assistant MQTT service not available!"
|
bashio::log.yellow "run.sh: info: Home Assistant MQTT service not available!"
|
||||||
fi
|
fi
|
||||||
SLUG=$(bashio::addon.repository)
|
SLUG=$(bashio::addon.repository)
|
||||||
HOSTNAME=$(bashio::addon.hostname)
|
ADDONNAME=$(bashio::addon.hostname)
|
||||||
|
HOSTNAME=$(bashio::host.hostname)
|
||||||
else
|
else
|
||||||
bashio::log.red "run.sh: error: Home Assistant Supervisor API not available!"
|
bashio::log.red "run.sh: error: Home Assistant Supervisor API not available!"
|
||||||
fi
|
fi
|
||||||
@@ -30,12 +32,19 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
if [ -z "$HOSTNAME" ]; then
|
if [ -z "$HOSTNAME" ]; then
|
||||||
bashio::log.yellow "run.sh: info: addon hostname not found"
|
bashio::log.yellow "run.sh: info: hostname not found"
|
||||||
else
|
else
|
||||||
bashio::log.green "run.sh: info: found hostname: $HOSTNAME"
|
bashio::log.green "run.sh: info: found hostname: $HOSTNAME"
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$ADDONNAME" ]; then
|
||||||
|
bashio::log.yellow "run.sh: info: addon name not found"
|
||||||
|
else
|
||||||
|
bashio::log.green "run.sh: info: found hostname: $ADDONNAME"
|
||||||
|
export ADDONNAME
|
||||||
|
fi
|
||||||
|
|
||||||
# if a MQTT was/not found, drop a note
|
# if a MQTT was/not found, drop a note
|
||||||
if [ -z "$MQTT_HOST" ]; then
|
if [ -z "$MQTT_HOST" ]; then
|
||||||
bashio::log.yellow "run.sh: info: MQTT config not found"
|
bashio::log.yellow "run.sh: info: MQTT config not found"
|
||||||
|
|||||||
Reference in New Issue
Block a user