redi78
November 11, 2025, 12:17pm
1
HI,
has anyone had experience with this electricity cooperative and does anyone have an idea how it can be integrated into home automation? There’s also an API interface available.
[https://support.efriends.at/hc/de/articles/26626854641181-Schnittstelle-Leistungsdaten ]
Thanks for you answers.
Beno82
February 26, 2026, 7:56pm
2
Hi, i tinkered a bit and finally got a result in my HA
put this in your configuration.yaml and you should get a “efriends_pv_meter” sensor.
rest:
- resource: http://<your Cube IP>/v3/MeterDataAPI/getCurrentValue?format=xml
method: GET
scan_interval: 5
headers:
apiKey: "<Your API Key from the App>"
content-type: "application/xml;charset=UTF-8"
sensor:
- name: "eFriends PV Meter"
device_class: energy
value_template: "{{ value_json['energyData']['energyBalance']}}"
this refreshes every 5 seconds on your main screen, you can change that by editing “scan_interval” up or down.
i might tinker a bit more since i want to color it red or green depending on the value shown.
Edit: Also don’t forget to restart HA after pasting this into the config file, otherwise you wont have the sensor available
Greetings from Vienna, Andreas