roggmaeh / nilan-openhab

3 stars 4 forks source link

negative temperatures are wrong #1

Open spielkind opened 7 years ago

spielkind commented 7 years ago

Example:

Nilan_Input_T0_Controller: 18.59 C
Nilan_Input_T1_Intake: 0.0 C
Nilan_Input_T2_Inlet: 0.0 C
Nilan_Input_T3_Exhaust: 20.96 C
Nilan_Input_T4_Outlet: 7.97 C
Nilan_Input_T5_Cond: 0.0 C
Nilan_Input_T6_Evap: 0.0 C
Nilan_Input_T7_Inlet: 12.02 C
Nilan_Input_T8_Outdoor: 653.95 C
Nilan_Input_T9_Heater: 615.36 C
Nilan_Input_T10_Extem: 615.36 C
Nilan_Input_T11_Top: 0.0 C
Nilan_Input_T12_Bottom: 0.0 C
Nilan_Input_T13_Retum: 0.0 C
Nilan_Input_T14_Supply: 0.0 C
Nilan_Input_T15_Room: 18.89 C

T8 is actually -1°C in the display

spielkind commented 7 years ago

MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x1e\x04\x00Ð\x00\x012\' (1E 04 00 D0 00 01 32 5C) MinimalModbus debug mode. No sleep required before write. Time since previous read: 1484753957681.0 ms, minimum silent period: 2.01 ms. MinimalModbus debug mode. Response from instrument: '\x1e\x04\x02ÿzìá' (1E 04 02 FF 7A EC E1) (7 bytes), roundtrip time: 12.9 ms. Timeout setting: 2000.0 ms.

Nilan_Input_T8_Outdoor: 654.02 C

meinert commented 7 years ago

Check out the change made to this branch: https://github.com/roggmaeh/nilan-openhab/commit/5453ffe081ba1c2abdf8a80a9c204334f80b83ca#diff-c41bcd3938258b799ad64c858793c206

`elif row['Scale'] == "100":