[App][Pro] Homey EMS (HEMS): Smart EMS

You did use the repair to link the devices properly?

Probably not :man_shrugging:
I must admit that some of the settings are not clear to me what they should do, like Mode Capability. That dropdown contains three seemingly unrelated settings.

I have a SolarEdge battery + inverter and an Alfen Eve Pro Single EV charger.

Send me a diagnostic report, then I’ll give it a look how you set it up and what commands are given

report generated: c5363647-0e0d-4a95-9671-31d5e024ad91

“Test Run” was enabled. Will this trigger the error (NO DESTINATION: available=3334W, no battery bound and EV not a sink → grid export) ?

Thanks for the diag report. Three things are stacking up:

1. You paired the wrong strategy device. Your log says device:smart-charging. The Smart Charging strategy is built for homes without a home battery, the battery role doesn’t exist in its wizard. So no battery bound isn’t a misconfiguration on your side, it’s what that device does by design. With a SolarEdge battery you want to remove this device and pair the Grid-aware one instead; that one has a battery role and will coordinate battery + car.

2. The “car is home” toggle is off. Every tick in your log shows the car as away, and the EV is only eligible as a surplus destination when that toggle is on. That’s why you had 1049W of surplus and still sent autoW=0, hence “EV not a sink”. Switch car at home on for the EMS device (and optionally drive it from a flow on your Alfen’s plugged-in state).

3. Test run is still enabled. Your log shows DRY_RUN: zou schrijven → chg[target_power=0W] on every tick, the app is only logging what it would write, never touching hardware. That’s exactly why the Alfen keeps charging at full power and your battery discharges into it: nothing is being controlled yet. Note this doesn’t cause the “NO DESTINATION” message, the decision is identical in test run and live, but it does mean nothing acts on it.

On your screenshot: set Mode capability to — not available —. chargetype / Green Comfort Level is Alfen’s own solar-charging mode, i.e. the self-managing fallback the hint warns about, and both mode values are 0 — Default anyway so it does nothing. Just target_power (W) is right. The phase dropdown only matters when the unit is A, so ignore it.

Order to fix: pair Grid-aware → run the repair/wizard and map the Alfen as above → turn “car at home” on → then turn Test run off.

Seems to work now :+1:

Question: there are some scheduled settings, but I cannot find if those are automatically ran by this app, or if I still need to configure additional flows for these myself. For example, this says “Your 22:00 prompt flow”, which seems to assume such a flow either exists, or is included in this app automatically:

No you have to trigger it yourself at the time you want it to run. It was a hint, but I see how it can be confusing :roll_eyes:

Good afternoon,

I want to try your app, but if I want to add my Sigenergy battery pack I can select it but I can’t select the options under write-mapping. What am I doing wrong.

I think something is off:

  1. when prices are negative for export and the battery is full, production stops
  2. this leads to EMS thinking there is no surplus
  3. when the car comes home and gets plugged in while production is paused, it is not activated, even though there is a potential surplus

The inverter app does not have a setting to change this behavior; it is the Negative Tariff Optimization which can be set in the SolarEdge app, to ensure that the system does not export during negative export prices and fully imports during negative import prices.

I just manually forced my car to start charging, and then the solar panels started producing again, and surplus is recognized again by EMS.

Edit: I just found the “Solar Curtailment Active” condition check in “Power By The Hour”. Is this also being used in this Smart EMS system to avoid this issue? If not, maybe that’s a way to fix it?

Interesting use case.
I was not aware of the inverter features like that.
Thinking about it; you can force this using the the force discharge to car button. It will drain the battery for an X time and push it into the car, causing an import/need (at least stop export) triggering the inverter to produce again I would expect.

My problem is I need to ‘know’ there could be power from the sun but your not producing it. This ‘gues/feeling/estimate’ is where it gets a bit fussy.

Indeed. Forcing the car to start at a maximum rate is what I tried to implement manually, but I’m running into all kinds of weird behavior. I suspect that the charger doesn’t like multiple apps connecting to the same device; the charging power keeps dropping to zero. For now I had to disable this app to even be able to charge at all.

You need to use the ems to do that, else the ems will try to correct it,
You give control to the ems, so don’t use other apps to control

Is there anyone who could help me with this?

Send me a DM with your device capabilities overview from the Homey development dashboard, in the devices tab there you can find the non UX capabilities and their raw values etc, send me those I’ll see why they are not showing.

It could be that the app of your batteries don’t expose writable capabilities

Hi Vincent,

Job well done! I was wondering: Is there a possibility to control a heat pump using smart EMS?

Rob