HEMS tutorial
#1512
Replies: 3 comments 4 replies
-
|
My comments:
|
Beta Was this translation helpful? Give feedback.
4 replies
-
|
We'd need to use some flex-model fields here, and the preferred way for some of them would be to set them on the asset, and have a lighter scheduling call. But until #1429 is ready, we will need to pass them with each API call. Let's make a note there that this would be an iteration. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
PR in flexmeasures-client : FlexMeasures/flexmeasures-client#134 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
These notes stem from a discussion with Nicolas and Vlad, May 27th 2025 in Delft
The tutorial is part of the KIFLIN project. Another one might be added (maybe as an extension) for using FlexMeasures as an S2-based HEMS.
Purpose
For the FlexMeasures project, such a tutorial is for developers (either non-hosts, but of course also hosts), and it can make clearer how to actually build services.
This tutorial should be using the FlexMeasures client (not the CLI, only when needed to make the account by the host, and to set up / run reporters) and also give UI screenshots that shows where to edit/add the same things in the UI.
The main purpose is to
FlexMeasures can build any energy problem, and hopefully that can become clear. If a reader is interested in building a service for an SME or public swimming pool, this tutorial will hopefully also be inspiring or at least helpful to imagine how FlexMeasures is to be used.
Scope
It might not be a 100% complete at first, but we can come close.
We aim for PV, battery, EV and heat buffer. To progress, we could start with
Optionally, we could discuss leaving the battery out of it, so we only do PV & smart EV charging, then add a heat battery.
It can be that the client does not contain all functionality - we'd probably take that as an opportunity to add it. Maybe the same holds for the UI (starting a scheduling job would be cool).
Time
Crucial decision: the scope of time (how many days of data) and "live" or not (taking actual data or dummy sets). We'll:
The plan / steps
We will focus on writing this as a client script, then afterwards write the tutorial.
This is what our script should do
It uses the client for almost anything, but for a few steps (1, 6) we use the CLI.
The first version could have only solar and battery, so we can see that it works. Then we add other assets, like EVs and/or heat pump.
Here is the general outline of the script (I'm not giving values for everything, let's figure this out as we go):
Part 1: Setup structure
sensors_to_showfor the building asset. Graphs: Energy flows, Battery SoC,Part 2: Add data
All data sets would be stored next to the tutorial. Not sure how to split them, as I would like to realistically first upload the first two weeks, then only upload the next data points step-by-step in part 3.
flexmeasures add forecasts), so I suggest we experiment with calling that from Python, to keep all this within one script. We can explain in the tutorial that one would run these in a cron job.Part 3: Scheduling (with some light simulation elements)
Now we go step-by-step through the 3rd week. Step size: 4 hours.
Part 4: Reporting
sensors_to_show_as_kpisfor the building asset.(For V2 - this is not worked out in detail)
(FOR V3 - this is not worked out in detail)
Initial ideas about writing the tutorial
Next steps
Later
Beta Was this translation helpful? Give feedback.
All reactions