Giter VIP home page Giter VIP logo

Comments (6)

hannseman avatar hannseman commented on May 30, 2024

from homebridge-mi-hygrothermograph.

GerSant avatar GerSant commented on May 30, 2024

Thanks for the Quick Response! You can use the name + "T" and "H" for naming the accessories, for example, and you can use the BLE MAC Address as Serial number for easy recon ;)
About the battery values i will query the hygros later with gatttool and compare the values obtained with "char-read-hnd 0x0018" in interactive mode.

Regards

from homebridge-mi-hygrothermograph.

hannseman avatar hannseman commented on May 30, 2024

Wow just saw the wall of text in my previous reply. Sorry about that. Did reply from email so the formatting must’ve disappeared.

I don’t think it’s a good idea to add suffixes to the name and use that on the Humidity and Temperature Characteristics. The name set on those is what is recognized by Siri so you’ll want something relevant and easy to pronounce.

The best approach is probably to add new parameters in the config for setting each name.

Regarding the serial number it’s just as you’re saying a good idea to use the device address.

from homebridge-mi-hygrothermograph.

hannseman avatar hannseman commented on May 30, 2024

I've split up this issue into two separate issues for tracking the configuration of the characteristic names and having unique serial numbers. See #4 and #5.

If you're having trouble with the connection being cut when using gatttool you can look into the service data in the advertising packets. The battery data is in the packet with service data which has length of 15 bytes. The last byte is the battery value.

I was having lots of trouble with connections being dropped after a few seconds by these devices. It looks like they run some kind of authentication which I never could figure out.

from homebridge-mi-hygrothermograph.

GerSant avatar GerSant commented on May 30, 2024

About the names, in this case, temperature and humidity in homekit you don't use the sensor name for asking about the service, you use the room name for referencing like "Hey siri what is the temperature of the kichen?" or "What is the humidity in the bathroom?" you don't ask about the sensor name, you use the name of the service that provides ;)

Regards

from homebridge-mi-hygrothermograph.

hannseman avatar hannseman commented on May 30, 2024

Ah yes you are correct! Misread the documentation there. Anyway you can now customise the accessory names through config.json.

I'm closing this issue but if you notice any weird stuff regarding the battery levels please open a new issue.

Thank you!

from homebridge-mi-hygrothermograph.

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.