]> git.basschouten.com Git - openhab-addons.git/commitdiff
Print usage for tesla command on console (#12014)
authorKai Kreuzer <kai@openhab.org>
Mon, 10 Jan 2022 08:47:03 +0000 (09:47 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Jan 2022 08:47:03 +0000 (09:47 +0100)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
bundles/org.openhab.binding.tesla/src/main/java/org/openhab/binding/tesla/internal/command/TeslaCommandExtension.java
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/i18n/tesla.properties
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/account.xml
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml

index 6f769755c2fde6a244b0915a9d38b3f87224ac61..648fa2b6cfb0026c58f6bf733a838acda21fe94e 100644 (file)
@@ -97,6 +97,8 @@ public class TeslaCommandExtension extends AbstractConsoleCommandExtension {
                     printUsage(console);
                     break;
             }
+        } else {
+            printUsage(console);
         }
     }
 
index 8baf292ac5b3b378527bb4e704dc3523e1f3f17a..34c4493408aafc121583da6779ffb811c1a543a7 100644 (file)
@@ -21,7 +21,7 @@ thing-type.tesla.modely.description = A Tesla Model Y Vehicle
 thing-type.config.tesla.account.password.label = Password
 thing-type.config.tesla.account.password.description = Password for the Tesla Remote Service
 thing-type.config.tesla.account.refreshToken.label = Refresh Token
-thing-type.config.tesla.account.refreshToken.description = Refresh token for account authentication. Use "smarthome:tesla" to retrieve it.
+thing-type.config.tesla.account.refreshToken.description = Refresh token for account authentication. Use "openhab:tesla" to retrieve it.
 thing-type.config.tesla.account.username.label = Username
 thing-type.config.tesla.account.username.description = Username for the Tesla Remote Service, e.g email address.
 thing-type.config.tesla.model3.allowWakeup.label = Allow Wake-Up
@@ -92,7 +92,7 @@ channel-type.tesla.chargelimitmaximum.description = Maximum charging limit of th
 channel-type.tesla.chargelimitminimum.label = Charge Limit Minimum
 channel-type.tesla.chargelimitminimum.description = Minimum charging limit of the vehicle, as %
 channel-type.tesla.chargelimitsocstandard.label = Charge Limit SOC Standard
-channel-type.tesla.chargelimitsocstandard.description = Standard charging limity of the vehicle, in %
+channel-type.tesla.chargelimitsocstandard.description = Standard charging limit of the vehicle, in %
 channel-type.tesla.chargemaxcurrent.label = Charge Max Current
 channel-type.tesla.chargemaxcurrent.description = Maximum current (Ampere) that can be requested from the charger
 channel-type.tesla.chargeport.label = Charge Port
index 42a39b639666469aa2bcc059ee7f85fc6b491a78..999eeb72275408b4f1705df38b98e23785c250ca 100644 (file)
@@ -11,7 +11,7 @@
                <config-description>
                        <parameter name="refreshToken" type="text" required="false">
                                <label>Refresh Token</label>
-                               <description>Refresh token for account authentication. Use "smarthome:tesla" to retrieve it.</description>
+                               <description>Refresh token for account authentication. Use "openhab:tesla" to retrieve it.</description>
                        </parameter>
                        <parameter name="username" type="text" required="false">
                                <advanced>true</advanced>
index 5835b0d8ecdd8a92ef0add19d0b266031bc1b45c..6aa616f5f74c7d48ce520a86325c620ace70d96c 100644 (file)
        <channel-type id="chargelimitsocstandard" advanced="true">
                <item-type>Dimmer</item-type>
                <label>Charge Limit SOC Standard</label>
-               <description>Standard charging limity of the vehicle, in %</description>
+               <description>Standard charging limit of the vehicle, in %</description>
                <state pattern="%.1f %%" readOnly="true"></state>
        </channel-type>
        <channel-type id="chargeidealdistanceadded" advanced="true">