broadlink-java-api icon indicating copy to clipboard operation
broadlink-java-api copied to clipboard

A1 temperature sending strange number

Open aron-kovacs opened this issue 8 years ago • 2 comments

Hello, I'm working on getting some sensor data from the A1 environmental sensor. My code is:

A1Device device = new A1Device("192.168.0.101", new Mac("34:EA:34:C7:A2:40")); device.auth(); System.out.println("Temp: " + device.getSensorsData().getTemp());

For the first run I got a normal value, 22.1, which was the same as in the app. Ever since I only get the value 97.8 which seems to be quite strange. Using the same connection from the python library (https://github.com/mjg59/python-broadlink) I get the same result at the app, so I suppose the error could be somewhere around here

aron-kovacs avatar Jan 10 '18 17:01 aron-kovacs

Previously I changed something that broke sensors data. #8 It might cause problems I think.

Are you getting strange numbers at the Broadlink offical app also? If so, it might be a firmware problem or both protocol implementation in python and java is incorrect.

a1aw avatar Jan 12 '18 08:01 a1aw

No, the app is showing real values.

aron-kovacs avatar Jan 12 '18 18:01 aron-kovacs