Giter Club home page Giter Club logo

Comments (11)

zewelor avatar zewelor commented on July 3, 2024

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.

snizzleorg avatar snizzleorg commented on July 3, 2024

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.

zewelor avatar zewelor commented on July 3, 2024

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.

cybe avatar cybe commented on July 3, 2024

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.

cybe avatar cybe commented on July 3, 2024

@snizzleorg

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.

snizzleorg avatar snizzleorg commented on July 3, 2024

@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.

zewelor avatar zewelor commented on July 3, 2024

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.

snizzleorg avatar snizzleorg commented on July 3, 2024

@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.

zewelor avatar zewelor commented on July 3, 2024

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 avatar cybe commented on July 3, 2024

@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.

hechi avatar hechi commented on July 3, 2024

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)

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.