Is it possible to run Somactrl as a daemon? I have been trying but without success. But then I’m a total newbie to daemon/service… I wrote a shell script which calls Somactrl with the right args., as I don’t know how to pass on the arguments otherwise. But the system complains about the shebang #!usr/bin/env node in Somactrl, “no such file or directory”. When i run Somactrl from the command line it works fine though.
And another question. Sometimes my RISE-unit disconnect without reason (as I can understand it). When that happens, I would like Somactrl to make a new scan, once or twice maybe, to see if the unit is still there. Is that possible? Do I have to restart Somactrl to do that? Can I control that from homeassistant as an automation or should I do that in the service somehow?