How to automatically restart cloud connector after an unexpected disconnection

Thanks! I try to make my tutorials easy for beginners, and that mostly means taking time to explain why we’re doing something (without getting too technical). When someone is very familiar with a task, it becomes easy to skip steps that would not be obvious to others. In this case, I don’t spend much time on creating items since OH users should know how to do that. The challenging parts are really the unfamiliar exec and logreader things.

Yeah, exactly. It’s a simpler rule than the first version, but the curl command is daunting if you haven’t done it before. I relied on this post to figure it out.

That’s a good question. Since the general state of myopenHAB_Connection is Online, I believe that it will be persisted as such on a system shutdown/restart. I don’t think the rule would run when the system is shutting down, so it won’t be set to Testing. On a restart, I think the cloud connection will be reestablished before the rule runs.

I’m not using myopenHAB_Connection in a UI, so I haven’t tested this. Even if it is tested on restart, the rule will still run properly afterward.