RaresAil / homebridge-gree-ac

Apache License 2.0
3 stars 2 forks source link

Error messages in homebridge #15

Closed nevadascout closed 2 years ago

nevadascout commented 2 years ago

Describe The Bug: My homebridge logs are filled with these error messages:

[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Target Heater-Cooler State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Mod'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Cooling Threshold Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'SetTem'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Current Heater-Cooler State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Pow'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Pow'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Heating Threshold Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'SetTem'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Pow'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Temperature Display Units': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'TemUn'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Cooling Threshold Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'SetTem'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Heating Threshold Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'SetTem'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Target Heater-Cooler State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Mod'). See https://homebridge.io/w/JtMGR for more info.
[10/29/2022, 6:25:20 PM] [homebridge-gree-ac-platform] This plugin threw an error from the characteristic 'Current Heater-Cooler State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'Pow'). See https://homebridge.io/w/JtMGR for more info.

I have used this plugin for several months without any issues, but I started noticing these log messages after upgrading to the newest Apple OS's -- maybe this is the reason?

Plugin Config:

{
    "platforms": [
        {
            "name": "Gree ACs",
            "broadcastAddress": "192.168.0.255",
            "threeSpeedUnit": false,
            "coolingMinTemp": 18,
            "coolingMaxTemp": 27,
            "heatingMinTemp": 18,
            "heatingMaxTemp": 27,
            "defaultCurrentTemp": 22,
            "platform": "GreeACImplementationPlugin"
        }
    ]
}

Environment:

nevadascout commented 2 years ago

I use an Apple TV as my Home hub, and I noticed that today it updated to a newer version of tvOS. I suspect that the home API/spec changed and this is why all the errors started appearing

RaresAil commented 2 years ago

Hey, try to update the homebridge and restart all the services

nevadascout commented 2 years ago

Thanks! That appears to have fixed it