Closed BerraKode closed 6 years ago
Hi @BerraKode,
Altough your problem is already fixed: Is there anything we can add to the documentation to make it easier to use the library on the RasPi3? Any hints we should give to other users of the library?
No it’s good my bluetooth was messed up :)
On 2 May 2018, at 20:33, ChristianKuehnel notifications@github.com<mailto:notifications@github.com> wrote:
Hi @BerraKodehttps://github.com/BerraKode,
Altough your problem is already fixed: Is there anything we can add to the documentation to make it easier to use the library on the RasPi3? Any hints we should give to other users of the library?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/open-homeautomation/miflora/issues/105#issuecomment-386077124, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGr6U3Td9Q438d_BH5Ovl8dt2FjjISWlks5tufv9gaJpZM4TuJ6z.
Hello I have a raspberry pi 3 Im trying to control the miflora with. I can't get the connection to work though.
I get the following error:
*Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/btlewrap/bluepy.py", line 26, in _func_wrapper return func(args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/btlewrap/bluepy.py", line 55, in connect self._peripheral = Peripheral(mac, iface=iface) File "/usr/local/lib/python3.4/dist-packages/bluepy/btle.py", line 353, in init self._connect(deviceAddr, addrType, iface) File "/usr/local/lib/python3.4/dist-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 C4:7C:8D:66:42:8A, addr type: public
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "test.py", line 15, in
print(poller.parameter_value(MI_MOISTURE))
File "/usr/local/lib/python3.4/dist-packages/miflora/miflora_poller.py", line 132, in parameter_value
self.fill_cache()
File "/usr/local/lib/python3.4/dist-packages/miflora/miflora_poller.py", line 61, in fill_cache
firmware_version = self.firmware_version()
File "/usr/local/lib/python3.4/dist-packages/miflora/miflora_poller.py", line 103, in firmware_version
with self._bt_interface.connect(self._mac) as connection:
File "/usr/local/lib/python3.4/dist-packages/btlewrap/base.py", line 44, in enter
self._backend.connect(self._mac)
File "/usr/local/lib/python3.4/dist-packages/btlewrap/bluepy.py", line 32, in _func_wrapper
raise BluetoothBackendException() from last_error
btlewrap.base.BluetoothBackendException**
Is this because I don't have a dongle and try to connect with raspberrys built in bluetooth or is something else wrong? Thanks for all help!!!!
Best regards BerraKode