You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| language | text | Channel data can be returned in the desired language |
101
+
| hcaptchatoken | text | HCaptcha-Token for initial login (see https://bimmer-connected.readthedocs.io/en/stable/captcha.html)|
102
+
| callbackIP | text | IP address for openHAB callback URL, defaults to IP of openHAB host |
103
+
| callbackPort | integer | Port Number for openHAB callback URL, default 8090 |
99
104
100
105
Language is predefined as _AUTODETECT_.
101
106
Some textual descriptions, date and times are delivered based on your local language.
102
107
You can overwrite this setting with lowercase 2-letter [language code reagrding ISO 639](https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html)
103
108
So if want your UI in english language place _en_ as desired language.
104
109
110
+
The initial login to the BMW API requires a Captcha Token.
111
+
At first configuration, you can set the Captcha Token as a configuration parameter manually.
112
+
113
+
To set the Captcha Token online, a webpage is presented and a callback to the bridge is created temporarily on the hosts IP address and a default port.
114
+
If the port is already in use, or you have a complex network setup, you may have to override the defaults provided.
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/MyBMWBridgeConfiguration.java
+31-3
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
*
21
21
* @author Bernd Weymann - Initial contribution
22
22
* @author Martin Grassl - renamed and added hcaptchastring
23
+
* @author Mark Herwege - added authorisation servlet
23
24
*/
24
25
@NonNullByDefault
25
26
publicclassMyBMWBridgeConfiguration {
@@ -49,6 +50,16 @@ public class MyBMWBridgeConfiguration {
49
50
*/
50
51
privateStringhcaptchatoken = Constants.EMPTY;
51
52
53
+
/**
54
+
* the callback IP address for the authorisation servlet
55
+
*/
56
+
privateStringcallbackIP = Constants.EMPTY;
57
+
58
+
/**
59
+
* the callback port for the authorisation servlet
60
+
*/
61
+
privateintcallbackPort = 8090;
62
+
52
63
publicStringgetRegion() {
53
64
returnregion;
54
65
}
@@ -81,17 +92,34 @@ public void setLanguage(String language) {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/MyBMWHandlerFactory.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/console/MyBMWCommandExtension.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/discovery/VehicleDiscovery.java
+12-8
Original file line number
Diff line number
Diff line change
@@ -83,29 +83,33 @@ public void discoverVehicles() {
83
83
try {
84
84
returnprox.requestVehicles();
85
85
} catch (NetworkExceptione) {
86
-
thrownewIllegalStateException("vehicles could not be discovered: " + e.getMessage(), e);
86
+
thrownewIllegalStateException(e);
87
87
}
88
88
});
89
89
vehicleList.ifPresentOrElse(vehicles -> {
90
-
if (vehicles.size() > 0) {
90
+
if (!vehicles.isEmpty()) {
91
91
thingHandler.vehicleDiscoverySuccess();
92
92
processVehicles(vehicles);
93
93
} else {
94
-
logger.warn("no vehicle found, maybe because of network error");
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/dto/auth/ChinaAccessToken.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/dto/auth/ChinaPublicKey.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/dto/auth/ChinaPublicKeyResponse.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/dto/auth/ChinaTokenExpiration.java
0 commit comments