mob41 / broadlink-java-api

A clean Broadlink API for Java
MIT License
22 stars 25 forks source link

A1 temperature sending strange number #16

Open aron-kovacs opened 6 years ago

aron-kovacs commented 6 years ago

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

mob41 commented 6 years ago

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.

aron-kovacs commented 6 years ago

No, the app is showing real values.