You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: source/_components/sensor.file.markdown
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ha_release: 0.45
14
14
---
15
15
16
16
17
-
The `file` sensor platform reads the entries from a plain-text file and shows the found value. Only the last line of the file is used. This is similar to do `$ tail -n 1 sensor.txt` on the command-line.
17
+
The `file` sensor platform reads the entries from a plain-text file and shows the found value. Only the last line of the file is used. This is similar to do `$ tail -n 1 sensor.txt` on the command-line. Note that file paths must be added to [whitelist_external_dirs](/docs/configuration/basic/).
18
18
19
19
To enable the `file` sensor, add the following lines to your `configuration.yaml`:
0 commit comments