JurajNyiri / HomeAssistant-Atrea

Custom component allowing control of Atrea ventilation units
Apache License 2.0
23 stars 12 forks source link

Update climate.py #5

Closed O-Palda closed 2 years ago

O-Palda commented 3 years ago

Changed the negative temperature computation according to the modbus documentation [ 65036 ~ -50,0°C ..65535 ~ -0,1°C, 1..1300 ~ 0,1..130,0°C ] as the original implementation has been throwing values around -5.900 C into HA.

Also changed register I10202 (Input TEa) to register I10211 (T-ODA) according to the Modbus parameters. T-ODA is always the temperature of the incoming outside air according to the setting in the service menu (it is generally TEa, but depends on the orientation of the unit and can also be set externally through modbus) - possibly not necessary.

As of today 20.3.2021 temperatures have been low enough and I have confirmed that the proposed change to the code works as intented for my unit with ECV380. RD5.CF and latest available software :)

JurajNyiri commented 2 years ago

Thank you I have now implemented this to the latest version. Sorry for the delay!