Closed bostrt closed 11 months ago
I'm rewriting the websockt and auth stuff in this plugin to address this issue. Workaround this issue by restart homebridge every night to force the plugin to re-fetch tokens.
# cat /etc/systemd/system/restart-homebridge.service
[Unit]
Description=A job to test the systemd scheduler
[Service]
Type=oneshot
ExecStart=/usr/local/bin/hb-service restart
[Install]
WantedBy=default.target
# cat /etc/systemd/system/restart-homebridge.timer
[Unit]
Description=Restart homebridge every day
RefuseManualStart=no
RefuseManualStop=no
[Timer]
Persistent=false
OnCalendar=*-*-* 00:00:00
Unit=restart-homebridge.service
[Install]
WantedBy=timers.target
Resolved as of https://github.com/bostrt/homebridge-bali-blinds/releases/tag/v0.0.5-beta.0 but there is a lot of room for improvement.
This was resolved by a restart of Homebridge.