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.14.0-dev-2505311836
|
version: 0.14.0-dev-2505311842
|
||||||
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
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
echo "Add-on environment started"
|
echo "run.sh: info: Add-on environment started"
|
||||||
bashio::cache.flush_all
|
bashio::cache.flush_all
|
||||||
echo "check for Home Assistant supervisor API"
|
echo "run.sh: info: check for Home Assistant supervisor API"
|
||||||
MQTT_HOST=""
|
MQTT_HOST=""
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
echo "check for Home Assistant MQTT"
|
echo "run.sh: info: check for Home Assistant MQTT"
|
||||||
if bashio::services mqtt; then
|
if bashio::services mqtt; then
|
||||||
MQTT_HOST=$(bashio::services mqtt "host")
|
MQTT_HOST=$(bashio::services mqtt "host")
|
||||||
MQTT_PORT=$(bashio::services mqtt "port")
|
MQTT_PORT=$(bashio::services mqtt "port")
|
||||||
MQTT_USER=$(bashio::services mqtt "username")
|
MQTT_USER=$(bashio::services mqtt "username")
|
||||||
MQTT_PASSWORD=$(bashio::services mqtt "password")
|
MQTT_PASSWORD=$(bashio::services mqtt "password")
|
||||||
else
|
else
|
||||||
echo "error Home Assistant service MQTT not available!"
|
echo "run.sh: error: Home Assistant service MQTT not available!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "error Home Assistant supervisor API not available!"
|
echo "run.sh: error: Home Assistant supervisor API not available!"
|
||||||
fi
|
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
|
||||||
echo "MQTT not found"
|
echo "run.sh: info: MQTT configuration not found"
|
||||||
else
|
else
|
||||||
echo "MQTT found"
|
echo "run.sh: info: MQTT found"
|
||||||
export MQTT_HOST
|
export MQTT_HOST
|
||||||
export MQTT_PORT
|
export MQTT_PORT
|
||||||
export MQTT_USER
|
export MQTT_USER
|
||||||
|
|||||||
Reference in New Issue
Block a user