diff --git a/addon_files/redmatic/bin/redmatic b/addon_files/redmatic/bin/redmatic index 25a937f1..961a936a 100755 --- a/addon_files/redmatic/bin/redmatic +++ b/addon_files/redmatic/bin/redmatic @@ -124,6 +124,12 @@ Start () { logger -t redmatic -p daemon.error "cant start - already running" exit 1 else + upSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')" + if [ "${upSeconds}" -lt "120" ]; then + logger -t redmatic -p daemon.info "Starting Node-RED after reboot ... waiting 30 seconds..." + echo "Starting Node-RED ... waiting 30 seconds..." + sleep 30 + fi echo -n "Starting Node-RED: " source $ADDON_DIR/versions logger -t redmatic -p daemon.info "RedMatic v$VERSION_ADDON (c) Sebastian Raff https://github.com/rdmtc/RedMatic" diff --git a/package.json b/package.json index 1220be83..363d86fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redmatic", - "version": "5.0.3", + "version": "5.0.4", "description": "Node-RED packaged as Homematic CCU addon", "repository": "github:rdmtc/redmatic", "private": true,