corvis / prana_rc

Python library and CLI to control Prana recuperators via BLE connection (https://prana.org.ua/)
GNU General Public License v3.0
20 stars 6 forks source link

The temperature sensors are swapped #39

Open zdeneksvarc opened 8 months ago

zdeneksvarc commented 8 months ago

Looks like the temperature readings from the sensors are mixed up (temperature_in vs temperature_out). Both issues for prana.get_state and `prana.set_state. True inside temperature is 22.6 and outside temperature is 15.4 right now. Temperature on Prana display is ok. All other sensors data from API are ok.

{
    "result": {
        "speed_locked": 1,
        "speed_in": 1,
        "speed_out": 1,
        "brightness": 4,
        "night_mode": true,
        "auto_mode": false,
        "flows_locked": true,
        "is_on": true,
        "mini_heating_enabled": false,
        "winter_mode_enabled": false,
        "is_input_fan_on": true,
        "is_output_fan_on": true,
        "sensors": {
            "temperature_in": 15.4,
            "temperature_out": 22.6,
            "humidity": 64,
            "pressure": 739,
            "voc": 282,
            "co2": 746
        },
        "timestamp": "2023-11-01T21:25:17.919052"
    },
    "id": 1,
    "jsonrpc": "2.0"
}