kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
300 stars 95 forks source link

AirCon temperature issue #15

Closed Faisalthe01 closed 3 years ago

Faisalthe01 commented 4 years ago

According to the plugin documentation, i can set hex code for temperature 30 and temperature 16 and those can be used for whatever temperature I select.

My problem is if my current temperature is 23 and i change it to 24 it will set the hex code for 30, which is correct but if i go down to 23 again, it should send the hex code for 16 as I’m going lower but it still send the code for 30, which is not is correct.

Other thing is, when i select Heat, it sends the hex code for it 30 along with Heat hex code and set the temperature to 30.

My config is

 {
                    "name": "Heater",
                    "type": "air-conditioner",
                    "ignoreTemperatureWhenOff": true,
                    "temperatureUpdateFrequency": 10,
                    "temperatureFilePath": "/text/inside.txt",
                    "turnOnWhenOff": false,
                    "allowResend": false,
                    "preventResendHex": true,
                   "maxTemperature": 27,
                    "replaceAutoMode": "heat",
                    "disableLogs": true,
                    "data": {
                        "off": [
                            {
                                "data": "hex code",
                                "sendCount": 2,
                                "interval": 0.75
                            }
                        ],
                        "on": "hex code",
                        "heat": [
                            {
                                "data": "hex code"

                            }
                        ],
                        “temperature30”: {
                            "data": "temp high hex code"
                        },

                        “temperature16”: {
                            "data": "temp low hex code"
                        }
                    }
                },
modestindustries commented 4 years ago

I'm seeing similar behaviour. On homebridge-broadlink-rm, temperatures have always worked, but now that I'm on this fork, the AC comes on at 30C and stays there until I drop the interface temp to 19C, which causes the AC unit to set to 26C.

This also appears to affect the AC fan. If the AC comes on at 30C, and I then adjust the fan speed, the temp changes to 25C, which has never happened before. Config is as follows:


                    "name": "Air Conditioner",
                    "type": "air-conditioner",
                    "temperatureDisplayUnits": "C",
                    "temperatureUpdateFrequency": 10,
                    "maxTemperature": 30,
                    "minTemperature": 10,
                    "defaultCoolTemperature": 26,
                    "pseudoDeviceTemperature": 26,
                    "replaceAutoMode": "cool",
                    "turnOnWhenOff": true,
                    "ignoreTemperatureWhenOff": true,
                    "minimumAutoOnOffDuration": 30,
                    "allowResend": true,
                    "preventResendHex": true,
                    "data": {
                        "on": "hexData",
                        "off": "hexData",
                        "temperature30": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature29": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature28": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature27": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature26": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature25": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature24": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature23": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature22": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature21": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature20": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature19": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature18": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature17": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        },
                        "temperature16": {
                            "pseudo-mode": "cool",
                            "data": "hexData"
                        }
                    }
                },
                {
                    "name": "AC Fan",
                    "type": "fan",
                    "data": {
                        "on": "hexData",
                        "off": "hexData",
                        "fanSpeed10": "hexData",
                        "fanSpeed50": "hexData",
                        "fanSpeed100": "hexData"
                    }
                }
modestindustries commented 4 years ago

Looks like removing the pseudo-mode settings from the config, and changing the temperaturexx to coolxx has fixed the temperature issue. Fan issues persist.

Faisalthe01 commented 4 years ago

Looks like removing the pseudo-mode settings from the config, and changing the temperaturexx to coolxx has fixed the temperature issue. Fan issues persist.

Its fixed because it cannot find temperature30 anymore, if you see the logs it still send temperature30 when Its turned on but since you changed them to cool, it sends nothing. It is a bug

benjaminbogdanovic commented 4 years ago

Whether to heat or cool is determined by this:

Screenshot 2020-07-06 at 03 09 53