Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: ability to provide dynamic SoC values from sensor in scheduling #931

Open
nhoening opened this issue Dec 14, 2023 Discussed in #916 · 4 comments
Open

CLI: ability to provide dynamic SoC values from sensor in scheduling #931

nhoening opened this issue Dec 14, 2023 Discussed in #916 · 4 comments
Assignees
Labels
Milestone

Comments

@nhoening
Copy link
Contributor

Discussed in #916

Originally posted by kyros32 November 29, 2023
Hello Flexers,

1) I was wondering, how can I use SoC data --soc-at-start from a sensor?

Instead of this:

flexmeasures add schedule for-storage --sensor-id 2 --consumption-price-sensor 1 \
    --start ${TOMORROW}T07:00+01:00 --duration PT12H \
    --soc-at-start 50% --roundtrip-efficiency 90%

Something like this, so SoC is pulled dynamically everytime I force rescheduling via CRON for example or API call.

flexmeasures add schedule for-storage --sensor-id 2 --consumption-price-sensor 1 \
    --start ${TOMORROW}T07:00+01:00 --duration PT12H \
    --soc-at-start sensor-id 14 --roundtrip-efficiency 90%

I could fill it as a variable for in a call, but I think, why not to use an associated sensor with it. More simplex...

Any help much appreciated.
Robert

@nhoening
Copy link
Contributor Author

I believe after #897, we'd pass a sensor on the CLI like this: --soc-at-start sensor:14. The Marshmallow schema might need a little adaptation, but that is the gist.
We might support this in the flex-model as well, btw, and that would be where our main attention goes for this.

@nhoening nhoening added this to the 0.20 milestone Feb 15, 2024
@nhoening
Copy link
Contributor Author

nhoening commented Feb 15, 2024

I'm not sure, but I don't think #897 worked on the CLI. So this is where the focus of this issue would probably lie, see my last comment.

We could check that the CLI supports this format for all flex-model attributes which support passing in a sensor.

@nhoening nhoening changed the title Dynamic SoC values from sensor in scheduling CLI: ability to provide dynamic SoC values from sensor in scheduling Feb 15, 2024
@nhoening nhoening added the CLI label Feb 15, 2024
@Ahmad-Wahid Ahmad-Wahid self-assigned this Feb 16, 2024
@Ahmad-Wahid
Copy link
Contributor

Ahmad-Wahid commented Feb 26, 2024

@victorgarcia98, I believe you wanted to store soc-at-start for the sensor in the attributes, right ?

@victorgarcia98
Copy link
Contributor

I think we need to narrow a bit the scope of the issue. Perhaps, it would be nice to have a 15min-30min session with @Flix6x .

Currently, we are only using a power sensor for scheduling a storage device but, in the near future, on the transition of scheduling on the Asset instead of a sensor, we could include a SOC sensor as well. This way, the scheduler itself could save the planned SOC values and the users could save the realized SOC values in a different source, similar to what we do for the power sensor.

Nonetheless, this requires quite a lot of changes and we could achieve a similar functionality by handling this at the command level. In the case of the API, users should be able to fetch the latest values and build the flex-model with that.

@nhoening nhoening modified the milestones: 0.20, 0.21 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants