]> git.basschouten.com Git - openhab-addons.git/commitdiff
[easee] Enable write support for smartCharging channel (#14866)
authorAlexander Friese <alexf2015@users.noreply.github.com>
Thu, 17 Aug 2023 15:01:21 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2023 15:01:21 +0000 (17:01 +0200)
* this fixes #14863

Signed-off-by: Alexander Friese <af944580@googlemail.com>
bundles/org.openhab.binding.easee/README.md
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/charger-channel-groups.xml

index 3df066af4652a28fea412c15d979c92c06f40043..452dd1c25b14317a29a96de043805e0456e55a04 100644 (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)                                                                                                                                |
 |---------------------------------------------|--------------------------|----------|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| state#smartCharging                         | Switch                   | no       |                                                      |                                                                                                                                                              |
+| state#smartCharging                         | Switch                   | yes      |                                                      | ON/OFF                                                                                                                                                   |
 | 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#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#errorCode                             | Number                   | no       |                                                      |                                                                                                                                                              |
 | state#fatalErrorCode                        | Number                   | no       |                                                      |                                                                                                                                                              |
-| config#lockCablePermanently                 | Switch                   | yes      |                                                      | true/false                                                                                                                                                   |
-| config#authorizationRequired                | Switch                   | yes      |                                                      | true/false                                                                                                                                                   |
-| config#limitToSinglePhaseCharging           | Switch                   | yes      |                                                      | true/false                                                                                                                                                   |
+| config#lockCablePermanently                 | Switch                   | yes      |                                                      | ON/OFF                                                                                                                                                   |
+| config#authorizationRequired                | Switch                   | yes      |                                                      | ON/OFF                                                                                                                                                   |
+| config#limitToSinglePhaseCharging           | Switch                   | yes      |                                                      | ON/OFF                                                                                                                                                   |
 | config#phaseMode                            | Number                   | yes      | 1=1phase, 2=auto, 3=3phase                           | 1-3                                                                                                                                                          |
 | 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        |
@@ -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#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#enableIdleCurrent                  | Switch                   | yes      |                                                      | true/false                                                                                                                                                   |
+| settings#enableIdleCurrent                  | Switch                   | yes      |                                                      | ON/OFF                                                                                                                                                   |
 | settings#allowOfflineMaxCircuitCurrent      | Switch                   | no       |                                                      |                                                                                                                                                              |
 
 ## Full Example
index 184a9b266ce28e06f35d06723930e4656b5d5858..37bf84f6a88a814386984d834196dc5210bb4f6f 100644 (file)
@@ -6,9 +6,13 @@
        <channel-group-type id="charger-state">
                <label>Charger Status</label>
                <channels>
-                       <channel id="smartCharging" typeId="type-switch">
+                       <channel id="smartCharging" typeId="rwtype-switch">
                                <label>Smart Charging</label>
                                <description>Smart Charging status of the wallbox.</description>
+                               <properties>
+                                       <property name="writeCommand">ChangeConfiguration</property>
+                                       <property name="validationExpression">.*</property>
+                               </properties>
                        </channel>
                        <channel id="cableLocked" typeId="type-switch">
                                <label>Cable Locked</label>