-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I am adding the Wallbox features to hacs-e3dc.
I'd like to determine the wallbox type / model in order to provide only the relevant sensors / actors (e.g. only the button to enable the schuko if the wallbox has one).
There's a Tag WB_WALLBOX_TYPE
which returns value 6
for my Multi Connect II, so I assume there's a mapping of values and WB types.
Does somebody have a table of wallbox models and values he/she can share?
If not, if you (the community) could provide your wallbox model + value, we could reverse-engineer the table easily. (as there are only a couple of WB models).
Thank you!!
Here's a handy script to get the WB_WALLBOX_TYPE you can use:
from e3dc import E3DC
from e3dc._rscpLib import rscpFindTag, rscpFindTagIndex
TCP_IP = '192.168.0.31'
USERNAME = 'your E3DC Username'
PASS = 'your E3DC Password'
KEY = 'your RSCP Secret'
CONFIG = {}
e3dc = E3DC(E3DC.CONNECT_LOCAL, username=USERNAME, password=PASS, ipAddress = TCP_IP, key = KEY, configuration = CONFIG)
req = e3dc.sendRequest(
(
"WB_REQ_DATA",
"Container",
[
("WB_INDEX", "UChar8", 0),
("WB_REQ_WALLBOX_TYPE", "None", None),
],
),
keepAlive=True,
)
wallboxTypeTag = rscpFindTag(req, "WB_WALLBOX_TYPE")
if wallboxTypeTag is not None:
wallboxTypeValue = rscpFindTagIndex(wallboxTypeTag, "WB_WALLBOX_TYPE")
print("WB_WALLBOX_TYPE: ", wallboxTypeValue)
else:
print("WB_WALLBOX_TYPE: Not Found")
Metadata
Metadata
Assignees
Labels
No labels