A Homebridge plugin that exposes a WebSocket API for controlling and monitoring HomeKit accessories from external services like Node-RED. Version 1.0.0 (current) allows adding, removing, getting, and setting accessories via JSON messages over WebSocket. Requires Node.js ^18.20.4 || ^20.15.1 || ^22 and Homebridge ^1.6.0 || ^2.0.0. Key differentiator: enables real-time integration with Node-RED and other WebSocket clients without additional hardware bridges, similar to homebridge-mqtt but using WebSocket protocol instead of MQTT.
npm install homebridge-websocket-dtiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, configuration, and a WebSocket client example that adds a switch and toggles it on.
Always use JSON.stringify() before ws.send()
Use only one integration method per accessory; do not mix WebSocket and MQTT for the same accessory name.
Implement a response handler that sends a callback message matching the accessory name and characteristic within one second.
Design your client to handle both naming schemes, or wait for plugin update.
Change the port in config.json or open port 4050 in firewall.
Change port in config.json to an unused port (e.g., 4051).
Ensure Homebridge is started and the platform is configured (check ~/.homebridge/config.json).
Use correct characteristic names: 'On', 'Brightness', 'CurrentTemperature', etc. Check Homebridge documentation.
Ensure your WebSocket client sends a callback message immediately upon receiving a 'get' with matching name and characteristic.
No dependency data recorded yet.