Actions77
- Accessory Actions
- Authentication Actions
- Backup & Restore Actions
- Config Editor Actions
- Platform Tool Actions
- Plugin Actions
- Server Actions
- Restart Server
- Restart Child Bridge
- Stop Child Bridge
- Start Child Bridge
- Get Pairing Info
- Reset Homebridge Accessory
- Reset Cached Accessories
- Get Cached Accessories
- Delete Cached Accessories
- Delete Cached Accessory
- Get Device Pairings
- Get Device Pairing
- Delete Device Pairing
- Get Unused Port
- Get Network Interfaces
- Get Bridge Network Interfaces
- Set Bridge Network Interfaces
- Setup Wizard Actions
- Status Actions
- User Actions
Overview
This node integrates with the Homebridge API, allowing users to perform various operations related to Homebridge, a platform that enables integration of smart home devices with Apple HomeKit. Specifically, for the "Platform Tool" resource and the "Restart Host (Linux)" operation, the node facilitates restarting the Linux host running Homebridge. This can be useful for applying updates, recovering from errors, or performing maintenance without manual intervention on the host machine.
Practical examples include:
- Automatically restarting the Homebridge host after configuration changes.
- Scheduling periodic restarts to ensure system stability.
- Triggering a restart remotely via workflows when certain conditions are met.
Properties
| Name | Meaning |
|---|---|
| Access Token | Access token obtained from a prior login operation or entered manually; used for authentication with the Homebridge API. |
Output
The node outputs JSON data representing the response from the Homebridge API after attempting to restart the Linux host. This typically includes status information about the restart request, such as success confirmation or error details.
If the node supports binary data output, it would relate to any files or logs returned by the API, but based on the provided code and context, the primary output is JSON-formatted API responses.
Dependencies
- Requires an active connection to the Homebridge API server.
- Needs an access token for authentication, which can be obtained from a login operation or entered manually.
- The Homebridge server URL must be configured in the node credentials or environment.
- The node depends on the Homebridge API being accessible and properly configured to accept restart commands.
Troubleshooting
Common Issues:
- Invalid or expired access token leading to authentication failures.
- Network connectivity problems preventing communication with the Homebridge server.
- Insufficient permissions on the Homebridge server to perform a restart.
- Incorrect server URL or misconfigured credentials.
Error Messages:
- Authentication errors indicating invalid tokens: resolve by refreshing or re-entering the access token.
- Connection timeouts or unreachable host errors: verify network settings and server availability.
- Permission denied errors: ensure the API user has rights to restart the host.
Links and References
- Homebridge Official Website
- Homebridge API Documentation (if available)
- n8n documentation on Creating Custom Nodes