nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
195 stars 33 forks source link

How to set the dynamic current limit? #427

Closed ppuschmann closed 4 weeks ago

ppuschmann commented 4 weeks ago

Question

Hi there,

I want to use https://github.com/InventoCasa/ha-advanced-blueprints/tree/main/PV_Excess_Control to control my PV excess charging. This automation basically sets the desired charging current (in limits of 6A to 16A) to some helper variable and uses switch.<easee_id>_charger_enabled to switch the wallbox on/off.

I don't like the use of switch.<easee_id>_charger_enabled, but it works.

I now would use a helper-automation to change the actual value in the Easee Wallbox.

I now wonder how I should actually set this current limit:

alias: Wallbox Set Charging Current Limits
description: ""
trigger:
  - platform: state
    entity_id:
      - input_number.wallbox_strom_dynamisch # helper variable
  - platform: time_pattern
    minutes: "2"
condition:
  - condition: sun
    before: sunset
    after: sunrise
action:
  - service: easee.set_charger_dynamic_limit
    metadata: {}
    data:
      current: 616
      device_id: <my-device-id>
mode: single

This code was generate with the help of the UI.

I want to use 3 phases for charging.

Is then

action:
  - service: easee.set_charger_dynamic_limit
    metadata: {}
    data:
      current: 616
      device_id: <my-device-id>

correct, or is there something needed like

action:
  - service: easee.set_charger_dynamic_limit
    metadata: {}
    data:
      current_P0: 6
      current_P1: 6
      current_P2: 6
      device_id: <my-device-id>

Reason for the question: https://developer.easee.com/reference/post_api-sites-siteid-circuits-circuitid-dynamiccurrent is about 3 different values and also the readme uses this in the example:

service: easee.set_circuit_dynamic_limit
data:
  charger_id: EVK1234
  current_p1: 10

Yes, I know, that the current code examples use static values for the current. I'd like to find out how I should set a dynamic current to the wallbox.

Thank you.

What version of the integration are you using?

0.9.59

Anything in the logs that might be useful for us?

No response

Additional information

Maybe related: sensor.<charger_id>_dynamic_charger_limit is not available? image

ppuschmann commented 4 weeks ago

By reading the posts of #216 I found some explanation for my question.

'charger_circuit_dynamic_limit' awaits single circuits/ phases as attributes and the other one is for one value setting to all circuits.

I'd like to see this explanation in the docs and some more docs in general. Maybe I can find some time to try to improve things.

Links to the easee developer portal are quite worthless to me, since I only get the message "Not Yet Active - The creators of this project are still working on making everything perfect!" on every link.