[easee] Enable write support for smartCharging channel (#14866)

* this fixes #14863

Signed-off-by: Alexander Friese <af944580@googlemail.com>
This commit is contained in:
Alexander Friese 2023-08-17 17:01:21 +02:00 committed by GitHub
parent 6e349334e4
commit e87824d7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -58,7 +58,7 @@ The settings that start with "dynamic" can be changed frequently, the others are
| Channel | Item Type | Writable | Description | Allowed Values (write access) | | Channel | Item Type | Writable | Description | Allowed Values (write access) |
|---------------------------------------------|--------------------------|----------|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| |---------------------------------------------|--------------------------|----------|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| state#smartCharging | Switch | no | | | | state#smartCharging | Switch | yes | | ON/OFF |
| state#cableLocked | Switch | no | | | | state#cableLocked | Switch | no | | |
| state#chargerOpMode | Number | no | 0=Offline, 1=Disconnected, 2=AwaitingStart, 3=Charging, 4=Completed, 5=Error, 6=ReadyToCharge, 7=AwaitingAuthentication, 8=Deauthenticating | | | state#chargerOpMode | Number | no | 0=Offline, 1=Disconnected, 2=AwaitingStart, 3=Charging, 4=Completed, 5=Error, 6=ReadyToCharge, 7=AwaitingAuthentication, 8=Deauthenticating | |
| state#totalPower | Number:Power | no | current session total power (all phases) | | | state#totalPower | Number:Power | no | current session total power (all phases) | |
@ -77,9 +77,9 @@ The settings that start with "dynamic" can be changed frequently, the others are
| state#lifetimeEnergy | Number:Energy | no | | | | state#lifetimeEnergy | Number:Energy | no | | |
| state#errorCode | Number | no | | | | state#errorCode | Number | no | | |
| state#fatalErrorCode | Number | no | | | | state#fatalErrorCode | Number | no | | |
| config#lockCablePermanently | Switch | yes | | true/false | | config#lockCablePermanently | Switch | yes | | ON/OFF |
| config#authorizationRequired | Switch | yes | | true/false | | config#authorizationRequired | Switch | yes | | ON/OFF |
| config#limitToSinglePhaseCharging | Switch | yes | | true/false | | config#limitToSinglePhaseCharging | Switch | yes | | ON/OFF |
| config#phaseMode | Number | yes | 1=1phase, 2=auto, 3=3phase | 1-3 | | config#phaseMode | Number | yes | 1=1phase, 2=auto, 3=3phase | 1-3 |
| config#maxChargerCurrent | Number:ElectricCurrent | no | write access not yet implemented | | | config#maxChargerCurrent | Number:ElectricCurrent | no | write access not yet implemented | |
| commands#genericCommand | String | yes | Generic Endpoint to send commands | reboot, update_firmware, poll_all, smart_charging, start_charging, stop_charging, pause_charging, resume_charging, toggle_charging, override_schedule | | commands#genericCommand | String | yes | Generic Endpoint to send commands | reboot, update_firmware, poll_all, smart_charging, start_charging, stop_charging, pause_charging, resume_charging, toggle_charging, override_schedule |
@ -107,7 +107,7 @@ The Master Charger is like the "normal" charger but has some extra channels to c
| settings#offlineMaxCircuitCurrentP2 | Number:ElectricCurrent | no | | | | settings#offlineMaxCircuitCurrentP2 | Number:ElectricCurrent | no | | |
| settings#offlineMaxCircuitCurrentP3 | Number:ElectricCurrent | no | | | | settings#offlineMaxCircuitCurrentP3 | Number:ElectricCurrent | no | | |
| settings#offlineMaxCurrents | String | yes | read/write only for all phases. | &lt;value phase1&gt;;&lt;value phase2&gt;;&lt;value phase3&gt; valid values for each phase are 0, 6-32. Example: 8;8;8 | | settings#offlineMaxCurrents | String | yes | read/write only for all phases. | &lt;value phase1&gt;;&lt;value phase2&gt;;&lt;value phase3&gt; valid values for each phase are 0, 6-32. Example: 8;8;8 |
| settings#enableIdleCurrent | Switch | yes | | true/false | | settings#enableIdleCurrent | Switch | yes | | ON/OFF |
| settings#allowOfflineMaxCircuitCurrent | Switch | no | | | | settings#allowOfflineMaxCircuitCurrent | Switch | no | | |
## Full Example ## Full Example

View File

@ -6,9 +6,13 @@
<channel-group-type id="charger-state"> <channel-group-type id="charger-state">
<label>Charger Status</label> <label>Charger Status</label>
<channels> <channels>
<channel id="smartCharging" typeId="type-switch"> <channel id="smartCharging" typeId="rwtype-switch">
<label>Smart Charging</label> <label>Smart Charging</label>
<description>Smart Charging status of the wallbox.</description> <description>Smart Charging status of the wallbox.</description>
<properties>
<property name="writeCommand">ChangeConfiguration</property>
<property name="validationExpression">.*</property>
</properties>
</channel> </channel>
<channel id="cableLocked" typeId="type-switch"> <channel id="cableLocked" typeId="type-switch">
<label>Cable Locked</label> <label>Cable Locked</label>