Giter Club home page Giter Club logo

Comments (6)

zewelor avatar zewelor commented on July 22, 2024

from bt-mqtt-gateway.

matbrewer396 avatar matbrewer396 commented on July 22, 2024

bluetoothd -v give me 5.43

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 22, 2024

Update it to newest and try again. https://github.com/zewelor/bt-mqtt-gateway/wiki/Upgrade-Bluez-on-Raspbian

from bt-mqtt-gateway.

matbrewer396 avatar matbrewer396 commented on July 22, 2024

thanks, its at 5.50 now.

Still, get the same error, just looks a bit different.

2019-09-14 11:56:00,011 DEBUG bt-mqtt-gw.mqtt mqtt.py:30:__init__ - Setting LWT to: bt-mqtt-gateway/lwt_topic
2019-09-14 11:56:00,515 INFO bt-mqtt-gw.workers.switchbot switchbot.py:19:_setup - Adding 1 switchbot devices
2019-09-14 11:56:00,518 INFO bt-mqtt-gw.workers.switchbot switchbot.py:21:_setup - Adding switchbot device 'light' (D3:A7:92:AA:6D:B3)
2019-09-14 11:56:00,520 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:103:register_workers - Added switchbot worker with 60 seconds interval and a 35 seconds timeout
2019-09-14 11:56:02,450 DEBUG bt-mqtt-gw.mqtt mqtt.py:116:callbacks_subscription - Subscribing to: bt-mqtt-gateway/switchbot/kitchen/update_interval
2019-09-14 11:56:02,457 DEBUG bt-mqtt-gw.mqtt mqtt.py:116:callbacks_subscription - Subscribing to: bt-mqtt-gateway/switchbot/+/+/set
2019-09-14 11:56:02,461 DEBUG bt-mqtt-gw.mqtt mqtt.py:116:callbacks_subscription - Subscribing to: bt-mqtt-gateway/homeassistant/status
2019-09-14 11:56:02,483 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:171:update_all - Updating all workers
2019-09-14 11:56:02,891 DEBUG bt-mqtt-gw.workers.switchbot switchbot.py:31:status_update - Updating 1 switchbot devices
2019-09-14 11:56:02,894 DEBUG bt-mqtt-gw.workers.switchbot switchbot.py:33:status_update - Updating switchbot device 'light' (D3:A7:92:AA:6D:B3)
2019-09-14 11:56:02,897 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:64:execute - Execution result of command SwitchbotWorker.status_update: [{'topic': 'switchbot/kitchen/light', 'payload': 'OFF'}]
2019-09-14 11:56:09,896 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:203:_on_command_wrapper - Received command for switchbot on bt-mqtt-gateway/switchbot/kitchen/light/set: b'ON'
2019-09-14 11:56:09,904 DEBUG bt-mqtt-gw.workers.switchbot switchbot.py:66:on_command - Setting ON on switchbot device 'light' (D3:A7:92:AA:6D:B3)
2019-09-14 11:56:10,776 ERROR bt-mqtt-gw.workers.switchbot logger.py:50:log_exception - Error setting ON on switchbot device 'light' (D3:A7:92:AA:6D:B3): BTLEDisconnectError
Traceback (most recent call last):
  File "/home/pi/bt-mqtt-gateway/workers/switchbot.py", line 69, in on_command
    bot["bot"] = Peripheral(bot["mac"], "random")
  File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 391, in __init__
    self._connect(deviceAddr, addrType, iface)
  File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 439, in _connect
    raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral D3:A7:92:AA:6D:B3, addr type: random

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 22, 2024

Try to run as root maybe ? If not maybe there is some need to pair / authorize with that device ?

from bt-mqtt-gateway.

matbrewer396 avatar matbrewer396 commented on July 22, 2024

Rerun the install as root and worked :)

thanks for your help

from bt-mqtt-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.