Vartastorage
No description available
Install / Use
/learn @Vip0r/VartastorageREADME
Vartastorage
With this Python module you can read modbus registers and xml api values from various VARTA batteries. Tested on my VARTA element/12 battery. Should work for other VARTA element, pulse, pulse neo, link and flex storage devices as well.
Setup
pip3 install vartastorage
Usage
from vartastorage.vartastorage import VartaStorage
# ip and port for modbus host
varta = VartaStorage('10.0.2.3',502)
# in case of a password protected cgi/xml endpoint you can authenticate as well.
# user1 is for some varta devices a standard user
varta = VartaStorage('10.0.2.3', 502, username="user1", password="yourpassword")
# the CGI endpoints are covered by default. You can only use the modbus part as well
varta = VartaStorage("10.0.2.3", 502, cgi=False)
# update all values provided by modbus and HTTP
all_data = varta.get_all_data()
# update all values provided by modbus server
modbus_data = varta.get_all_data_modbus()
# show current grid power
print(modbus_data.grid_power)
# show battery SoC
print(modbus_data.soc)
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
