Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32 #1

Open
dmkrueger opened this issue Jan 13, 2024 · 3 comments
Open

32 #1

dmkrueger opened this issue Jan 13, 2024 · 3 comments

Comments

@dmkrueger
Copy link

Hello, I am trying to use your plug-in with my SwitchBot. When I get the bridge added to HomeKit my temp always reads 32 humidity reads zero. I have the MAC address in the plugin, when I run the Bluetooth scan on the Raspi 4, I see the devices MAC address.

I have tried reseting the device, removed it from the SwitchBot iOS app.

Any idea's?

Thanks
Dean Krueger

@moritzmhmk
Copy link
Owner

Hello, sorry for the late reply. Do you know how to read the raw data that your device sends? If so, I could use it to find out why your particular device is not working. It may be a newer hardware version with a different data layout. There is an issue topic here that I started to collect different data layouts to improve the documentation of the protocol.

@dmkrueger
Copy link
Author

dmkrueger commented Feb 5, 2024 via email

@moritzmhmk
Copy link
Owner

moritzmhmk commented Feb 7, 2024

Looking at your data and aligning it as in the referenced issue, it looks like this:

         <       Co.ID |    MAC Address    | CC ?? | SensData |    > <       DevData  | SensData >
Expected <Buffer 69 09 | xx xx xx xx xx xx | 2c 0b | 00 95 4a | 00 > <Buffer 77 00 64 >
Actual   <Buffer eb ef | 13 a0 1d 0c 9a 03 | 05 98 | a1 00         > <Buffer 77 00 64 >

Obviously your sensor uses a different format. Your temperature is probably set to Fahrenheit, which would mean that 32° is internally 0° (Celsius).

Did Homebridge show any logs like "Received invalid manufacturer data for ..."? It should, as your device's manufacturer data is shorter than my plugin expects.

If you can generate some of this manufacturer data with the corresponding temperature and humidity (as displayed on the device - ideally in degrees Celsius) we could try to figure out the format of your device. Ideally you would provide a few different values. Providing the MAC address of your device (or just checking that it is part of the manufacturer data) would be also helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants