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

Convert temperature readings from HEX to value #94

Open
OrYaYo opened this issue Nov 5, 2023 · 1 comment
Open

Convert temperature readings from HEX to value #94

OrYaYo opened this issue Nov 5, 2023 · 1 comment

Comments

@OrYaYo
Copy link

OrYaYo commented Nov 5, 2023

Hello,

It seems like the readings from temperature sensor devices (RF) are in hexadecimal value. For instance, my Alecto V4 device returns the following:

20;0A;Alecto V4;ID=58d0;TEMP=0080;HUM=66;BAT=OK;

The current temperature is expressed in hexadecimal, being 0x0080 in hex 128 in decimal, which is the current temperature (12.8 degrees). Temperature return by these devices is xx.x (2 digits + 1 decimal reading).

This is the way other MQTT bridges return it, specially the espRFLinkMQTT.

Would it be possible to convert the hex reading into a human readeable format?

@cpainchaud
Copy link
Owner

Hello,

I do believe that the MQTT integration requires a rework to follow the new HA MQTT standards. You are more than welcome to submit a patch for that. Myself I don't have the time to work on it right now.

Thank you

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