Read the meter with vision LLMs and push the index to Home Assistant

- Add Claude, Mistral and local Ollama (lfm3-vl) vision backends that read
  the digits inside the blue boxes of a cropped, upscaled picture
- Retry every 30s when the picture has no blue box or the reading does not
  have WATERMETER_DIGITS digits
- Set input_number.index_compteur_d_eau to reading * 100 when it is within
  1000 of the current value
- Append one line per run to watermeter.log for cron runs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Romulus21andClaude Opus 5.5 committed 2026-11-15 14:24:09 +01:00
1 parent 253206e6c5
commit 83208191f2
13 files changed
+713 -28

No files matched your search

+1
View File
@@ -2,3 +2,4 @@
.env
/models
/debug
watermeter.log