Overview
Irrigation
Program
Water balance
Soil water deficit
Wind turbine
Power
Energy per day
Chicken guard
Sprays per day
When they come
Latest catches
Coop
All coop topics
Sauna
Temperature
Energy
The house
Blatnica, Slovakia. A 26.1 kWp solar roof (58 × 450 W, 9° pitch, facing south-west at 238°), a 79 kWh Dyness battery behind a Victron ESS (three-phase Multis, Cerbo GX), a Viessmann Vitocal heat pump with a 300 l hot-water tank, underfloor heating in eight rooms controlled by a TECH L-7E, a Victron EV charger and a Tesla Model 3. homeopt runs on the Mac mini and decides, a day and a half ahead, how all of it should run so the electricity bill is as low as it can be while the house stays comfortable.
What it decides
- Battery: when to charge, hold or discharge, and how much room to leave for tomorrow's sun.
- Heat pump and rooms: when to put heat into the floor slab (it stores heat for hours), within a band around your setpoints. Bedrooms are never warmed above yours.
- Hot water: when to heat the tank, keeping a reserve for the next three hours of draw.
- Car: when to charge it so it is at its limit by departure (07:00).
- Grid: what to import and when to export.
What it collects
- Victron over Modbus every 10 s: battery charge and power, solar, grid per phase, loads, ESS settings, BMS, the charger.
- Heat pump through ViCare every 5 min: tank and flow temperatures, compressor, outside temperature.
- Rooms through emodul every 5 min: temperature, setpoint, heating relay.
- Open-Meteo weather every 30 min: temperature, cloud, irradiance for the next two days.
- The car through the Tesla API: charge, limit, plugged, position, speed and heading — about hourly, see "The car".
- SSD's HDO switching schedule, re-downloaded weekly.
Prices
The house has a fixed-price SSE contract on the SSD DD5 two-tariff distribution: 20 hours of low tariff (NT) and 4 hours of high (VT) a day. With VAT the 2026 list prices (from 1 July, household with targeted energy aid) are 13.76 c/kWh in NT and 25.02 c/kWh in VT. The VT hours are set by SSD's HDO signal; the house's receiver code is not confirmed yet, so until it is every quarter hour is priced at the daily average (about 15.6 c). Exported solar is credited through SSE's virtual battery: it comes back as the commodity part of a later kWh, so an exported kWh is worth 8 to 10 c. Nothing here follows the OKTE market.
Forecasts
- Solar: the sun's position over this roof, the forecast irradiance and the panel temperature; a daily correction learns the real yield of the array.
- House load: a profile by hour of the week, learned from the Victron history.
- Heat: the house loses heat in proportion to inside-minus-outside temperature; the heat pump's efficiency (COP) depends on the outside temperature.
- Hot water: a daily draw profile.
The advisor
Once an hour DeepSeek reads the forecasts, prices, storage, the rooms, the car and its own advice of the last 24 hours, and returns five settings: how much to trust the solar forecast (0.3 to 1), how much battery to keep in reserve (20 to 60 %), whether hot water may be boosted, whether rooms may be pre-heated, and how likely the car is home tonight. It is told to stay consistent unless something material changed and to say what. Every answer is clamped to its range and may move only a step per hour (reserve ±10 points, solar trust ±0.2, car ±0.3). If the call fails, the last advice stands. It never touches a device.
The plan
A linear program (HiGHS) solves the next 36 hours in 15-minute slots, about 50 ms per solve, every 15 minutes: grid import and export, battery charge and discharge, heat-pump power for the slab, tank heating and car charging, subject to the battery limits (20 to 95 %, 7 kW charge, 5 kW discharge), the room bands, the tank reserve and the car's departure. Solar reserve: on a day with forecast surplus the battery must have room for 90 % of it by the first surplus slot, so night-time grid charging never pre-empts a sunny morning. Energy left in storage at the end is valued at the cheapest quartile price, never more. The same inputs are also run through a baseline — what the house would do by itself: self-consumption, heat pump on demand, car as soon as plugged — and the difference is the saving kept per day in the ledger.
The car
Only the Model 3 is followed; the Model Y in the same account is ignored. The reading is paid per request, so the car is polled hourly when parked at home, every 30 minutes while charging or driving, every two hours away or asleep, never woken, with a hard budget of 2,000 calls a month inside Tesla's free credit. "Home" is within 5 km. Plugged in at home, its energy need is the gap to its charge limit. Away, the plan expects it back by 18:00 with the gap weighted by a probability: 95 % within 60 km (Žilina), 80 % within 170 km (Bratislava), none further away; a car that has not come closer for a day is dropped until it does. Driving towards home (course within 60° of the way home, or getting closer) gives an arrival time from its speed over the road distance, and the plan treats it as plugged in from then. The advisor's judgement on the car overrides the rule when it gives one. The range is checked against the way home with a 20 % margin.
Acting and safety
- Each device has a mode: observe only records what the plan would do; control writes it. Every write is logged in the audit trail.
- Battery: the planned battery power becomes an ESS grid setpoint on the Cerbo through a Node-RED flow, recomputed every minute from the measured loads. The flow snapshots your settings on the first command and reverts to them three minutes after the last one, on pause, and when homeopt stops.
- Hot water: ViCare setpoint 55 °C plus a one-time charge when the plan heats the tank, 50 °C otherwise.
- Rooms: a constant temperature for 45 minutes through emodul, inside each room's band; the controller returns to your schedule by itself.
- Car: charger current from the planned power while a car is plugged in.
- Pause releases everything at once. Anyone with the link can watch this page; the controls work only from the house network.
Reading the page
The tiles are live. Doing now is the current slot of the plan and the next two hours. Advisor shows the five settings and the note. Plan is the next 36 hours: grid above zero is import, battery above zero is charging; the second chart is heat pump, hot water and car. Battery state of charge is measured for the last day and planned ahead. Price shows the tariff and the export credit. Last hours is what really happened. Rooms lists each room with its band and whether homeopt is holding it. Savings ledger compares plan and baseline per day. Events is the log.
Still unconfirmed
The HDO receiver code (the exact VT hours) and the exact virtual-battery credit. Everything else above is the live system.
Dom
Blatnica. Na streche 26,1 kWp fotovoltika (58 × 450 W, sklon 9°, orientácia juhozápad 238°), 79 kWh batéria Dyness za Victron ESS (trojfázové Multi, Cerbo GX), tepelné čerpadlo Viessmann Vitocal s 300 l zásobníkom teplej vody, podlahové kúrenie v ôsmich miestnostiach riadené TECH L-7E, nabíjačka Victron a Tesla Model 3. homeopt beží na Mac mini a rozhoduje deň a pol dopredu, ako to všetko má bežať, aby bol účet za elektrinu čo najnižší a v dome ostalo pohodlie.
O čom rozhoduje
- Batéria: kedy nabíjať, držať alebo vybíjať a koľko miesta nechať na zajtrajšie slnko.
- Tepelné čerpadlo a miestnosti: kedy dať teplo do podlahy (tá ho drží hodiny), v pásme okolo vašich nastavení. Spálne sa nikdy nevyhrievajú nad vaše nastavenie.
- Teplá voda: kedy ohrievať zásobník, s rezervou na ďalšie tri hodiny odberu.
- Auto: kedy ho nabíjať, aby bolo do odchodu (07:00) na svojom limite.
- Sieť: čo dovážať a kedy vyvážať.
Čo zbiera
- Victron cez Modbus každých 10 s: nabitie a výkon batérie, slnko, sieť po fázach, spotreba, nastavenia ESS, BMS, nabíjačka.
- Tepelné čerpadlo cez ViCare každých 5 min: teplota zásobníka a výstupu, kompresor, vonkajšia teplota.
- Miestnosti cez emodul každých 5 min: teplota, nastavenie, relé kúrenia.
- Počasie z Open-Meteo každých 30 min: teplota, oblačnosť, žiarenie na dva dni.
- Auto cez Tesla API: nabitie, limit, pripojenie, poloha, rýchlosť a smer — zhruba raz za hodinu, pozri „Auto“.
- Harmonogram prepínania HDO od SSD, sťahovaný raz týždenne.
Ceny
Dom má zmluvu s SSE s pevnou cenou a dvojtarifnú distribúciu SSD DD5: 20 hodín nízkej tarify (NT) a 4 hodiny vysokej (VT) denne. S DPH sú cenníkové ceny 2026 (od 1. júla, domácnosť s adresnou energopomocou) 13,76 c/kWh v NT a 25,02 c/kWh vo VT. Hodiny VT určuje signál HDO od SSD; kód prijímača domu zatiaľ nie je potvrdený, takže dovtedy má každá štvrťhodina dennú priemernú cenu (asi 15,6 c). Vyvezené slnko sa započítava cez virtuálnu batériu SSE: vráti sa ako silová časť neskoršej kWh, takže vyvezená kWh má hodnotu 8 až 10 c. Nič z toho nesleduje trh OKTE.
Predpovede
- Slnko: poloha slnka nad touto strechou, predpovedané žiarenie a teplota panelov; denná korekcia sa učí skutočný výnos poľa.
- Spotreba domu: profil podľa hodiny v týždni, naučený z histórie Victronu.
- Teplo: dom stráca teplo úmerne rozdielu vnútornej a vonkajšej teploty; účinnosť čerpadla (COP) závisí od vonkajšej teploty.
- Teplá voda: denný profil odberu.
Poradca
Raz za hodinu DeepSeek prečíta predpovede, ceny, zásobníky, miestnosti, auto a svoje vlastné rady za posledných 24 hodín a vráti päť nastavení: ako veriť predpovedi slnka (0,3 až 1), koľko batérie držať v rezerve (20 až 60 %), či smie prihriať teplú vodu, či smie predhriať miestnosti a aká je šanca, že auto bude večer doma. Má byť konzistentný, kým sa nezmení niečo podstatné, a povedať čo. Každá odpoveď je orezaná do medzí a za hodinu sa smie posunúť len o krok (rezerva ±10 bodov, dôvera slnku ±0,2, auto ±0,3). Ak volanie zlyhá, platí posledná rada. Zariadení sa nikdy nedotýka.
Plán
Lineárny program (HiGHS) rieši ďalších 36 hodín v 15-minútových slotoch, asi 50 ms na výpočet, každých 15 minút: dovoz a vývoz zo siete, nabíjanie a vybíjanie batérie, výkon čerpadla do podlahy, ohrev zásobníka a nabíjanie auta, pri limitoch batérie (20 až 95 %, 7 kW nabíjanie, 5 kW vybíjanie), pásmach miestností, rezerve zásobníka a odchode auta. Slnečná rezerva: v deň s predpovedaným prebytkom musí mať batéria do prvého prebytkového slotu miesto na 90 % z neho, takže nočné nabíjanie zo siete nikdy neukradne slnečné ráno. Energia, ktorá na konci ostane v zásobníkoch, sa oceňuje najlacnejším kvartilom cien, nikdy viac. Tie isté vstupy prejdú aj základom — čo by dom robil sám: vlastná spotreba, čerpadlo podľa potreby, auto hneď po pripojení — a rozdiel je úspora, vedená po dňoch v ledgeri.
Auto
Sleduje sa len Model 3; Model Y v tom istom účte sa ignoruje. Čítanie sa platí za každý dotaz, takže auto sa číta raz za hodinu, keď stojí doma, každých 30 minút pri nabíjaní alebo jazde, každé dve hodiny mimo domu alebo v spánku, nikdy sa nebudí a mesačný strop je 2 000 dotazov v rámci bezplatného kreditu Tesly. „Doma“ je do 5 km. Pripojené doma potrebuje toľko, koľko mu chýba do limitu. Mimo domu plán čaká návrat do 18:00 s potrebou váženou pravdepodobnosťou: 95 % do 60 km (Žilina), 80 % do 170 km (Bratislava), ďalej nič; auto, ktoré sa deň nepriblížilo, sa vypustí, kým sa nepriblíži. Pri jazde domov (kurz do 60° od smeru domov alebo približovanie) sa z rýchlosti a cestnej vzdialenosti odhadne príchod a plán s ním počíta ako s pripojeným od tej chvíle. Úsudok poradcu o aute má prednosť pred pravidlom, keď ho dá. Dojazd sa porovnáva s cestou domov s 20 % rezervou.
Konanie a bezpečnosť
- Každé zariadenie má režim: observe len zaznamená, čo by plán urobil; control to zapíše. Každý zápis je v audite.
- Batéria: plánovaný výkon batérie sa stane nastavením ESS na Cerbe cez Node-RED tok, každú minútu prepočítaným z nameranej spotreby. Tok si pri prvom povele uloží vaše nastavenia a vráti sa k nim tri minúty po poslednom povele, pri pauze a keď sa homeopt zastaví.
- Teplá voda: cez ViCare nastavenie 55 °C a jednorazový ohrev, keď plán ohrieva zásobník, inak 50 °C.
- Miestnosti: konštantná teplota na 45 minút cez emodul v pásme každej miestnosti; regulátor sa sám vráti k vášmu programu.
- Auto: prúd nabíjačky z plánovaného výkonu, kým je auto pripojené.
- Pauza všetko naraz uvoľní. Na stránku sa môže pozerať ktokoľvek s odkazom; ovládanie funguje len z domácej siete.
Ako čítať stránku
Dlaždice sú živé. Doing now je aktuálny slot plánu a ďalšie dve hodiny. Advisor ukazuje päť nastavení a poznámku. Plan je ďalších 36 hodín: sieť nad nulou je dovoz, batéria nad nulou nabíjanie; druhý graf je čerpadlo, teplá voda a auto. Battery state of charge je namerané za posledný deň a plánované dopredu. Price ukazuje tarifu a kredit za vývoz. Last hours je, čo sa naozaj stalo. Rooms vypíše každú miestnosť s pásmom a či ju homeopt práve drží. Savings ledger porovnáva plán a základ po dňoch. Events je denník.
Zatiaľ nepotvrdené
Kód prijímača HDO (presné hodiny VT) a presný kredit virtuálnej batérie. Všetko ostatné vyššie je živý systém.