I plan to setup a rule to monitor the network (WAN) connection and if it fails to reach out
control a zwave based switch to power off and on.
- Platform information:
- OS: Debian 9 Kernel 4.9.0
- Java Runtime Environment: oracle version 1.8.0_201
- openHAB version: 2.5.0.M1
It regularly happens that the internet connection breaks, basically the cable modem doesn’t find it’s way to the provider anymore. Under such circumstances only a switch off / on of the modem helps to restore.
To make life more easy I would like to do a check for the connectivity. I don’t know if it would make sense to do this time driven or another approach.
Currently the router is attached to a normal power plug. But a ZWave based power switch (devolo) is already on its way. And will be used soon.
I would appreciate if you could help me to find a good way to do it (no thread:sleep actions)…