Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read / write operation failed in HomeKit scripts after several minutes #85

Open
seanwalter opened this issue Mar 16, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working stale-resistant

Comments

@seanwalter
Copy link

Analysis

When checking occupancy for these sensors in HomeKit scripts and iOS shortcuts, I get a Read/Write operation failed error after the child bridge has been running for a few to several minutes. Upon restarting the child bridge, everything works again for a few minutes.

I see this error in the plugin logs; not sure if it’s relevant, but it seems worth noting:

(node:14447) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 packets listeners added to [EventEmitter].

I have 14 Airport Expresses plus two Homebridge Minis, in case the plugin assumes a smaller number of devices.

Thank you for any advice/suggestions on resolving this.

Expected Behavior

HomeKit scripts and iOS shortcuts should get occupancy value from plugin accessory without an error being generated.

Steps To Reproduce

Install plugin. Allow it to run for a few to several minutes. Check occupancy status of one of the plugin accessories via HomeKit automation script or iOS shortcut.

Logs

(node:14447) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 packets listeners added to [EventEmitter].

Configuration

{
            "name": "Airport Express Connected",
            "update": {
                "refreshRate": 3,
                "ignoreGroupWithLeadingDevice": true,
                "unreachable": {
                    "ignore": false,
                    "threshold": 30,
                    "reportDisconnected": true
                }
            },
            "discovery": {
                "enabled": true,
                "always": false,
                "intervals": 30,
                "whitelist": {
                    "list": [],
                    "enabled": false
                },
                "blacklist": {
                    "list": [],
                    "enabled": false
                },
                "discardKnownDevices": false
            },
            "_bridge": {
                "username": "xx:xx:xx:xx:xx:xx",
                "port": 44803
            },
            "platform": "AirportExpressConnected"
        },

Environment

  • OS: unraid 6.12.8 server
  • Docker: 24.0.9
  • Homebridge: 1.7.0 UI 4.55.1
  • Airport Express Connected: 1.3.0 (have also tried latest beta and 2 earlier versions)
  • Node: 20.11.1
  • npm: 10.4.0

Additional Context

No response

@seanwalter seanwalter added the bug Something isn't working label Mar 16, 2024
@maxileith
Copy link
Owner

Yeah, this is an issue with the current architecture that occurs when using the plugin with a lot of AirPort Expresses.

I am planning to fix that issue eventually. I will update you here. Currently, I cannot give you a timeframe.

@seanwalter
Copy link
Author

Thank you. I’ll sit tight for now.

@maxileith maxileith self-assigned this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale-resistant
Projects
None yet
Development

No branches or pull requests

2 participants