Last Updated on December 7, 2023 by Freddy Reyes
If your Tuya devices fail to communicate with your Homebridge installation, the only workaround is to reboot Homebridge.
The best way to fix the issue is to automate Homebrigde bounce using Linux crontab.
Instructions:
Do the following in Terminal:
sudo crontab -e
Choose: 1
for nano
Insert a line like: 0 4 * * * sudo systemctl restart homebridge
Where: min | hour | Day_of_Month | Month | Day_of_Week | command
This runs “sudo systemctl restart homebridge"
every night at 4:00 AM. Asterisk out Day_of_Month, Month, and Day_of_Week unless you only want to use those options.