19 Commits
Author SHA1 Message Date
Vlad DolomanandClaude Sonnet 5.5 62f027d6a9 Measure cache freshness from request arrival time
Record when the server received a request and use that, not the time the
inverter answered, for the cache window, so slow inverter reads no longer
shorten or stretch it for other clients.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 13:24:43 +02:00
Vlad DolomanandClaude Sonnet 5.5 e282042d7a Update README for the repository rename to deyeDashboard
Use the new clone URL and directory name and the new project title.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:59:31 +02:00
Vlad DolomanandClaude Sonnet 5.5 55d1ee7ad9 Cache inverter readings for poll interval minus 0.2 s
Define CLIENT_POLL_INTERVAL (5 s) in app.py, cache a reading for 4.8 s and
pass the interval to the page, so several clients share one inverter read
instead of each triggering their own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:51:45 +02:00
Vlad DolomanandClaude Sonnet 5.5 acc5f73547 Tolerate one failed update on the dashboard
Keep the old card values and show an amber "retrying" status after a single
failed update; only grey out the cards and show the red error after two
consecutive failures (MAX_TOLERATED_ERRORS). A failed first load still
shows the error immediately.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:51:45 +02:00
Vlad DolomanandClaude Sonnet 5.5 a6f8295d0e Add dashboard editor for registers 230 and 293
- writable_registers.py: shared whitelist, ranges and defaults (230: 0-115 A,
  293: 0-6500 W; defaults 43 and 4500) with strict validate_write()
- app.py: POST /api/registers validates everything before writing, writes
  under the inverter lock, reads each register back to verify; also reads
  register 230 for display
- index.html: Settings section with per-register Set, Default button,
  client-side digit/range checks and a confirm dialog
- read_registers.py: use the shared limits; README documents the feature

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:36:50 +02:00
Vlad DolomanandClaude Sonnet 5.5 5f1849af4d Auto-detect BMS packs and hide empty ones
- app.py: scan all 15 pack slots (600-809) on first request and every 5
  minutes; packs with zero voltage and SOC are dropped, and later reads
  only cover the active packs
- Per-pack byte-swap detection (SOC out of range raw but valid swapped)
  instead of assuming pack 2 is swapped
- API now returns bms_packs[] in place of the bms2_* fields
- index.html renders one section per connected pack, none if empty

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:23:53 +02:00
Vlad DolomanandClaude Sonnet 5.5 93e8304809 Add --read to register tool; fix BMS data on dashboard
- read_registers.py: --read N|START-END|START:COUNT for arbitrary registers
  (chunked, shows dec/hex/signed); README documents the tool
- app.py: BMS pack 2 (614-627) is byte-swapped by the firmware; swap back
  and scale (SOC 0.1%, temp +1000 offset); pack 1 is unused, so drop it
- index.html: BMS cards now show pack 2 SOC, voltage, current, temp,
  charge voltage and BMS charge current limit

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:17:55 +02:00
Vlad DolomanandClaude Sonnet 5.5 4d1ff0c7ea Fix dashboard bugs, verify register map against manual, harden scripts
- index.html: remove duplicated sections/IDs, restore card CSS, add fetch
  timeout and error handling, label relay and lithium type values
- app.py: close inverter connection in finally, socket timeout, lock plus
  2s cache, debug off, friendly missing-config error, HTTP 502 on failure
- app.py: fix register scaling per Deye Modbus V118 (battery temp +1000
  offset, charge efficiency 0.1%, block 5 off-by-one for 312-325)
- read_registers.py: drop hard-coded IP/serial (env or config.py), use
  argparse type validators, unify INVERTER_SLAVE_ID, document limits
- extract_pdf.py: main guard, argparse, output next to script, pypdf in
  docs/requirements.txt; pin requirements

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 19:14:33 +02:00
Vladyslav Doloman a7730a0e34 Added test/read_registers.py for testing 2025-11-24 02:33:24 +02:00
Vladyslav Doloman 9f96a3e534 feat: Introduce PDF register extraction utility with a sample Deye Modbus manual and update README with comprehensive project details. 2025-11-22 23:28:57 +02:00
Vladyslav Doloman 0b377db6c2 feat: Introduce a web interface for Deye inverter monitoring, expand Modbus data collection with new register blocks, and add supporting documentation. 2025-11-22 23:27:38 +02:00
Vladyslav Doloman e75f7222a0 feat: Enhance Deye inverter data extraction with a new web dashboard and Modbus register mapping tools. 2025-11-22 17:35:18 +02:00
Vladyslav Doloman a6b1010650 chore: remove inverter connection configuration file 2025-11-22 16:14:01 +02:00
Vladyslav Doloman 421f2b8db3 feat: Add example configuration and ignore config.py from version control. 2025-11-22 16:08:35 +02:00
Vladyslav Doloman 3468dce1b5 feat: Implement a Deye inverter monitoring web application with Flask, pysolarmanv5, and a basic HTML dashboard. 2025-11-22 15:47:11 +02:00
VaKU d94ef46507 Added documentation for Deye ModBus register IDs 2025-11-20 17:46:22 +02:00
VaKU b0fe47ab47 Update README.md 2025-11-20 17:39:53 +02:00
VaKU 24320dab75 Update README.md 2025-11-20 17:39:27 +02:00
VaKU 99e4370216 Initial commit 2025-11-20 17:36:36 +02:00