Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WB_WALLBOX_TYPE values? #120

Open
bullitt186 opened this issue Jul 3, 2024 · 0 comments
Open

WB_WALLBOX_TYPE values? #120

bullitt186 opened this issue Jul 3, 2024 · 0 comments

Comments

@bullitt186
Copy link
Contributor

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant