Skip to content

Commit 1b95641

Browse files
fvgarrelc0ffeeca7
andauthored
Extended Paperless-ngx docs (#40012)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
1 parent d7b8054 commit 1b95641

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

source/_integrations/paperless_ngx.markdown

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ Verify SSL certificate:
5454
description: "Verify the SSL certificate of the Paperless-ngx instance. Disable this option if you're using a self-signed certificate."
5555
{% endconfiguration_basic %}
5656

57+
## Use cases
58+
59+
The integration can be used to build automations to help and notify you of new documents in your paperless instance.
60+
The update sensor could notify you if a new paperless-ngx version is available.
61+
62+
## Supported functionality
63+
64+
The Paperless-ngx integration provides statistic and diagnostic entities to Home Assistant.
65+
Below is an overview of these entities and their function.
66+
5767
## Sensors
5868

5969
This integration provides {% term sensors %} for the following information from Paperless-ngx:
@@ -76,9 +86,86 @@ This integration provides {% term sensors %} for the following information from
7686
| **Status sanity** | Indicates the sanity of the Paperless-ngx documents. |
7787
| **Software** | Indicates whether a new Paperless-ngx update ist available. |
7888

89+
## Example automations
90+
91+
{% details "Send a push notification if a new document is available" %}
92+
{% raw %}
93+
94+
```yaml
95+
alias: New document push notification
96+
description: Sends a push notification if a new document is available
97+
triggers:
98+
- entity_id: sensor.paperless_documents_inbox
99+
to: null
100+
trigger: state
101+
conditions:
102+
- condition: template
103+
value_template: |
104+
{% if trigger.from_state is not none and trigger.to_state is not none %}
105+
{{ trigger.to_state.state > trigger.from_state.state }}
106+
{% else %}
107+
false
108+
{% endif %}
109+
actions:
110+
- action: notify.mobile_app_iphone
111+
metadata: {}
112+
data:
113+
message: A new document is available.
114+
```
115+
116+
{% endraw %}
117+
{% enddetails %}
118+
119+
## Data updates
120+
121+
This integration retrieves data using a pull-based mechanism.
122+
123+
- **Statistic sensors** are pulled every **120 seconds**
124+
- **Diagnostic sensors** are pulled every **300 seconds**
125+
- **Update checks** to detect new Paperless-ngx versions are performed **every 24 hours**
126+
127+
## Known limitations
128+
129+
There are a few known limitations for using the integration:
130+
131+
- This integration is only fully supported with **Paperless-ngx version 2.15 or later**. Earlier versions are not supported.
132+
- To enable monitoring of diagnostic sensors, you must have **administrator permissions**. Without administrator rights, specific API endpoints cannot be accessed, and the sensor states will not be available.
79133
80134
## Removing the integration
81135
82136
This integration follows standard integration removal. No extra steps are required.
83137
84138
{% include integrations/remove_device_service.md %}
139+
140+
## Troubleshooting
141+
142+
{% details "Message: 'Invalid hostname or IP address'" %}
143+
144+
If you get the message **Invalid hostname or IP address**, try the following steps:
145+
1. Make sure you enter a complete URL, such as `https://paperless.example.com` or `https://192.168.178.11:8011`.
146+
147+
2. SSL is enabled by default. If you're using an unencrypted connection, you must explicitly use `http://` instead of `https://` in the URL.
148+
149+
3. If you're using a self-signed certificate, disable the **Verify SSL certificate** option.
150+
151+
{% enddetails %}
152+
153+
{% details "Message: 'The token does not have permission to access the API'" %}
154+
155+
If you get the message **The token does not have permission to access the API**, try the following steps:
156+
1. Verify whether the token is still valid and correctly assigned to the user.
157+
158+
2. Test the token using the Swagger interface available at
159+
`https://paperless.example.com/api/schema/view/`
160+
- Click on **"Authorize"** in the Swagger UI to enter your token at **tokenAuth (apiKey)**.
161+
- Then, try accessing the relevant endpoints like `/api/statistics/` to ensure they respond as expected.
162+
163+
3. If everything works correctly in Swagger but the integration still fails, check whether a reverse proxy (e.g., NGINX) is returning an **HTTP 403 error**. If so, the integration may also report this as a permission issue.
164+
165+
{% enddetails %}
166+
167+
## Removing the integration
168+
169+
This integration follows standard integration removal, no extra steps are required.
170+
171+
{% include integrations/remove_device_service.md %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy