Have a look to this thread Aeotec Z-Wave Gen5+ Stick stays offline after container restart / Raspi reboot A script that is example is posted there in