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:
1 parent
253206e6c5
commit
83208191f2
13 files changed
+713
-28
No files matched your search
+4
-1
@@ -5,9 +5,12 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.104"
|
||||
base64 = "0.23.1"
|
||||
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
|
||||
dotenvy = "0.15.7"
|
||||
image = "0.25.10"
|
||||
ocrs = "0.13.1"
|
||||
reqwest = { version = "0.13.5", features = ["blocking"] }
|
||||
reqwest = { version = "0.13.5", features = ["blocking", "json"] }
|
||||
rten = "0.26.0"
|
||||
rten-imageproc = "0.26.0"
|
||||
serde_json = "1.0.151"
|
||||
Reference in new issue
Block a user