Wallbox Control + Socket Control + BugFix for #68
DISCLAIMER
Use this integration - specially this new wallbox control functionality on your own risk
Control your Wallbox
Before, owners of a SENEC wallbox, must use the SENEC mobile app in order to control the wallbox device. This 'remote-control-functionality' implies, that it takes a certain amount of time till a change in the mobile app will be synced with your local device. I was not aware of this 'delay'-situation (since I do not have a wallbox installed - and probably I will not get one from SENEC). At the end of December (2023) I was contacted by Sigurd L. and was asked, if it would be possible to support wallbox control with this SENEC.Home Integration.
The challenge for the integration is, that on the one hand it has to be ensured that the appropriate values in the local SENEC device will be set and make sure on the other hand that at the same time, that also the corresponding adjustments will be done in the SENEC Backend infrastructure (where the mobile app going to make the adjustments). And of course all that have to be done without any documentation and a really wired mix of parameter names - so please use this functionality on your own risk!.
When the Integration would adjust the wallbox setting in the local SENEC device only, then these changes will be reverted/overwritten after a short while with the data provided by the central SENEC backend. So this Home Assistant integration will set values in your local SENEC device as well as via the APP-API (web based) simultaneously - so that the central SENEC backend and your local SENEC device are in sync.
Please Note: When you're going to adjust the Wallbox setting via the SENEC mobile app, your local SENEC device will still get synced with these adjustments after a short while (typically 5minutes). In such a case the values in the Home Assistant Integration will be also updated to your 'remote' adjustments.
Supported wallbox control features:
- Select the current Wallbox Mode: LOCKED / FASTEST / OPTIMIZED
- When Mode OPTIMIZED is active you can adjust the charging current (IC_MAX)
- When FASTEST is enabled you can switch 'allow intercharge' (use energy from your SENEC battery)
Setup requirements
When you want to control your wallbox via Home Assistant and this integration, you need to configure:
- the LAN:
SENEC.Home V3 hybrid/SENEC.Home V3 hybrid duo
orSENEC.Home V2.1 or older
and - also the WebAPI:
mein-senec.de Portal (usable with all SENEC.Home variants)
Only if both components are configured the Wallbox Control can work correctly!
Renamed Wallbox Entities - incompatible change!
Each Senec Device supports up to four wallboxes - in previous versions of this integration all entities of the first wallbox started with just wallbox_
, then the second wallbox entities starting with wallbox_2_
- the third with wallbox_3_
and the final one with with wallbox_4_
. With this release the entities for the first wallbox have been renamed to wallbox_1_
and the Names will now also contain the 'Roman numeral' I.
SOCKET Control
As requested in issue #63 this update provide entities for all SOCKETS fields if they are available on your device. Please note that this implementation could not be verified here with my local Senec Hardware (but vars.html showed all adjusted values) - So I am looking for some feedback
Fixes warning at HA start
fix for issue #68