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

Maximum On-Time per Device per Day #47

Closed
pattex007 opened this issue Jul 17, 2024 · 3 comments
Closed

Maximum On-Time per Device per Day #47

pattex007 opened this issue Jul 17, 2024 · 3 comments
Labels
developed The issue is developed and is waiting for release enhancement New feature or request P1 Priority

Comments

@pattex007
Copy link

My Pool Pump is running 10 hours a day, which is a little bit to long.

it would be great if there is a option like "duration_max_per_day: 120" in minutes in the device section

@jmcollin78 jmcollin78 added the enhancement New feature or request label Jul 17, 2024
@jmcollin78
Copy link
Owner

Hello, yes it is a good idea in the direction taken by all change request.

@jmcollin78
Copy link
Owner

https://github.com/jmcollin78/solar_optimizer/releases/tag/2.0.0.beta1

Please give a try to this pre-release. To use it you should add a max_on_time_per_day_min: <value in minutes> in your solar_optimizer.yaml file. Example:

solar_optimizer:
  algorithm:
...
    - name: "Equipement name"
      entity_id: "input_boolean.fake_device_g"
      power_max: 1200
      check_usable_template: "{{ True }}"
      duration_min: 1.5
      action_mode: "service_call"
      activation_service: "input_boolean/turn_on"
      deactivation_service: "input_boolean/turn_off"
      battery_soc_threshold: 40
      max_on_time_per_day_min: 30              <------------------ add this
...

You will also notice than there is now one device per devices in solar_optimizer.yaml in which you will find some entities:
Capture d’écran 2024-09-30 à 13 56 50

This point can create backward compatibilities issues depending on how you use it.

@pattex007
Copy link
Author

Very good work, implementation works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developed The issue is developed and is waiting for release enhancement New feature or request P1 Priority
Projects
None yet
Development

No branches or pull requests

2 participants