Print usage for tesla command on console (#12014)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2022-01-10 09:47:03 +01:00 committed by GitHub
parent dc0a974a98
commit 43384fe9fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View File

@ -97,6 +97,8 @@ public class TeslaCommandExtension extends AbstractConsoleCommandExtension {
printUsage(console); printUsage(console);
break; break;
} }
} else {
printUsage(console);
} }
} }

View 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.label = Password
thing-type.config.tesla.account.password.description = Password for the Tesla Remote Service 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.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.label = Username
thing-type.config.tesla.account.username.description = Username for the Tesla Remote Service, e.g email address. 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 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.label = Charge Limit Minimum
channel-type.tesla.chargelimitminimum.description = Minimum charging limit of the vehicle, as % 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.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.label = Charge Max Current
channel-type.tesla.chargemaxcurrent.description = Maximum current (Ampere) that can be requested from the charger channel-type.tesla.chargemaxcurrent.description = Maximum current (Ampere) that can be requested from the charger
channel-type.tesla.chargeport.label = Charge Port channel-type.tesla.chargeport.label = Charge Port

View File

@ -11,7 +11,7 @@
<config-description> <config-description>
<parameter name="refreshToken" type="text" required="false"> <parameter name="refreshToken" type="text" required="false">
<label>Refresh Token</label> <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>
<parameter name="username" type="text" required="false"> <parameter name="username" type="text" required="false">
<advanced>true</advanced> <advanced>true</advanced>

View File

@ -119,7 +119,7 @@
<channel-type id="chargelimitsocstandard" advanced="true"> <channel-type id="chargelimitsocstandard" advanced="true">
<item-type>Dimmer</item-type> <item-type>Dimmer</item-type>
<label>Charge Limit SOC Standard</label> <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> <state pattern="%.1f %%" readOnly="true"></state>
</channel-type> </channel-type>
<channel-type id="chargeidealdistanceadded" advanced="true"> <channel-type id="chargeidealdistanceadded" advanced="true">