Skip to content

Commit

Permalink
add climatev2 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Oct 17, 2023
1 parent 2dfd2f2 commit 238bd5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5005,8 +5005,14 @@ class VwWeconnect extends utils.Adapter {
if (heaterSourceState.val) {
heaterSource = heaterSourceState.val;
}
let targetTemp = 2950;
if (tagetTempState && tagetTempState.val) {
targetTemp = tagetTempState.val;
}
body =
'<?xml version="1.0" encoding= "UTF-8" ?>\n<action>\n <type>startClimatisation</type> <settings> <heaterSource>' +
'<?xml version="1.0" encoding= "UTF-8" ?>\n<action>\n <type>startClimatisation</type> <settings> <targetTemperature>' +
targetTemp +
"</targetTemperature> <climatisationWithoutHVpower>true</climatisationWithoutHVpower> <heaterSource>" +
heaterSource +
"</heaterSource> </settings>\n</action>";
}
Expand Down

0 comments on commit 238bd5a

Please sign in to comment.