How to integrate Varta Battery - Github has a solution!?

Hello everyone,

I would like to integrate my electricity storage from Varta into HA and I have already found something on github that seems to work GitHub - Vip0r/vartastorage . Unfortunately, I have no idea how I can integrate the battery into HA based on the description. I have neither experience with python nor any other programming things. Could someone explain to me in detail what I have to do exactly? that would be great,

thank you very much, regards

Zahnpasta

Short answer would be probably no, given that you have no experience in programming. Explaining the whole process for you would mean educating you in programming, understanding the github repository and explaining the whole hole assistant system.

There is a developers page for home assistant, you can start reading from there

I know how to use the repository and have some rudimentary basic knowledge of yaml. Too bad I would have loved to have included the battery

1 Like

This is how you varta. :slight_smile:

Add this to your config.yaml to acess that config file you need to download the file editor you find it in the addonstore. You must ofcorse change the ipadress so it matches your varta.
And try to open the http resourse in your browser just to test.
Goodluck.

  • platform: rest
    name: varta_energy_totals_string
    scan_interval: 30
    resource: http://192.168.1.39/cgi/energy.js
    value_template: “{{ value.replace(’ ‘, ‘’).replace(’\n’, ‘’) }}”

template:

  • sensor:
    • name: “Varta Grid to Home Total”
      unit_of_measurement: “kWh”
      device_class: energy
      state_class: total
      state: >-
      {% set value = states(‘sensor.varta_energy_totals_string’) | string %}
      {% for item in value.split(’;’) %}
      {% if item.startswith(‘EGrid_AC_DC’) %}
      {{ item.split(’=’)[1] | int / 1000 }}
      {% endif %}
      {% endfor %}
    • name: “Varta Home to Grid Total”
      unit_of_measurement: “kWh”
      device_class: energy
      state_class: total
      state: >-
      {% set value = states(‘sensor.varta_energy_totals_string’) | string %}
      {% for item in value.split(’;’) %}
      {% if item.startswith(‘EGrid_DC_AC’) %}
      {{ item.split(’=’)[1] | int / 1000 }}
      {% endif %}
      {% endfor %}
    • name: “Varta Charged Total”
      unit_of_measurement: “kWh”
      device_class: energy
      state_class: total
      state: >-
      {% set value = states(‘sensor.varta_energy_totals_string’) | string %}
      {% for item in value.split(’;’) %}
      {% if item.startswith(‘EWr_AC_DC’) %}
      {{ item.split(’=’)[1] | int / 1000 }}
      {% endif %}
      {% endfor %}
    • name: “Varta Discharged Total”
      unit_of_measurement: “kWh”
      device_class: energy
      state_class: total
      state: >-
      {% set value = states(‘sensor.varta_energy_totals_string’) | string %}
      {% for item in value.split(’;’) %}
      {% if item.startswith(‘EWr_DC_AC’) %}
      {{ item.split(’=’)[1] | int / 1000 }}
      {% endif %}
      {% endfor %}

Hi,

sorry for my newbe questions but I am really new on HA.
I am not sure how to add this to my configuration.yaml. If I just add this plain to it, I get the following errors:

Integration error: platform - Integration 'platform' not found.
Integration error: scan_interval - Integration 'scan_interval' not found.
Integration error: resource - Integration 'resource' not found.
Integration error: value_template - Integration 'value_template' not found.
Integration error: name - Integration 'name' not found.

If I add a “varta” pseudo Integration, I will run into:

Integration error: varta - Integration 'varta' not found.

Should I add something in addition to my configuration.yaml before paste the lines you posted?
Please help on get this integration running.

Hello.
I have HA since today. :innocent: I am a absolute beginner. :expressionless:
My problem is that my washing machine and my shelly not works with the varta storage pulse neo. But it should like the varta flyer. The technician of varta had no idea. The technician of bosch sold me a controller which not works with varta and told me than trying home assistant. Now I have bought a raspberry and have installed HA and I see there is no integration possible. But I found my tv. :rofl:
Hours later I have found this forum and remembered some words in english.
Now I found here a script. Fantastic. Maybe my washing machine will works with my storage in this century.
Is there any manual for integrating the script in my homeassistant? I was searching for a book but I couldn’t found any.
Thanks you very much