Comments (11)
I don't think global silent ignore by default is good solution for debugging etc. There is flag -q for gateway, it should silence most of the errors. Also then why ignore only this error and not others, how to choose ? Also why there is such error ? Same configs on both gateways ? Same global_prefix ?
from bt-mqtt-gateway.
Thanks for the answer. Yes global_prefix is the same, the client_id differs.
I think the missing key should be logged but it is not really an exception - is it?
I try to debug why some of my thermostats would not respond or cannot be connected to (while previously they were working fine) and I have the log full of those key errors. Which is not very convenient. If they safely can be ignored than that's ok i guess...
BTW. Do I need to pair the eqbt3 thermostats? I was under the impression that this is not necessary but since I cannot get bt-mqtt gateway to talk to some of them while before it worked I am unsure...
from bt-mqtt-gateway.
I think maybe better would bo to make different global_prefix or prefix for thermostats like first_floor_thermostat / second_floor_thermostat etc. Have you tried -q option, for silencing errors ?
I've ended up pairing all thermostats, I also got some weird connection errors sometimes. Now they all work stable. Also be sure that only single gateway tries to access one thermostat.
from bt-mqtt-gateway.
I agree with both of you ;)
You should preferably use different prefixes to address separate bt-mqtt-gateways. But missing devices should not result in an uncatched exception, but rather in a appropriate warning.
from bt-mqtt-gateway.
BTW. Do I need to pair the eqbt3 thermostats? I was under the impression that this is not necessary but since I cannot get bt-mqtt gateway to talk to some of them while before it worked I am unsure...
Pairing is not needed. But make sure only one client communicates with a thermostat at any given time. Especially disable Bluetooth on your smartphone if you used the official app, as that app created a pairing between your smartphone and the thermostat which possibly blocks other connections.
from bt-mqtt-gateway.
@cybe Thanks for your suggestion. But If I'm not at home (for example now) then my phone should definitely not interfere with the connection - right? Or is the fact that the thermostat is paired (or was paired once) part of the problem?
I still get the connection failed errors although I can easily see then with hcitool lescan.
two of the bt-mqtt is not able to connect to anymore. While it was working for several months without any problem. I tried taking the batteries out to reset them etc. No dice.
from bt-mqtt-gateway.
For my pairing with the rpi worked on some thermostats. Before ( not sure what changed ) they worked without pairing. What I've done:
Put each thermostat into pairing ( get pin screen ).
Do pairing procedure and trust / auth on rpi zero.
After that all of them works for monts without any problem.
from bt-mqtt-gateway.
@zewelor could you let me know how exactly did you pair them? I will try and see if I get a stable connection going this way...
from bt-mqtt-gateway.
I've followed this tutorial: https://wiki.archlinux.org/index.php/bluetooth#Pairing . I'm using raspbian on rpi zero
from bt-mqtt-gateway.
@cybe Thanks for your suggestion. But If I'm not at home (for example now) then my phone should definitely not interfere with the connection - right? Or is the fact that the thermostat is paired (or was paired once) part of the problem?
No, you should be fine then @snizzleorg.
I still get the connection failed errors although I can easily see then with hcitool lescan.
two of the bt-mqtt is not able to connect to anymore. While it was working for several months without any problem. I tried taking the batteries out to reset them etc. No dice.
Some more pointers:
- Do you run bt-mqtt-gateway on a Raspberry Pi in conjunction with Wifi? Those are known to interfere with each other
- Do you have another program that accesses the Bluetooth adapter on your device?
- What are those "connection failed errors" exactly? Is an exception thrown? Is it a
RuntimeError
by any chance?
from bt-mqtt-gateway.
Hey guys, I faced a similar problem with the unknown device name. I agree with @cybe that indeed it would be better to use a different prefix for different gateways but nevertheless, in my opinion, the application should not terminate because of this error.
I hope the small change with #150 is ok for you guys :)
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.