thanks, plug_status is the right one. In App Settings → EMS → EV Chargers, choose it as the Keba’s *Charging state*. If it isn’t in that list yet, the next version of the app adds it and selects it for you. Please don’t leave the field on “not used”: the EMS would then take the car as never plugged in and not charge at all.
When your car arrives, I’d be glad to hear how the first sessions go, especially whether the P40 stops when the surplus is gone (see the 6 A limit from my last post).
I’m back again, utilizing your amazing app now when we yet another time have erngy crisis in north of Europe
Anyways, I’m missing a flow card that could help a lot of automatic scheduling: Set TOU charge/discharge windows
I have built a script that checks my historical usage in the home, how the solar panels are producing, getting next days spot prices and by that calculate if and when I should load my batteries and when I should discharge to utilize them fully..
I get Missing scopes when I try to write to the registry 47255 and set the timings, but I can manually change them in the settings for the battery in homey(with your app), so it could probably be an easy fix for you to just create a new card for it?
Thanks in advance
(and if you don’t remember me, I’m the guy who tested the 2 battery with 2 inverters and 1 dongle, a while bak)
By the way, again, the app works great, even though modbus is not all the time
of course I remember you. Good to hear from you again!
The “Missing scopes” error comes from Homey, not from the battery: Homey doesn’t let scripts change an app’s device settings. So I’ve added a flow card instead: Set Time of Use windows for the LUNA2000 (Modbus) battery. It’s in test version 1.3.15: https://homey.app/a/com.huawei.fusionsolar/test/
It takes the same text as the “Charge/discharge windows (Time of Use)” field in the battery’s settings. Separate the windows with ;, so your script can pass them in as a text tag:
at most 14 windows, no overlaps on the same day; end with 23:59 rather than 00:00
The card replaces all windows. If the text has a mistake, or the battery refuses the write, the flow fails with a message saying why, and the battery keeps its previous windows.
The card works once the app has read the windows from the battery, shortly after the app starts.
If the battery already has exactly these windows, nothing is written. An empty text removes all windows.
Two things to keep in mind:
The windows only apply in the working mode “Time of Use (LUNA2000)”. You can switch to it with the “Set storage working mode” card.
+ windows charge from the grid only when “Charge battery from grid” is on. The “Set charge from grid” card does that.
Let me know how it works with your script!
Since you mention that Modbus drops now and then: this test version also changes how the app closes its Modbus connections. If you still see drops with it, please send a diagnostic report from the app and tell me roughly when it happened.
It gets stuck for some seconds while setting the parameter so I got nervous but then it passed and I could now easily steer the timing. Will have a look over the coming days about the modbus drops and see how it works.