Add Celsius/Fahrenheit temperature unit toggle (v2.2.0)

- New `temperature_unit` config option ('C' or 'F', default 'F')
- Temperature thresholds, graph ranges, and status labels adapt to unit
- Toggle available in both modern and fallback visual editors
This commit is contained in:
KadenThomp36 2026-02-11 11:29:35 -05:00
parent ef2922a1f6
commit 1667470bc7
2 changed files with 46 additions and 12 deletions

View file

@ -55,6 +55,7 @@ temperature_entity: sensor.air_quality_temperature
air_quality_entity: sensor.air_quality_index
recommendation_entity: sensor.air_quality_recommendation
hours_to_show: 24
temperature_unit: C
```
### Configuration Options
@ -69,6 +70,7 @@ hours_to_show: 24
| `air_quality_entity` | string | No | - | Overall air quality index entity |
| `recommendation_entity` | string | No | - | Recommendation template sensor |
| `hours_to_show` | number | No | 24 | Hours of history to display (1-168) |
| `temperature_unit` | string | No | "F" | Temperature unit: "F" (Fahrenheit) or "C" (Celsius) |
## Recommendation Sensor