Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion FHEM/49_TeslaCar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sub TeslaCar_Set($@) {
$availableCmds = "not connected";
}
else {
$availableCmds = "init requestSettings wakeUpCar charge_limit_soc startCharging stopCharging charge_amps flashLights honkHorn temperature unlock lock openChargePort startHvacSystem stopHvacSystem startDefrost openTrunk openFrunk";
$availableCmds = "init requestSettings wakeUpCar charge_limit_soc startCharging stopCharging charge_amps flashLights honkHorn temperature unlock lock openChargePort closeChargePort startHvacSystem stopHvacSystem startDefrost openTrunk openFrunk";
}

return "no set value specified" if (int(@a) < 2);
Expand Down Expand Up @@ -140,6 +140,10 @@ sub TeslaCar_Set($@) {
my $URL = "/api/1/vehicles/$carId/command/charge_port_door_open";
$rc = TeslaConnection_postdatarequest($hash, $URL);
}
if ($command eq "closeChargePort") {
my $URL = "/api/1/vehicles/$carId/command/charge_port_door_close";
$rc = TeslaConnection_postdatarequest($hash, $URL);
}
if ($command eq "openFrunk") {
$rc = TeslaConnection_openTrunk($hash, "front");
}
Expand Down Expand Up @@ -578,6 +582,9 @@ sub TeslaCar_UpdateVehicleCallback($) {
<li>openChargePort<br>
If the car is in state 'online', you can open the charge port or, if attached, unlock the cable
</li>
<li>closeChargePort<br>
If the car is in state 'online', you can close the charge port or, if attached, unlock the cable
</li>
<li>openTrunk<br>
If the car is in state 'online', you can open the trunk, if opened it will close
</li>
Expand Down