How to Fix Tuya Devices Not Communicating with HomeBridge: Automating Homebridge Bounce with Linux Crontab
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.
Do the following in Terminal:
sudo crontab -e
1 for nano
Insert a line like:
0 4 * * * sudo systemctl restart homebridge
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.