This issue seems to have cropped up before, but I haven’t see any solutions (besides RPi+MQTT setups). Oddly… I didn’t have this issue when I was running on my RPi… but I just switched over to a Gigabyte Brix i3 (Hassio running in Docker on Ubuntu 18.04) and now I’m having all sorts of issues. Every time I reboot… I only get 1 of my 2 switchmates to connect. And they alternate on reboots. The backyard light will work on one reboot but the sink will be “unavailable”… then next reboot, vice versa. I just put in brand new duracells and that hasn’t really helped.
Here’s the error I’m getting:
Log Details (ERROR)
Wed May 22 2019 09:53:55 GMT-0400 (Eastern Daylight Time)
Failed to connect to switchmate
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/switchmate/__init__.py", line 35, in _connect
bluepy.btle.ADDR_TYPE_RANDOM)
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 353, in __init__
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 402, in _connect
"Failed to connect to peripheral %s, addr type: %s" % (addr, addrType))
bluepy.btle.BTLEException: Failed to connect to peripheral XX:XX:XX:XX:XX:XX, addr type: random