Switchmate connection issues

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

MandM78 I too have migrated to a different machine from the PI and I’ve lost my switchmate connectivity. How did you get the bluetooth working?

Thanks

I still haven’t. BT was working out of the box with my devices trackers, but it seems it’s the switchmates are problematic.

1 of my switchmates eventually connects for a little while… but the other one is basically unavailable 95% of the time.

I bit the bullet and now have some caseta switches on the way to replace those physical switches. I’m getting tired of mucking around.