This custom integration monitors file and directory properties (file counts, size, creation/modification dates) from a remote Debian Linux server running the Directory Monitor API.
- Open HACS in your Home Assistant instance.
- Click on the three dots in the top right corner and select Custom repositories.
- Add the URL of this GitHub repository and select Integration as the category.
- Click Add and then install the "Directory Monitor" integration.
- Restart Home Assistant.
Add the following to your configuration.yaml file:
sensor:
- platform: dir_monitor
update_interval: 60 # Optional: Polling interval in seconds (default: 300)
servers:
- host: "192.168.1.100"
api_key: "YOUR_GENERATED_API_KEY_1"
- host: "192.168.1.101"
api_key: "YOUR_GENERATED_API_KEY_2"