Harden temperature assignment clearing

This commit is contained in:
2026-06-05 02:51:47 -06:00
parent 2f61c968a2
commit 757b9acdd9
3 changed files with 34 additions and 7 deletions
+11 -1
View File
@@ -641,4 +641,14 @@ Request:
Temperature sensor config entries now include `weather: true`.
When a configured temp sensor has `weather: true`, the WebUI may show it as the outside/weather temperature badge. The `/status` temp objects also include this flag so HTTP, UART, USB serial, and future Pico clients can identify the selected outside-air sensor without guessing from the sensor name.\n
When a configured temp sensor has `weather: true`, the WebUI may show it as the outside/weather temperature badge. The `/status` temp objects also include this flag so HTTP, UART, USB serial, and future Pico clients can identify the selected outside-air sensor without guessing from the sensor name.\n\n\n### Clear temperature assignments
`POST /temps/clear`
Request body options:
- `{ "id": "temp_1" }` clears one logical temp slot by ID.
- `{ "slot": 1 }` clears one logical temp slot by number.
- Empty POST body clears all temp assignments.
Clearing removes the stored DS18B20 address, disables the slot, clears the weather flag, resets cached temperature state, and persists config.\n