Commit Graph

60 Commits

Author SHA1 Message Date
Dusan Vojacek
8882fa0c91 Dashboard: TUV křivka napojená na skutečnou telemetrii TČ
Some checks failed
CI and deploy / migration-check (push) Successful in 17s
CI and deploy / deploy (push) Failing after 46s
tuv_actual_c byl od vzniku grafu placeholder (null), TUV chart nikdy
neukazoval data. Nové view vw_telemetry_heat_pump_15m_7d (15min agregace,
R__101 + grant R__072) a plnění slotů v useDashboardData. Teploty avg přes
přítomné řádky (idle-skip ok — není to výkon).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 00:09:10 +02:00
Dusan Vojacek
815a233049 feat(telemetry): idle-skip zápisů — neukládat 1min řádky idle zařízení
Some checks failed
CI and deploy / migration-check (push) Successful in 28s
CI and deploy / deploy (push) Failing after 17m56s
Slabý server: dict (tabulka, asset_id) → (signature, last_stored_at);
_idle_skip ukládá vždy při změně signature, aktivitě, po startu procesu
a heartbeat po > 840 s (každý 15min bucket má ≥ 1 řádek).

- telemetry_ev_charger: aktivní = status != 'available' nebo power > 50 W;
  signature (status, výkon na 100 W)
- telemetry_pool_pump: aktivní = is_on nebo power > 5 W (ON řádky 1/min
  kvůli on_minutes); signature (is_on, výkon na 10 W)
- telemetry_loxone_sensor: jen změna hodnoty ≥ 0.1 / heartbeat
- telemetry_heat_pump: aktivní = mode != 'off' nebo defrost; signature
  (mode, teploty na 0.2 °C)
- telemetry_inverter: beze změny — NIKDY se nepřeskakuje (audit Wh split,
  baseline, SoC plánovače)

Detekce příjezdu/odjezdu EV: previous_status přesunut z posledního řádku DB
do in-memory _EV_LAST_STATUS (po startu seed z vw_latest_ev_charger —
přechod během výpadku se pozná, prázdná DB nevystřelí falešný příjezd);
fn_ev_session_transition se volá jen při změně statusu.

PoolCard: staleness práh 5 → 16 min (> heartbeat 840 s).
Docs: telemetry.md sekce „Idle-skip zápisů" (pravidla pro nové čtecí dotazy:
sumy/gapfill, ne avg přes řádky), planning-changelog (TUV °C/min).
Testy: tests/test_telemetry_idle_skip.py — _idle_skip jednotkově + EV
arrival/departure přežije skip i restart procesu (303 passed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 19:06:41 +02:00
Dusan Vojacek
29d854f23d Bazén vizualizace + EV Discord notifikace po příjezdu (fáze A)
Some checks failed
CI and deploy / deploy (push) Has been cancelled
CI and deploy / migration-check (push) Has been cancelled
- R__097: vw_latest_pool_pump + vw_pool_pump_day_energy (denní kWh z delty
  čítače, minuty běhu) + ems_anon granty
- PoolCard na Dashboardu: stav/W/dnešní kWh+hodiny/7denní mini sloupce
- _notify_ev_arrival_plan: po příjezdu EV Discord souhrn (SoC auta → cíl,
  deadline, nabíjecí okna shlukovaná ze slotů aktivního plánu, ø cena)
- docs/discord-ev-interaction.md: fáze B (bot s tlačítky přes gateway —
  žádný veřejný endpoint; čeká na DISCORD_BOT_TOKEN od uživatele)
- docs: pool-shelly + ev-charging aktualizovány (pravidlo docs 1:1)

První commit na dev větvi (nová kadence: deploy až s milníkovým merge).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 10:59:09 +02:00
Dusan Vojacek
b5dbc8cf0a FE: oprava typování getElementsAtEventForMode (chart.js 4.4) + build ověřen
Runtime metoda není ve veřejných typech — typovaný cast v EnergyChart a
SocTuvChart. npm run build zelený; chunking funguje (index 81 kB, vendor-react
177 kB, recharts/nivo/chartjs lazy per route).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:40:53 +02:00
Dusan Vojacek
d767d0abca drobnost: komentář poll intervalu po změně na 15 s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:31:30 +02:00
Dusan Vojacek
f2901ef366 responsivita: grid breakpointy karet, ControlPanel max-h 50vh, touch targets a reduced-motion CSS
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:28:49 +02:00
Dusan Vojacek
02e0134794 responsivita: touch tooltipy — tap-to-pin panel u Chart.js, trigger click u Recharts
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:28:08 +02:00
Dusan Vojacek
eb360da910 responsivita: StatePanel label nad track na mobilu, Planning detail pod řádkem + min-w tabulky
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:25:22 +02:00
Dusan Vojacek
ca6bd4ab2a responsivita: výšky grafů přes tailwind chart-*, viewport-fit=cover
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:24:10 +02:00
Dusan Vojacek
293f32cff1 výkon: dashboard ve 2 vlnách (status hned, plán/telemetrie async), stale data bez blikání
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:23:23 +02:00
Dusan Vojacek
7c2669def6 výkon: manualChunks vendor knihoven a lazy route komponenty
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:22:05 +02:00
Dusan Vojacek
90f79d9abe výkon: pomalejší polling (60/15/120 s) a dynamický limit telemetrie 15m
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 14:21:28 +02:00
Dusan Vojacek
da79eec077 fix FE
Some checks failed
CI and deploy / migration-check (push) Failing after 20s
CI and deploy / deploy (push) Has been skipped
2026-05-26 08:10:54 +02:00
Dusan Vojacek
91a9bef3d7 implementace co nejdrive dosazeni SOC na home-01 a umozneni plneho socu n slotu ped koncem sell < 0
Some checks failed
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-26 08:07:00 +02:00
Dusan Vojacek
3b4d54dcc7 fix planning
Some checks failed
CI and deploy / migration-check (push) Failing after 22s
CI and deploy / deploy (push) Has been skipped
2026-05-21 14:18:21 +02:00
Dusan Vojacek
52bedcf67d uprava UI pro planovani
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-05-21 13:22:33 +02:00
Dusan Vojacek
44a06b6288 fix ranniho neprodeje do site
Some checks failed
CI and deploy / migration-check (push) Failing after 42s
CI and deploy / deploy (push) Has been skipped
2026-05-21 10:02:19 +02:00
Dusan Vojacek
7490ac3d70 planner v2 vc. porovnani
Some checks failed
CI and deploy / migration-check (push) Failing after 20s
CI and deploy / deploy (push) Has been skipped
2026-05-15 23:03:32 +02:00
Dusan Vojacek
d54579e3b1 fix build
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-05-05 10:49:40 +02:00
Dusan Vojacek
5b383e9028 sjednoceni forecastu
Some checks failed
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-05-05 10:42:49 +02:00
Dusan Vojacek
e8eb867a2a refactor export limit semantics
Some checks failed
CI and deploy / migration-check (pull_request) Failing after 15s
CI and deploy / deploy (pull_request) Has been skipped
2026-05-03 22:24:35 +02:00
Dusan Vojacek
e686bc1d2c fix solar sell pri male zaporne cene
Some checks failed
CI and deploy / migration-check (push) Failing after 11s
CI and deploy / deploy (push) Has been skipped
2026-05-01 10:38:40 +02:00
Dusan Vojacek
6743224cc5 ifx timeout u replannu
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-05-01 10:04:43 +02:00
Dusan Vojacek
f3a7b0c64f FE cutoff vizsualize
Some checks failed
CI and deploy / deploy (push) Has been skipped
CI and deploy / migration-check (push) Failing after 11s
2026-04-29 13:47:57 +02:00
Dusan Vojacek
dede8d604d fix cutoff a grid peak shaving register
Some checks failed
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
2026-04-29 13:36:38 +02:00
Dusan Vojacek
30585c9779 fix
Some checks failed
CI and deploy / migration-check (push) Failing after 18s
CI and deploy / deploy (push) Has been skipped
2026-04-27 18:48:04 +02:00
Dusan Vojacek
5b94f8baec fix prices reloading
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-27 18:42:06 +02:00
Dusan Vojacek
e4d4fee24d fix reload pv on dashboard
Some checks failed
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped
2026-04-27 18:39:13 +02:00
Dusan Vojacek
f6e239aa8d prepnuti k planovani na kkorigovany forecast
Some checks failed
CI and deploy / migration-check (push) Failing after 10s
CI and deploy / deploy (push) Has been skipped
2026-04-23 00:16:23 +02:00
Dusan Vojacek
1dfab8c7a1 dalsi uprava vypoctu delty (ignorujeme orezane vyroby)
Some checks failed
CI and deploy / migration-check (push) Failing after 17s
CI and deploy / deploy (push) Has been skipped
2026-04-22 22:42:12 +02:00
Dusan Vojacek
568b584748 kalibrace per pole
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-22 22:17:28 +02:00
Dusan Vojacek
5a66cfa63f ladime a ladime
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped
2026-04-22 21:05:14 +02:00
Dusan Vojacek
bc0966e4c4 tune forecast correction parametersw
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-22 20:47:32 +02:00
Dusan Vojacek
bd7d6a1b99 fix graf v sql
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-22 19:50:49 +02:00
Dusan Vojacek
9ca4b4c577 korkece fve predikce, grafy predikci
Some checks failed
CI and deploy / migration-check (push) Failing after 10s
CI and deploy / deploy (push) Has been skipped
2026-04-22 19:26:46 +02:00
Dusan Vojacek
b8515f30df implmemtace cuttoff genportu
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-20 10:41:10 +02:00
Dusan Vojacek
d8dbb284fd FE implementace deye modu
Some checks failed
CI and deploy / migration-check (push) Failing after 11s
CI and deploy / deploy (push) Has been skipped
2026-04-20 08:50:20 +02:00
Dusan Vojacek
ee4355f17f fix FE 96h forecast
Some checks failed
CI and deploy / migration-check (push) Failing after 17s
CI and deploy / deploy (push) Has been skipped
2026-04-19 21:40:55 +02:00
Dusan Vojacek
301f20612f fix drop tem[porary table
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
2026-04-19 21:16:26 +02:00
Dusan Vojacek
5c868083af fix planning bat vs sit
All checks were successful
CI and deploy / migration-check (push) Successful in 2s
CI and deploy / deploy (push) Successful in 1m5s
2026-04-19 14:52:12 +02:00
Dusan Vojacek
b4c58156f0 planning rosireni o vlastni spotrebu
Some checks are pending
CI and deploy / deploy (push) Blocked by required conditions
CI and deploy / migration-check (push) Successful in 3s
2026-04-19 14:49:10 +02:00
Dusan Vojacek
f7d3162eb7 fix forecast graf
All checks were successful
deploy / deploy (push) Successful in 1m30s
test / smoke-test (push) Successful in 7s
2026-04-12 20:55:10 +02:00
Dusan Vojacek
4e81a36371 stranka configuration
Some checks failed
test / smoke-test (push) Has been cancelled
deploy / deploy (push) Has been cancelled
2026-04-12 16:56:44 +02:00
Dusan Vojacek
b50041cfc7 do flow pridana ekonomika
All checks were successful
deploy / deploy (push) Successful in 1m21s
test / smoke-test (push) Successful in 5s
2026-04-10 23:06:25 +02:00
Dusan Vojacek
44ab3783ce flow - pridana perspektiva loadu
All checks were successful
deploy / deploy (push) Successful in 1m16s
test / smoke-test (push) Successful in 3s
2026-04-10 22:54:20 +02:00
Dusan Vojacek
a65d134682 flwo - denni sankey graf
All checks were successful
deploy / deploy (push) Successful in 1m19s
test / smoke-test (push) Successful in 3s
2026-04-10 22:49:43 +02:00
Dusan Vojacek
74ffa5c3e7 fix sankey
All checks were successful
deploy / deploy (push) Successful in 1m17s
test / smoke-test (push) Successful in 3s
2026-04-10 22:42:10 +02:00
Dusan Vojacek
f714cab0ab nova stranka flow a obsluha
All checks were successful
deploy / deploy (push) Successful in 8m52s
test / smoke-test (push) Successful in 5s
2026-04-10 22:13:58 +02:00
Dusan Vojacek
806274cf59 uprava adutiu - nacitani dalsich registru, uprava ekonomiky
Some checks failed
deploy / deploy (push) Failing after 1m15s
test / smoke-test (push) Successful in 2s
2026-04-10 21:53:32 +02:00
Dusan Vojacek
b8b3de2b70 fix materialized view 2026-04-10 20:56:42 +02:00