Actions80
- 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
Platform Tool → Truncate Log File
AI-generatedOverview
This node interacts with the Homebridge API to perform platform-specific operations, specifically truncating a log file. It is useful for managing and maintaining Homebridge platform logs by clearing or truncating log files to free up space or reset logs.
Use Case Examples
- A user wants to clear the Homebridge platform log file to start fresh logs after troubleshooting an issue.
- Automating log maintenance by truncating log files periodically to prevent excessive disk usage.
Properties
| Name | Meaning |
|---|---|
| Access Token | Access token from Login operation. If not connected to Login node, enter manually. |
| Request Options | Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings. |
Output
JSON
result- Result of the truncate log file operation, typically a confirmation or status message from the Homebridge API.
Dependencies
- Homebridge API access with an access token credential
Troubleshooting
- Ensure the access token is valid and has the necessary permissions to truncate log files.
- Check network connectivity and proxy settings if requests fail.
- If SSL certificate validation fails, consider enabling the option to ignore SSL issues, but be aware of security risks.
- Timeout errors may occur if the server is slow to respond; increase the timeout setting if needed.
Links
- Homebridge API Documentation - Official documentation for Homebridge API endpoints and usage.