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.
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.