kirei / hass-chargeamps

Home Assistant Component for Chargeamps
Other
26 stars 8 forks source link

Charge Amps Aura missing functionality #61

Closed Miggle007 closed 2 days ago

Miggle007 commented 3 weeks ago

I am gladly using this integration and I am able to do the following:

However, I am mainly missing the thing that I want to automate on: Set the current per connector. When taking a look at the REST API documentation this is available. When digging in to this custom component it seems to be built in to this integration.

Does anyone recognize this? Does this also has to do with the CAPI > OCPP?

ReconOperator commented 1 week ago

Maybe I'm missunderstanding you, but have you checked the documentation here? https://github.com/kirei/hass-chargeamps?tab=readme-ov-file#services

set_max_current -- set max current for connector

I have a Halo with OCPP and I can set the max current with this Action in HA

Screenshot_20241116_232447_Home Assistant

You can test it under developer tools

Screenshot_20241116_232703_Home Assistant

tretabyte commented 1 week ago

Screenshot_20241116_232447_Home Assistant

Hi, did you build yourself the "Set Max Current"?, I've been trying to do it, but I don't have enough skills for it (I even made a post request here to see if we can get that by default with no luck). Another thing that would be useful would be to have a remote start and remote stop buttons, that way you can always turn it on but not start the charging until you really want it to.

ReconOperator commented 1 week ago

Screenshot_20241116_232447_Home Assistant

Hi, did you build yourself the "Set Max Current"?, I've been trying to do it, but I don't have enough skills for it (I even made a post request here to see if we can get that by default with no luck). Another thing that would be useful would be to have a remote start and remote stop buttons, that way you can always turn it on but not start the charging until you really want it to.

Yes i have done an automation for the "Set Max Current" that uses input from a input select helper.

alias: Halo Set Max Current description: Set Max current on Charge Amps Halo mode: single triggers:

Capture

tretabyte commented 1 week ago

mind sharing the entire yaml for that automatition?

this is what I have and its supposed to work but somehow it doesn't do the change

alias: chargeamp set_current
description: ""
triggers:
  - trigger: state
    entity_id:
      - input_select.set_current
conditions: []
actions:
  - action: chargeamps.set_max_current
    data:
      chargepoint: XXXXXXXXXX
      connector: 1
      max_current: |-
        {% if is_state("input_select.set_current", "6") %}
        6
        {% elif is_state("input_select.set_current", "8") %}
        8
        {% elif is_state("input_select.set_current", "10") %}
        10
        {% elif is_state("input_select.set_current", "12") %}
        12
        {% elif is_state("input_select.set_current", "14") %}
        14
        {% elif is_state("input_select.set_current", "16") %}
        16
        {% elif is_state("input_select.set_current", "18") %}
        18
        {% elif is_state("input_select.set_current", "20") %}
        20
        {% elif is_state("input_select.set_current", "22") %}
        22
        {% elif is_state("input_select.set_current", "24") %}
        24
        {% elif is_state("input_select.set_current", "26") %}
        26
        {% else %}
        Unknown
        {% endif %}
mode: single
ReconOperator commented 1 week ago

I shared the complete .yaml of the automation.

Did you create the input_select.set_current helper?

tretabyte commented 1 week ago

I shared the complete .yaml of the automation.

Did you create the input_select.set_current helper?

yep I did and the selector works wait.. I think it's working, somehow it takes like 1min or so to update but it works thank you very much for the help :)

Miggle007 commented 2 days ago

Hi @ReconOperator, Many many thanks for this! I've been looking everywhere except in developer tools. I've tested it just now and indeed this works perfectly. I'll create some sort of input selector the way you did in order to use it in manually changing and and mostly in automizing (peak shaving) this. Great and thanks again. My issue has been resolved.

Miggle007 commented 2 days ago

My issue has been resolved by using the developer tools