Energy management (EMS) – from 0.3.0
The app can plan your home around the 15-minute prices and your own solar power. It is off by default and starts as a dry run: it only calculates and logs. Each area gets its own «live» switch, and a global silent mode overrides them all.
What it does
| Area | Behaviour |
|---|---|
| Home battery | Plans charge / hold / normal per quarter-hour. Charges from the grid only if the cheap price plus losses plus a minimum gain per kWh (battery wear) is below the expensive hours later. Holds the charge for expensive hours. |
| EV charger | Solar surplus in amp steps (6–16 A, optional 1/3-phase switching), battery ramp (how much solar the car gets per battery level), «charge now» with limit, departure plan (target charge level, or a fixed energy per departure if the car does not report its level). |
| Main fuse protection | Watches every phase against your main fuse (e.g. 40 A × 90 %), throttles the EV charger, switches off loads from a list if a phase stays overloaded. |
| Heat pump | SG Ready recommendation (0:1) on sunshine or a full battery, optional forced mode (1:1). Separate hot water program at cheap prices, optional delay so hot water is made with solar. |
| Consumers | Surplus devices (dehumidifier, e-bike …) and program devices (dishwasher, washing machine, tumble dryer): start in the cheapest block or on solar surplus, at the latest after a wait you choose («Auto» in the widget), or right away with «Start now». |
How it switches
Apps cannot run Flow cards of other apps. The EMS therefore fires its own trigger «The energy management gives a command» (e.g. battery.charge, charger.set, sgready.boost), and your Flows carry out the action with the cards of your devices. Under Set up → EMS → Flow recipes you find ready-made recipes and a badge for each command showing whether a Flow is waiting. Simple on/off devices and relays can be switched directly.
Setup (Settings → Set up → EMS)
- Add the device «Energy management» (Devices → «+» → Swiss Dynamic Tariff & EMS). It needs the price device.
- Data sources: grid meter (power, and phase currents for the fuse protection), house consumption, PV inverter, home battery, optionally the car.
- Battery: planning, target and reserve, minimum gain per kWh (example: battery price ÷ (capacity × guaranteed cycles) ≈ 8 Rp./kWh).
- EV charger, consumers, SG Ready, hot water, main fuse: choose devices, then build the Flows from the recipes.
- Switch the energy management on with the switch at the top of Today. Watch the dry run for a few days under Today (log with the reason for every decision) and the plan under Outlook, then switch each area to live under Today.
Widgets
- Energy plan: today and tomorrow in quarter-hours: price, solar forecast, battery plan, EV charger and consumers.
- House connection: current per phase against your main fuse, peak of the day, outlook for the next 24 hours.
- Consumers: state of every consumer, SG Ready and hot water; «Start now» or «Auto».
Safety
- First run after start or after switching to live only observes.
- Meter or EV charger not readable: no blind charging (minimum current after 60 s, stop after 5 min).
- The app never sets SG Ready 1:0 (grid operator lock), not even briefly while switching.
- Devices you switch by hand are left alone.
- Important events (errors, switch-off by the fuse protection, heat pump not following, deleted devices or flows) go to the timeline once per incident – switch under Set up → EMS → Notifications.
- Problems: Today → «Report a problem: copy diagnostics» (anonymised, includes the events of the last 48 hours).
FAQ
Do I need a home battery, PV or an EV charger?
No. Use what you have: without PV there is no solar surplus, without a battery there is no battery planning, but price-based starts of appliances, hot water and the main fuse protection still work.
Which devices work?
Any Homey device whose values the app can read (power, battery level, charging state, temperature). Switching works directly for on/off devices and relays; everything else through your own Flow with the cards of the device.
Why do I need Flows for the commands?
Homey does not allow apps to run Flow cards of other apps. The app fires «The energy management gives a command», your Flow does the switching. Set up → EMS → Flow recipes shows what to build and whether a Flow is waiting.
What is the difference between dry run, silent mode and live?
Dry run (live off) calculates and logs but sends nothing for that area. Silent mode does the same for all areas at once and overrides every live switch. Live really switches.
Can I run it next to another energy management system?
Yes, but never let two systems control the same device. Switch the device off in the other system before you set it to live here.
How do I choose the minimum gain per kWh?
It is the wear of your battery per kWh: battery price ÷ (usable capacity × guaranteed cycles or throughput). Example: CHF 7’000 ÷ (13.8 kWh × 6’000) ≈ 8.5 Rp. The battery only charges from the grid if the saving is at least this much per kWh, on top of the charging losses.
My car does not report its charge level.
Set «Without charge level: energy per departure (kWh)» in the EV data source. The app then charges this energy before every departure of the weekly template, minus what was charged since plugging in.
My EV charger cannot switch phases / is single-phase.
Set phases, phase switching and minimum current under the EV charger → Advanced. Phase switching is off by default.
Is the main fuse value per phase?
Yes. 40 A means each phase is fused with 40 A. The app checks every phase on its own (with a reserve, default 90 %).
What do I need for SG Ready?
Two ways, chosen under Set up → EMS → SG Ready → «How are the states set?»:
- Two relays: two potential-free relays wired to the SG inputs of the heat pump by an electrician. Set the relays to be off after a power failure, so the heat pump falls back to normal mode.
- Flows (e.g. Modbus): many heat pumps take the SG Ready state over Modbus or their own app. You build one Flow per state (normal, recommendation, optionally forced) that writes it, for example a Modbus register. No relays needed.
In both cases SG Ready must be switched on in the heat pump menu. The app uses 0:0 normal, 0:1 recommendation and optionally 1:1 forced – never 1:0 (grid operator lock). If the heat pump reports its SG Ready state, the app can read it back and warns if it does not match.
Tomorrow's prices are not there yet. What does the EV plan do?
Until the new prices arrive it only uses quarter-hours that are clearly cheap among the known prices, the rest is planned as soon as tomorrow’s prices are published.
Does it need the internet?
Only to fetch the prices. Measuring, planning and switching run locally on Homey.
Something switched and I don't know why.
Today → Log shows every decision with its reason. For help, copy the diagnostics (Today → «Report a problem: copy diagnostics») and post them here.
Status
Tested in my own home for multiple weeks. Feedback very welcome!