Adding decoder for Shelly Bluetooth Humidity and Temp (SBHT-003C) Sensor #553
Replies: 3 comments 11 replies
-
Hi @chrestme, Great that you went through the documentation and started your decoder for the Shelly Bluetooth Humidity and Temp (SBHT-003C). Any chances of having your forked repo here on GitHub, so that looking at the new branch should show what might be the issue would be a lot easier?
If there are no decoded properties at all there won't be any decoded publishing, so this could be your current case, but looking at the whole changes you made really is best. |
Beta Was this translation helpful? Give feedback.
-
I'll have to test it tonight when I get home and have access to the device,
but from my previous testing you are correct, the button press data gets
injected before the tempc data.
…On Thu, Aug 29, 2024 at 12:55 PM DigiH ***@***.***> wrote:
Thanks for the verification @chrestme <https://github.com/chrestme>
Could you also do this for the two possible
*1 - Single short click 11 - Button hold*
just to see if my assumption of the button code being injected before the
temperature is correct, or if it might be added to the end of the
servicedata?
—
Reply to this email directly, view it on GitHub
<#553 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRCSGHGDTG22LRG3SNVR4LZT5HALAVCNFSM6AAAAABNI2RQH2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBYHE4DANQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I don’t have any thing else at this time. Thanks for your help with this.
…On Sun, Sep 1, 2024 at 9:47 PM DigiH ***@***.***> wrote:
Great, thanks a lot @chrestme <https://github.com/chrestme>!
While I can't really test it out here without an actual device, everything
looks as expected, with the encrypted data also being two octets longer
than the pure temp,hum,batt data, and the added test cases matching the
expected results :)
I think the PR is ready for merging, unless you have any further comments.
—
Reply to this email directly, view it on GitHub
<#553 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRCSGDW5YEP53A3BHAZNQDZUO7THAVCNFSM6AAAAABNI2RQH2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGU2TGNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to add a decoder for the Shelly Bluetooth Humidity and Temp Sensor. I've followed the tutorial from theengs.io by
src
directory under thepython
directorySBHT_003C_json.h
underpython/src/devices/
scripts/check_decoder.py
to fix up the JSON string.devices.h
anddecoder.h
to include references to SBHT_003Cpip install .
in the python directory to build/rebuild the project.ScanAndDecode.py
to collect a sample of the SBHT advertising packetScanAndDecode.py
output intotest/python_ble/decoder_test.py
decoder_test.py
The result of decoder_test.py returns None for the call to decodeBLE (dble).
This is the string I got from ScanandDecode.py
{"servicedatauuid": "fcd2", "servicedata": "4400ae01642e3845fa00", "manufacturerdata": "a90b0111000b03000af53562b6c67c", "name": "SBHT-003C", "id": "7C:C6:B6:62:35:F5", "rssi": -88}
At first I had a full parser defined in my SBHT_003C_json.h (using SBT_002C_json.h as an example), but when that didn't work I started pairing down the matching conditions until I just had one. So, now it just looks like this:
I've tried different simple conditions, but none of them return anything for decodeBLE.
"condition":["uuid", "index", 0, "fcd2"]
"condition":["servicedata", "=", 20, "index", 0, "44"]
I checked to make sure these changes were getting picked up by running strings on the compiled .so file, and grepped for SBHT-003C, and got the expected result.
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions