forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds querying vehicle config endpoint for model identifications, fixe…
…s small bug to add modely to supported things. (openhab#5) Signed-off-by: digitaldan <dan@digitaldan.com>
- Loading branch information
1 parent
9113643
commit 4707495
Showing
6 changed files
with
78 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...inding.tesla/src/main/java/org/openhab/binding/tesla/internal/protocol/VehicleConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Copyright (c) 2010-2019 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.tesla.internal.protocol; | ||
|
||
/** | ||
* The {@link VehicleConfig} is a data structure to capture | ||
* vehicle configuration variables sent by the Tesla Vehicle | ||
* | ||
* @author Dan Cunningham - Initial contribution | ||
*/ | ||
public class VehicleConfig { | ||
public boolean can_accept_navigation_requests; | ||
public boolean can_actuate_trunks; | ||
public boolean eu_vehicle; | ||
public boolean has_air_suspension; | ||
public boolean has_ludicrous_mode; | ||
public boolean motorized_charge_port; | ||
public boolean plg; | ||
public boolean rhd; | ||
public boolean use_range_badging; | ||
public int rear_seat_heaters; | ||
public int rear_seat_type; | ||
public int sun_roof_installed; | ||
public long timestamp; | ||
public String car_special_type; | ||
public String car_type; | ||
public String charge_port_type; | ||
public String exterior_color; | ||
public String roof_color; | ||
public String spoiler_type; | ||
public String third_row_seats; | ||
public String trim_badging; | ||
public String wheel_type; | ||
|
||
VehicleConfig() { | ||
|
||
} | ||
} |