nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
207 stars 34 forks source link

Get sensor für current power #190

Open Fummy1990 opened 2 years ago

Fummy1990 commented 2 years ago

Feature request

I use this:

alias: Ladesteuerung_Auto_L1_Erhöhunv
description: ''
trigger:
  - platform: state
    entity_id: sensor.netzuerberschuss_ampere
condition:
  - condition: numeric_state
    entity_id: sensor.netzuerberschuss_ampere
    above: '0'
    below: '22'
action:
  - service: easee.set_charger_circuit_dynamic_limit
    data:
      charger_id: EH775940
      currentP1: '{{ states.sensor.easee_vorgarten_dynamic_circuit_limit.state|int + 1 }}'
      currentP2: 0
      currentP3: 0
mode: single
max: 3 

to charge only as much as I have overload from the pv. But I cant set only this:

action:
  - service: easee.set_charger_circuit_dynamic_limit
    data:
      charger_id: EH775940
      currentP1: '{{ states.sensor.easee_vorgarten_dynamic_circuit_limit.state|int + 1 }}'
mode: single
max: 3

to just change one phase.Then what I set it will also set to current P2 and 3. Is it possible to read out the currentP2 and P3 from the wallbox?

What version of the integration are you using?

v0.9.43

Anything in the logs that might be useful for us?

No response

Additional information

No response

olalid commented 2 years ago

Yes, the settings for each phase can be seen as attributes to the dynamic_circuit_limit sensor. So you would in your case be able to access it as: {{ state_attr('sensor.easee_vorgarten_dynamic_circuit_limit', 'state_dynamicCircuitCurrentP1'') }} And so on.

Fummy1990 commented 2 years ago

Yes, the settings for each phase can be seen as attributes to the dynamic_circuit_limit sensor. So you would in your case be able to access it as: {{ state_attr('sensor.easee_vorgarten_dynamic_circuit_limit', 'state_dynamicCircuitCurrentP1'') }} And so on.

Thanks it worked. I only had to create an sensor with your code first.