unreality / FujiHeatPump

Control Fujitsu AirConditioners with your Arduino board
MIT License
65 stars 12 forks source link

Get temperature with decimals #12

Open mrbluebrett opened 1 year ago

mrbluebrett commented 1 year ago

Hi, is it possible to get temperature with decimals? Previously I used an Intesishome module and reported temperatures with a resolution of 0.5º. So can we get the temperature with one decimal to get the 0.5º steps with this?

EDIT: in code I see this comment: // there is one leading bit here that is unknown - probably a sign bit for negative temps? Can it be the 0.5º indicator?

balouken commented 1 year ago

Older units work without decimals... The newer units are with decimals. Normaly you have this problem also with your IR remote controller.

mrbluebrett commented 1 year ago

It’s the same ac unit. I just replaced the intesis home module by a custom esp32.

balouken commented 1 year ago

Yes, but you can only adjust temp by 1°C

image

mrbluebrett commented 1 year ago

I ment the ambient temperature. The reading from the actual temperature.

unreality commented 1 year ago

As far as i know the line protocol doesnt have capacity for 0.5degC resolution -- however there is one unknown bit in the temperature field:

https://github.com/unreality/FujiHeatPump/blob/72e00ec06c672461e258da8dadf207d0e9f133dc/src/FujiHeatPump.cpp#L22

the other possibility is that the Intesishome unit had its own internal sensor?

mrbluebrett commented 1 year ago

How can i expose this unknown bit into a variable named for example as a variable named unknown bit (with value 0 and 1) so i can log the vale in HA and check if it changes between the change of every degree??