All topics
The network drive
Files and websites
Cameras and sensors
Network and questions
Home and Sensor Data
A server that is awake around the clock is also a sensor sitting in your house. NAS Reborn reads its own instruments and, on newer devices, your [Apple Home](https://www.apple.com/home-app/) accessories, keeps their history, and hands both to template sites as ordinary template values.
What the device itself measures
No accessories and no extra hardware are needed for these; the phone already has them. Turn the ones you want on from the sensor picker.
- Air pressure from the barometer, in hPa, on devices that have one. A falling trend means weather on the way.
- Mains power: whether the device is on the charger or on battery, with every flip recorded as an event. "On battery since 14:32" is a power-cut log that nothing else in the house is keeping. The charge percentage rides along, so the drain curve is chartable.
- Movement, recorded as an event whenever the device is picked up or knocked off its shelf.
- Room noise in dB from the microphone.
Apple Home accessories
The app can also read the accessories already in your Home: temperature and humidity sensors, contact and motion sensors, leak detectors, air quality, switches and their state. Pick them per room in the app, and each one becomes a value your pages can print.
Reading them in a page
Accessories arrive as a home object and the device's own
instruments as device.sensors:
{{ home.hallway.temperature }} °C in the hallway
{{ device.sensors.pressure }} hPa, {{ device.sensors.noise }} dB
{% for a in home.accessories %}{{ a.name }}{% endfor %}
A page re-renders when a value it printed actually moves, and a page that reads nothing stays fully cached, so a dashboard costs the device nothing while the house is quiet.
History and charts
Readings are recorded on the device: 48 hours minute by minute, then hourly
figures going back around 400 days. A page reaches them through
history on the accessory, with points for the recent window and
hourly statistics for the long one, which is enough to draw a chart without
any service outside the house.
{% assign series = home.hallway.history.temperature %}
The Sensor Dashboard example
The quickest start is the Content tab's Add example → Sensor Dashboard.
Pick the accessories you want and it writes a working site: a tile per
reading with meters and charts, a readings.json endpoint, and
tiles that update themselves over a live stream rather than reloading the
page. Everything it writes is ordinary template source you can edit.
Sensitive readings stay off the open web
Some readings say whether anyone is home: motion, occupancy, contact, locks, security state, the microphone's noise level, and the house's location. Temperature, humidity, air pressure, power, leaks and battery do not, and are treated as ordinary values.
A public folder whose pages read a sensitive value serves nothing until you turn on Serve sensitive data for that folder. Until then the page is replaced by a short refusal that names no accessory and no value. The refusal is also indistinguishable from the outside: a withheld reading records no trace, so nothing about the answer's size, its cache behaviour or its timestamp shifts with the value it is hiding.
The dashboard example is created protected for this reason, so it works for your household from the first minute and only faces the internet when you decide it should.