JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
32 stars 10 forks source link

Plugin is very slow, says "Updating" for many seconds #26

Closed Terabyte1385 closed 1 year ago

Terabyte1385 commented 1 year ago

Describe The Bug: It takes around 10 seconds to get the current temperature, just says "Updating..." for that time in which it is unusable. It also causes all of Homebridge to say "Updating..." but I solved it using a child bridge.

To Reproduce:

Expected behavior: The device updates instantly / quickly.

Logs: Relevant logs below

[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Active' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Target Heater-Cooler State' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Cooling Threshold Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Heating Threshold Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Rotation Speed' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:24 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Swing Mode' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:26 AM] [homebridge-daikin-cloud] [DaikinAP04787] GET TargetHeaterCoolerState, operationMode: auto
[1/23/2023, 10:17:28 AM] [homebridge-daikin-cloud] [DaikinAP04787] GET CurrentTemperature, temperature: 22
[1/23/2023, 10:17:30 AM] [homebridge-daikin-cloud] [DaikinAP04787] GET CoolingThresholdTemperature, temperature: 23.5
[1/23/2023, 10:17:30 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:30 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Heating Threshold Temperature' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:30 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Rotation Speed' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:30 AM] [homebridge-daikin-cloud] This plugin slows down Homebridge. The read handler for the characteristic 'Swing Mode' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:31 AM] [homebridge-daikin-cloud] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: outgoing request timed out after 10000ms. See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:31 AM] [homebridge-daikin-cloud] This plugin threw an error from the characteristic 'Heating Threshold Temperature': Unhandled error thrown inside read handler for characteristic: outgoing request timed out after 10000ms. See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:31 AM] [homebridge-daikin-cloud] This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside read handler for characteristic: outgoing request timed out after 10000ms. See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:31 AM] [homebridge-daikin-cloud] This plugin threw an error from the characteristic 'Swing Mode': Unhandled error thrown inside read handler for characteristic: outgoing request timed out after 10000ms. See https://homebridge.io/w/JtMGR for more info.
[1/23/2023, 10:17:37 AM] [homebridge-daikin-cloud] [DaikinAP04787] GET CoolingThresholdTemperature, temperature: 23.5

Plugin Config:

{
            "username": "[removed]",
            "password": "[removed]",
            "showExtraFeatures": false,
            "_bridge": {
                "username": "[removed]",
                "port": [removed]
            },
            "platform": "DaikinCloud"
        }

Screenshots: IMG_5302 IMG_5303

Environment:

JeroenVdb commented 1 year ago

Hi @Terabyte1385 I don't think this is really related to the plugin. In the log you posted I see that all responses time out. Can it be that the connection on your homebridge host is bad? Low specs can maybe also cause the multiple calls to fail?

Terabyte1385 commented 1 year ago

Hi, I'm running HB on one of my old Windows laptops and also my Internet connection isn't exactly ideal (running HB via ethernet) so your options are possible. However, all of my other plugins, including for WiZ bulbs, Gree ACs, Roborock Vacuum, and a couple of others work as smooth as butter, so I imagined it was the plugin.