Comments (6)
from bt-mqtt-gateway.
bluetoothd -v
give me 5.43
from bt-mqtt-gateway.
Update it to newest and try again. https://github.com/zewelor/bt-mqtt-gateway/wiki/Upgrade-Bluez-on-Raspbian
from bt-mqtt-gateway.
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.
Try to run as root maybe ? If not maybe there is some need to pair / authorize with that device ?
from bt-mqtt-gateway.
Rerun the install as root and worked :)
thanks for your help
from bt-mqtt-gateway.
Related Issues (20)
- node_id = mac.replace(":", "-") = AttributeError: 'dict' object has no attribute 'replace' HOT 1
- Does it work with ESPHome?
- Problem with negative temperature / signed values HOT 1
- Gateway not starting as systemctl service HOT 2
- solved: Type error HOT 1
- hardware compatibility HOT 13
- Clarify why this needs to be run in a virtual environment HOT 1
- null values from LYWSD03MMC HOT 5
- blescanmulti worker not publishing to MQTT
- Systemd Installation like in README does not work, service.sh might have superfluous sudo
- Error message if bt-mqtt-gateway is started as home assistant addon HOT 8
- Support for MQTT climate hold and away modes has been removed in HA. HOT 2
- Missing MQTT messages HOT 2
- Anyway to setup on qnap?
- Docker configure.yaml HOT 1
- maybe use eq3btsmart to modernize eq3 thermostat handling? HOT 2
- 100% cpu load from bluepy-helper HOT 2
- Linak Desk Set commands
- Please, Delete this issue
- README venv installation instructions are incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bt-mqtt-gateway.