theengs / decoder

Efficient, portable and lightweight library for Internet of Things payload decoding.
https://decoder.theengs.io
GNU General Public License v3.0
119 stars 39 forks source link

Report HHCCJCY01HHCC battery #406

Closed marcokreeft87 closed 1 year ago

marcokreeft87 commented 1 year ago

Is your feature request related to a problem? Please describe. Why isn't the battery status of HHCCJCY01HHCC reported? Its reporting the status in the app. According to the source HHCCJCY10 does report the battery status. MAC isnt reported btw.

Describe the solution you'd like Update this file to report the battery status of the device.

Describe alternatives you've considered I've considered pulling the source and trying it myself but it would probably be quicker for the code owners to do it.

Additional context image In the screenshot you can see mac isnt working

DigiH commented 1 year ago

Hi @marcokreeft87

You are correct, the battery status of a HHCCJCY01HHCC is not being reported by Theengs Gateway, which uses Decoder to only receive and decode the freely broadcast advertisement data - the sole present functionality of Theengs Decoder.

The HHCCJCY01HHCC advertising servicedata does not include the battery information.

OpenMQTTGateway, on the other hand, does also report the battery status of HHCCJCY01HHCCs, but by doing this separately through an active connection to the HHCCJCY01HHCC devices.

The MAC address however should be received and decoded, if release 1.5.5 or later of Theengs Decoder is being used in the project. I think that might be the issue you are currently seeing with the latest Theengs Gateway release still using Decoder 1.5.0. The MAC address will show correctly with the next Gateway update.

We are currently looking at possibilities on how to best include this connection property feature across all projects, but currently these are only available with OpenMQTTGateway.

Hope this clarifies the issues you are seeing.

DigiH commented 1 year ago

Closing as N/A to Theengs Decoder.

marcokreeft87 commented 1 year ago

Yes it's clear, thnx! I will wait till you guys figure it out