Sensors: humidity and temperature¶
FiloQ can read humidity and temperature from Home Assistant or any HTTP endpoint (Node-RED, ESPHome, …) and store the values on your spools. Settings → Sensors.
What FiloQ stores¶
Three FiloQ fields on spools (on a Spoolman server they are created after you confirm):
| Key | Type | Unit |
|---|---|---|
filoq_humidity |
float | % |
filoq_temperature |
float | °C |
filoq_climate_at |
datetime | time of the reading |
A sensor assigned to a location writes to every active (not archived) spool stored there. The location name must match exactly (case-sensitive). A sensor assigned to a single spool, for example one in its own dry box, takes precedence over its location, per value: humidity from the dry box, temperature still from the room.
Values are written only when they change (humidity by at least 1 %, temperature by 0.5 °C) or when the last write is 6 hours old. That keeps writes, live updates and iCloud records rare.
Where you see the values¶
- Locations show the current values.
- The spool details show the stored values under "Storage climate", also when they were written by a Home Assistant automation.
- The dashboard lists places above the humidity limit.
- Optional notification when the humidity is too high (off by default).
Humidity limit: a general limit (default 40 %) under Settings → Sensors, and an optional own limit per assignment.
When FiloQ reads¶
- App open: every minute, and on pull-to-refresh on the dashboard.
- App closed ("Update in the background", on by default): the operating system decides. Android runs the task about every 15 minutes at most (less with battery saver), iOS a few times a day depending on how you use the app. Sensors that can't be reached (for example Home Assistant only reachable at home) are skipped silently.
- Works with a Spoolman server and with the library on this device. Not in demo mode.
- Library on this device with iCloud sync: the sensor setup (sources, assignments, limit) is shared with your other devices. Home Assistant tokens and HTTP headers stay on each device: enter the token once per device (the source shows a hint until you do). With a Spoolman server, the setup stays on each device.
If you need the values in Spoolman continuously, also when your phone is off, let Home Assistant write them itself (see below). FiloQ shows them the same way.
Home Assistant¶
- In Home Assistant: your profile → Security → Long-lived access tokens → create one.
- FiloQ: Sensors → Add source → Home Assistant. Address, for example
http://homeassistant.local:8123, paste the token, Test connection. - Assign sensor → choose the location (or a spool) → pick the humidity and temperature entities
from the list (
sensor.*with device class humidity/temperature).
FiloQ uses GET /api/states/<entity>. Temperatures in °F are converted. unavailable and unknown
count as "no value". Self-signed HTTPS certificates are not supported for sensors: use HTTP in the
local network or a certificate the system trusts.
Node-RED, ESPHome or any HTTP endpoint¶
Source type HTTP / JSON. FiloQ accepts JSON or a plain number.
- JSON path: where the value is, for example
payload.humidityorsensors[0].value. Leave it empty if the answer is the number itself. - Value in °F: converts the value.
- Header (optional), for example an API key, per source.
Minimal Node-RED flow: it answers GET /filoq/box with the last values stored in the flow context.
Feed flow.humidity and flow.temperature from your sensor (MQTT in → change node, …).
[
{"id": "filoq_in", "type": "http in", "name": "FiloQ box", "url": "/filoq/box", "method": "get", "wires": [["filoq_fn"]]},
{"id": "filoq_fn", "type": "function", "name": "values", "outputs": 1,
"func": "msg.payload = { humidity: flow.get('humidity'), temperature: flow.get('temperature') };\nreturn msg;",
"wires": [["filoq_out"]]},
{"id": "filoq_out", "type": "http response", "name": "", "statusCode": "", "headers": {}, "wires": []}
]
In FiloQ: source HTTP / JSON with address http://nodered.local:1880, then for the location the path
/filoq/box with the JSON paths humidity and temperature. Both values come from one request.
Writing directly from Home Assistant¶
Optional, and independent of the phone. Spoolman 0.27 merges extra on PATCH, so only these keys are
changed. Extra values are JSON: numbers as "44.4", the time as a quoted string. Create the three
fields once (FiloQ does that when you assign a sensor, or in Spoolman → Settings → Extra fields).
rest_command:
filoq_climate:
url: "http://spoolman.local:7912/api/v1/spool/{{ spool_id }}"
method: PATCH
content_type: "application/json"
payload: >
{"extra": {
"filoq_humidity": "{{ states('sensor.box_humidity') | float | round(1) }}",
"filoq_temperature": "{{ states('sensor.box_temperature') | float | round(1) }}",
"filoq_climate_at": "\"{{ utcnow().strftime('%Y-%m-%dT%H:%M:%SZ') }}\""
}}
Call it from an automation (for example every 30 minutes) for each spool ID in the box. If FiloQ also reads the same sensor, both write the same values, which is harmless.
Errors¶
| Message | Meaning |
|---|---|
| Not reachable | Wrong address, or not in the same network |
| Access denied | Check the token or headers |
| Not found | Check the entity or the path |
| No number | The sensor is unavailable, or the JSON path is wrong |
| Fields not created yet | Tap to create the FiloQ fields; until then values are not stored |