Mal wieder Restart Binding
Verfasst: 8. Feb 2023 20:53
Moin
Ich habe seit 4 Wochen auf OH3.4.1 umgestellt und versuche jetzt, mein Binding-Restart zum laufen zu bringen :
Ich kriege folgende Log-File einträge :
und
Hat jemand eine Idee ?
Danke schon mal
Ich habe seit 4 Wochen auf OH3.4.1 umgestellt und versuche jetzt, mein Binding-Restart zum laufen zu bringen :
Code: Alles auswählen
rule "eBus Restart Binding"
when
Item VAR_Innogy_CPU_Fehler received command ON
then
if(tEBusRestart !== null) return;
tEBusRestart = createTimer(now.plusSeconds(1),[|
if(bEBusRestart) {
var String Restart = executeCommandLine(Duration.ofSeconds(10),"sudo /usr/bin/ssh -p 8101 -i /home/openhab/openhab.id_rsa openhabian@localhost bundle:start org.openhab.binding.livisismarthome")
logInfo("LivisiSmarthome", "LivisiSmarthome Restart {}",Restart)
tEBusRestart = null
bEBusRestart = false
} else {
var String Restart = executeCommandLine(Duration.ofSeconds(10),"sudo /usr/bin/ssh -p 8101 -i /home/openhab/openhab.id_rsa openhabian@localhost bundle:stop org.openhab.binding.livisismarthome")
logInfo("LivisiSmarthome", "LivisiSmarthome Stop {}",Restart)
tEBusRestart.reschedule(now.plusSeconds(25))
bEBusRestart = true
}
])
end
Code: Alles auswählen
2023-02-08 20:46:05.303 [WARN ] [rg.openhab.core.io.net.exec.ExecUtil] - Failed to execute commandLine '[sudo /usr/bin/ssh -p 8101 -i /home/openhab/openhab.id_rsa openhabian@localhost bundle:stop org.openhab.binding.livisismarthome]'
2023-02-08 20:46:05.306 [INFO ] [ab.core.model.script.LivisiSmarthome] - LivisiSmarthome Stop null
Code: Alles auswählen
2023-02-08 20:46:30.318 [WARN ] [rg.openhab.core.io.net.exec.ExecUtil] - Failed to execute commandLine '[sudo /usr/bin/ssh -p 8101 -i /home/openhab/openhab.id_rsa openhabian@localhost bundle:start org.openhab.binding.livisismarthome]'
2023-02-08 20:46:30.322 [INFO ] [ab.core.model.script.LivisiSmarthome] - LivisiSmarthome Restart null
Danke schon mal