when i want to start a daemon (endless running script) the script itself starts but in HomeKit it keeps loading till it's failing.
after a restart of HomeKit the correct state is displayed and turning off is also working.
is there a way to solve that issue ?
my on_cmd script looks something like this :
sudo bash /home/pi/script.sh &
when i want to start a daemon (endless running script) the script itself starts but in HomeKit it keeps loading till it's failing. after a restart of HomeKit the correct state is displayed and turning off is also working. is there a way to solve that issue ?
my on_cmd script looks something like this :
sudo bash /home/pi/script.sh &
the script looks like this