Skip to content

Environmental awareness

CONTEXT, NOT RAW CONTROL

Use the Sensors page in Web Admin to inspect environmental readings and availability. The optional sensors are not required for PHOS's display or basic local behavior. When a reading is stale, warming up or unavailable, PHOS does not treat it as a fresh measurement or invent a replacement value.

Sensor paths and readings

flowchart LR
  bme["BME280 · optional local Pi I²C<br/>Temperature · pressure · humidity"]
  bmp["BMP280 · optional local Pi I²C<br/>Temperature · pressure"]
  ens["ENS160 · optional compatible ESP32<br/>TVOC · AQI-UBA · estimated eCO₂"]
  aht["AHT21 · optional compatible ESP32<br/>Temperature · humidity"]

  interpreter[EnvironmentalInterpreter]
  semantics[Confirmed environmental states<br/>and overlay intents]
  behavior[BehaviorEngine / FaceState]
  output[PHOS visual response<br/>Eyes · overlays · configured LEDs]

  bme --> interpreter
  bmp --> interpreter
  ens --> interpreter
  aht --> interpreter
  interpreter --> semantics --> behavior --> output

  classDef hardware fill:#334155,stroke:#94A3B8,color:#fff
  classDef phos fill:#0F4C5C,stroke:#49E7FF,color:#fff
  class bme,bmp,ens,aht hardware
  class interpreter,semantics,behavior,output phos
  style bme stroke-dasharray:5 3
  style bmp stroke-dasharray:5 3
  style ens stroke-dasharray:5 3
  style aht stroke-dasharray:5 3

What the readings mean

The BME280 measures humidity; the BMP280 does not. ENS160 eCO₂ is an estimate/equivalent value, not direct NDIR CO₂. AHT21 temperature and humidity have their own freshness and availability, independently of ENS160 air-quality warm-up.

Use BME280/BMP280 on the supported local I²C path, or ENS160/AHT21 through a configured compatible ESP32 controller. See the hardware guide for supported arrangements. These are optional, and the supplied config does not enable environmental sensor paths by default.

Network-connected external sensors can provide separately mapped MQTT readings; see External Devices — MQTT & ESPHome. Those readings remain external observations and do not replace these local environmental interpretations.

PHOS interprets environmental context rather than mapping raw values straight to a renderer. Configuration can enable confirmed semantic states and visual effects; environmental behavior is disabled by default. Readings are not warnings merely because they are absent or old.

Configured behavior can confirm and recover states such as COLD, WARM, AIR_QUALITY_WARNING and AIR_QUALITY_BAD over time. Missing, stale or unavailable readings do not create an alarm. Partial sensor availability can still provide usable measurements from another sensor; ENS160 warm-up withholds air-quality rules while independent fresh temperature may remain available.

The single priority state drives persistent eye/LED behavior. Independently confirmed overlay intents are additive: warm conditions can add sweat, cold can add snow/ice, and air quality can add haze. Temperature and air-quality overlays can coexist in a shared safe display band.

Try it

  1. Connect and configure one of the supported optional sensor paths.
  2. Enable the matching sensor and, if desired, environmental behavior on the Sensors page; save and restart when the page indicates it is required.
  3. Open Sensors and check the value and availability. Wait for sensor conditioning where status indicates warm-up.

Expected result: available measurements appear with their own status. A missing device, stale value or warm-up state remains unavailable rather than being shown as a current zero. Physical setup is covered in the hardware and existing installation references.