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-2506211318
|
version: 0.15.0-dev-2506211326
|
||||||
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
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ bashio::log.blue "run.sh: info: setup Add-on environment"
|
|||||||
bashio::cache.flush_all
|
bashio::cache.flush_all
|
||||||
MQTT_HOST=""
|
MQTT_HOST=""
|
||||||
SLUG=""
|
SLUG=""
|
||||||
|
HOSTNAME=""
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log "run.sh: info: check for Home Assistant MQTT service"
|
bashio::log "run.sh: info: check for Home Assistant MQTT service"
|
||||||
if bashio::services.available mqtt; then
|
if bashio::services.available mqtt; then
|
||||||
@@ -15,8 +16,9 @@ if bashio::supervisor.ping; then
|
|||||||
else
|
else
|
||||||
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
|
||||||
bashio::log "run.sh: info: check for slug"
|
bashio::log "run.sh: info: check for slug and hostname"
|
||||||
SLUG=$(bashio::addon.repository)
|
SLUG=$(bashio::addon.repository)
|
||||||
|
HOSTNAME==$(bashio::addon.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
|
||||||
@@ -26,6 +28,13 @@ if [ -z "$SLUG" ]; then
|
|||||||
else
|
else
|
||||||
bashio::log.green "run.sh: info: found addon slug: $SLUG"
|
bashio::log.green "run.sh: info: found addon slug: $SLUG"
|
||||||
export SLUG
|
export SLUG
|
||||||
|
|
||||||
|
fi
|
||||||
|
if [ -z "$HOSTNAME" ]; then
|
||||||
|
bashio::log.yellow "run.sh: info: addon hostname not found"
|
||||||
|
else
|
||||||
|
bashio::log.green "run.sh: info: found hostname: $HOSTNAME"
|
||||||
|
export HOSTNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if a MQTT was/not found, drop a note
|
# if a MQTT was/not found, drop a note
|
||||||
|
|||||||
Reference in New Issue
Block a user