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
304 stars 95 forks source link

Air Conditioner warning from the characteristic 'Current Relative Humidity' #680

Open dchernavsky opened 10 months ago

dchernavsky commented 10 months ago

Describe the bug Hello! First of all, thank you very much for the plugin, great job! I have a question. I get this warning every 10 seconds:

[12/01/2024, 10:20:29] [homebridge-broadlink-rm-pro] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://homebridge.io/w/JtMGR for more info. [12/01/2024, 10:20:29] [Broadlink RM] [INFO] Air Conditioner onTemperature (18.8) [12/01/2024, 10:20:30] [Broadlink RM] [INFO] Air Conditioner onTemperature (18.8)

I get the temperature from the sensor on the RPI, that's fine. But here's a warning about humidity. Perhaps you need to get humidity as well? In general it would be nice to transfer humidity to homekit. If so, what should the parameter look like in the file?

Desktop (please complete the following information):

Config:

{
    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "hideScanFrequencyButton": true,
    "hideLearnButton": false,
    "hideWelcomeMessage": true,
    "hosts": [
        {
            "address": "192.168.1.26",
            "mac": "66:0F:66:B3:B0:66",
            "isRFSupported": false
        }
    ],
    "accessories": [

        {
            "name": "Air Conditioner",
            "type": "air-conditioner",
            "minTemperature": 10,
            "maxTemperature": 30,
            "defaultCoolTemperature": 22,
            "heatTemperature": 24,
            "temperatureFilePath": "/home/homebridge/current_temperature.txt",
            "data": {
                "on": "Hex...",
                "off": "Hex...",
                "temperature18": {
                    "pseudo-mode": "cool",
                    "data": "Hex..."
                },
                "temperature19": {
                    "pseudo-mode": "cool",
                    "data": "Hex..."
                },
                "temperature20": {
                    "pseudo-mode": "cool",
                    "data": "Hex..."
                },
                "temperature21": {
                    "pseudo-mode": "cool",
                    "data": "Hex..."
                },
               .......
                "temperature30": {
                    "pseudo-mode": "heat",
                    "data": "Hex..."
                }
            }
        }
    ]
}
jeremydvoss commented 3 days ago

I get this all the time as well.