Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danielolsson100/a2eac19e8ed97447c3742f12814d1c3b to your computer and use it in GitHub Desktop.
Save danielolsson100/a2eac19e8ed97447c3742f12814d1c3b to your computer and use it in GitHub Desktop.
Ferroamp and Easee
alias: Ferroamp > HA > Easee => Grid Equlizer
description: ""
trigger:
- platform: state
entity_id:
- sensor.ferroamp_grid_current
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.easee_dynamic_charger_limit
above: 0
- condition: or
conditions:
- condition: state
entity_id: sensor.easee_status
state: charging
- condition: state
entity_id: sensor.easee_reason_for_no_current
state: max_dynamic_circuit_current_too_low
action:
- if:
- condition: and
conditions:
- condition: numeric_state
entity_id: input_number.battery_sts_code
above: 0
below: 2
- condition: numeric_state
entity_id: sensor.ferroamp_esm_19440006_state_of_charge
below: 90
then:
- service: easee.set_circuit_dynamic_limit
data:
device_id: b40f1f45d28b0891fe8d
currentP1: >-
{{((45 - states('sensor.ferroamp_grid_current')|float) / 3) |
round(0,'floor') + states('sensor.easee_circuit_current')|int}}
else:
- service: easee.set_circuit_dynamic_limit
data:
device_id: b40f1f45d28b0891fe8d
currentP1: >-
{{((48 - states('sensor.ferroamp_grid_current')|float) / 3) |
round(0,'floor') + states('sensor.easee_circuit_current')|int}}
mode: single
alias: Easee => Default charge level
description: ""
trigger:
- platform: state
entity_id:
- sensor.easee_status
condition:
- condition: not
conditions:
- condition: state
entity_id: sensor.easee_status
state: charging
- condition: state
entity_id: sensor.easee_reason_for_no_current
state: max_dynamic_circuit_current_too_low
action:
- service: easee.set_circuit_dynamic_limit
data:
device_id: b40f1f45d28b0891fe8d
currentP1: 10
mode: single
@Fladric
Copy link

Fladric commented Apr 5, 2023

Thanks alot, using it with Ferroamp and Easee. I used the power for one of my ESO:s to control if the battery is charging, set it to be above 200 W of charging before lowering the charge amp to the Easee box.
Works good so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment