openHAB 2.5 Harmony Hub binding stability issues

I restarted the bundle daily via a script (executed from a rule) in the past, but since 2.5.2 I deactivated the restart and had no issues since then.
Script:

#!/bin/bash
# harmony binding restart
/usr/bin/ssh -p 8101 -i /home/openhab/.ssh/openhab.id_rsa openhab@localhost 'bundle:restart org.openhab.binding.harmonyhub'

Rule:

// bundle restart
rule "bundle restart"
when
    Time cron "30 30 5 * * ?"
then
    logInfo("RULES","Restart bundle start")
    executeCommandLine("/etc/openhab2/scripts/bundleRestart.sh", 60000)
    logInfo("RULES","Restart bundle done")
end

Edit: you need the private/public key to execute the command from karaf → see Tutorial: Restart Binding from rule

1 Like