Hi,
i tried installing the Snapshot 3.4.2. but it wouldenât show when i add a Thing. I then tried adding Snapshot 3.3 and that worked straight out of the Box. Am I missing something. My Openhab Version is 3.3.0. Could that already be the problem?
Hi @jan_cologne,
maybe it is a comparible topic as @Jens: I had the same behaviour like you with my Skoda Enyaq (which happened after ME3 update). I had to enable in the cars menue the data sharing. In Skoda menu you had to go to âuserâ, therein âsetupâ, then âprivacy settingsâ, then âvehicle/using dataâ. I hope this helps.
Regards
Christian
The binding has been very helpful, as it is much easier to use than the much more complex MQTT integration - question therefore: any ideas if an updated version incorporating the URL changes is planned?
Thanks to everybody in this topic who contributes and got the binding working in the past!
Today I start integration for my Tiguan 2018 and Carnet. Bridge is online and for example the last online date is also visible in openhab. I enter the SPin for pre-heating. If I want start it I get an error message :
The URL has not changed, but the Parameters and the ContentType has changed. I have changed the Parameters in my Test Addon. I will test the addon the next week if the rheating is working.
Changed the contentType and body from the controlClimater Function:
// json format, e.g. VW
contentType = "application/json; charset=UTF-8";
body = "{\"action\": {\"settings\": {\"climatisationWithoutHVpower\": True, \"heaterSource\": \""
+ heaterSource + "\"}, \"type\": \"startClimatisation\"}}";
Full Function:
public String controlClimater(boolean start, String heaterSource) throws ApiException {
String contentType = "application/vnd.vwg.mbb.ClimaterAction_v1_0_0+xml;charset=utf-8";
String body = "", action = "";
boolean secToken = !CNAPI_HEATER_SOURCE_ELECTRIC.equals(heaterSource);
if (start) {
if ((config.account.apiLevelClimatisation == 1) || heaterSource.isEmpty()) {
// simplified format without header source, Skoda?
body = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><action><type>startClimatisation</type></action>";
} else if (config.account.apiLevelClimatisation == 3) {
// standard format with header source, e.g. E-Tron
body = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><action><type>startClimatisation</type>"
+ "<settings><heaterSource>" + heaterSource + "</heaterSource></settings></action>";
} else {
// json format, e.g. VW
contentType = "application/json; charset=UTF-8";
body = "{\"action\": {\"settings\": {\"climatisationWithoutHVpower\": True, \"heaterSource\": \""
+ heaterSource + "\"}, \"type\": \"startClimatisation\"}}";
}
action = CNAPI_HEATER_SOURCE_ELECTRIC.equalsIgnoreCase(heaterSource)
? CNAPI_ACTION_REMOTE_PRETRIP_CLIMATISATION_START_ELECTRIC
: CNAPI_ACTION_REMOTE_PRETRIP_CLIMATISATION_START_AUX_OR_AUTO;
} else {
// stop climater
body = "<action><type>stopClimatisation</type></action>";
}
return sendAction("bs/climatisation/v1/{0}/{1}/vehicles/{2}/climater/actions",
CNAPI_SERVICE_REMOTE_PRETRIP_CLIMATISATION, start ? action : CNAPI_ACTION_REMOTE_HEATING_QUICK_STOP,
secToken, contentType, body);
}
I also found my problem with the preheater. VW has two âpreheaterâ ?!?. The Preheater Channel is for âDiesel PreHeaters or ParkHeatersâ and the petrol preheater is controlled with the controlClimater Function. I have to choose the correct HeatSource (electric,auxiliary).
But the HeatSource has also problems with the right Thing-Channel-Group. Don´t know if i can fix this with my knowlege about openhab addons and javaâŚ
Thanks Michi, I can find the source place to change but no clue how to compile a binding. I know thats to much but it would help if you can share a link. Java is new for me and no real clue how it works.