bump to next test verion

This commit is contained in:
Stefan Allius
2025-05-31 18:22:55 +02:00
parent 4c4c4e4243
commit d326a9e57d
2 changed files with 11 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
name: TSUN-Proxy (Dev)
description: MQTT Proxy for TSUN Photovoltaic Inverters
version: 0.14.0-dev-2505311801
version: 0.14.0-dev-2505311821
image: docker.io/sallius/tsun-gen3-addon
url: https://github.com/s-allius/tsun-gen3-proxy
slug: tsun-proxy-dev

View File

@@ -2,11 +2,16 @@
echo "Add-on environment started"
bashio::cache.flush_all
echo "check for Home Assistant MQTT"
MQTT_HOST=$(bashio::services mqtt "host")
MQTT_PORT=$(bashio::services mqtt "port")
MQTT_USER=$(bashio::services mqtt "username")
MQTT_PASSWORD=$(bashio::services mqtt "password")
echo "check for Home Assistant supervisor API"
if bashio::supervisor.ping; then
echo "check for Home Assistant MQTT"
MQTT_HOST=$(bashio::services mqtt "host")
MQTT_PORT=$(bashio::services mqtt "port")
MQTT_USER=$(bashio::services mqtt "username")
MQTT_PASSWORD=$(bashio::services mqtt "password")
else
echo "error Home Assistant supervisor API not available!"
fi
# if a MQTT was/not found, drop a note
if [ -z "$MQTT_HOST" ]; then