Expand description
Color helper functions for the TUI.
This module provides color coding for various sensor readings and status indicators.
§CO2 Level Color Coding
CO2 levels are color-coded based on air quality guidelines:
| Range (ppm) | Color | Meaning |
|---|---|---|
| 0-800 | Green | Good - Normal outdoor/indoor air quality |
| 801-1000 | Yellow | Moderate - Acceptable, some sensitivity |
| 1001-1500 | Orange | Elevated - Consider improving ventilation |
| 1501+ | Red | High - Poor ventilation, take action |
These thresholds are based on indoor air quality standards and the Aranet4 device’s built-in status indicators.
Functions§
- battery_
color - Returns a color based on battery percentage.
- co2_
color - Returns a color based on CO2 concentration level.
- connection_
status_ color - Returns a color based on the connection status.
- radon_
color - Returns a color based on radon concentration level.
- status_
color - Returns a color based on the sensor status indicator.