Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
plugins:teslacmd:start [2024/12/27 15:04] – Version 0.5.0 - Many enhancements Jan Wachsmuth | plugins:teslacmd:start [2025/02/09 10:56] (aktuell) – Jan Wachsmuth | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
++++ Version history ... | | ++++ Version history ... | | ||
+ | |||
+ | Version 0.7.2: | ||
+ | |||
+ | * %%Fixed queries for Tesla powerwall.%% | ||
+ | |||
+ | Version 0.7.1: | ||
+ | |||
+ | * %%Added commands to retrieve status and control battery for Tesla powerwall.%% | ||
+ | |||
+ | Version 0.7.0: | ||
+ | |||
+ | * Settings page enhanced: now you can adjust timeouts, debugging and retries directly (custom BLE command removed). | ||
+ | * Debug messages for plugin are more descriptive and comprehensive. | ||
+ | * Process handling for generating and verifying keys is improved: you may stop the countdown of 30 seconds now if you are done by clicking the button. | ||
+ | * Enhancement for send.php: now VIN is used for MQTT messages if it was provided. | ||
+ | |||
+ | Version 0.6.0: | ||
+ | |||
+ | * added queuing system on Loxberry for BLE commands (only one binary is able to use BLE device at a time) | ||
+ | * improved performance for settings screen - RSSI is fetched on request only | ||
+ | * updated tesla-control binary (RSSI is added in JSON output) | ||
+ | * added verification, | ||
+ | |||
+ | Version 0.5.1: | ||
+ | |||
+ | * Minor corrections in function to send keys to car | ||
+ | * Added verification if public key was properly installed in car | ||
+ | * Added/ | ||
Version 0.5.0: | Version 0.5.0: | ||
Zeile 11: | Zeile 39: | ||
* Show function blocks for outputs and output commands that can be copied to Loxone config | * Show function blocks for outputs and output commands that can be copied to Loxone config | ||
* **NOTE**: since this version, special builds of Tesla utlities that produce JSON output are required! See below for more information. | * **NOTE**: since this version, special builds of Tesla utlities that produce JSON output are required! See below for more information. | ||
+ | * Updated binary for tool ' | ||
+ | * Added binary for new tool ' | ||
Version 0.2.4: | Version 0.2.4: | ||
Zeile 22: | Zeile 52: | ||
Statement from Tesla regarding the updated SDK: adds support for fetching and decrypting vehicle data over BLE. Some types of vehicle data are not available prior to 2024.38. | Statement from Tesla regarding the updated SDK: adds support for fetching and decrypting vehicle data over BLE. Some types of vehicle data are not available prior to 2024.38. | ||
- | You are able to retrieve detailed status information from the vehicle via BLE. The tool ' | + | You are able to retrieve detailed status information from the vehicle via BLE. The tool '**tesla-contol**' has a new command 'state < |
The TeslaCmd plugin supports all new commands and options for ' | The TeslaCmd plugin supports all new commands and options for ' | ||
Zeile 200: | Zeile 230: | ||
| **software_update_cancel** | | **software_update_cancel** | ||
| **guest_mode_off** | | **guest_mode_off** | ||
- | | **guest_mode_on** | + | | **guest_mode_on** |
| **erase_guest_data** | %%Erase Guest Mode user data.%% | | | **erase_guest_data** | %%Erase Guest Mode user data.%% | | ||
| **add_key** | %%Add PUBLIC_KEY to vehicle whitelist with ROLE and FORM_FACTOR.%% | | | **add_key** | %%Add PUBLIC_KEY to vehicle whitelist with ROLE and FORM_FACTOR.%% | | ||
| **add_key_request** | %%Request NFC-card approval for a enrolling PUBLIC_KEY with ROLE and FORM_FACTOR.%% | | | **add_key_request** | %%Request NFC-card approval for a enrolling PUBLIC_KEY with ROLE and FORM_FACTOR.%% | | ||
- | === Abfragen für Powerwall === | + | === Abfragen für Powerwall |
^ Befehl ^ Beschreibung ^ | ^ Befehl ^ Beschreibung ^ | ||
Zeile 213: | Zeile 243: | ||
| %%SITE_PROGRAMS%% | %%Retrieves energy site program information.%% | | | %%SITE_PROGRAMS%% | %%Retrieves energy site program information.%% | | ||
| %%SITE_TARIFF_RATE%% | %%Retrieves the user defined Utility Rate Plan used for Time-Based Control mode. It looks like this endpoint is updated every 30 minutes.%% | | | %%SITE_TARIFF_RATE%% | %%Retrieves the user defined Utility Rate Plan used for Time-Based Control mode. It looks like this endpoint is updated every 30 minutes.%% | | ||
+ | | %%BACKUP_HISTORY%% | %%Returns the backup (off-grid) event history of the site in duration of seconds.%% | | ||
+ | | %%CHARGE_HISTORY%% | %%Returns the charging history of a wall connector.%% | | ||
+ | | %%ENERGY_HISTORY%% | %%Returns the energy measurements of the site, aggregated to the requested period.%% | | ||
+ | |||
+ | === Befehle für Powerwall / Energy Site === | ||
+ | |||
+ | ^ Befehl ^ Beschreibung ^ | ||
+ | | %%BACKUP%% | %%Adjust the site's backup reserve.%% | | ||
+ | | %%GRID_IMPORT_EXPORT%% | %%Allow/ | ||
+ | | %%OFF_GRID_VEHICLE_CHARGING_RESERVE%% | %%Adjust the site's off-grid vehicle charging backup reserve.%% | | ||
+ | | %%OPERATION%% | %%Use autonomous for time-based control and self_consumption for self-powered mode.%% | | ||
+ | | %%STORM_MODE%% | %%Update storm watch participation.%% | | ||
+ | | %%TIME_OF_USE_SETTINGS%% | %%Update the time of use settings for the energy site.%% | | ||
===== Voraussetzungen ===== | ===== Voraussetzungen ===== | ||
Zeile 231: | Zeile 274: | ||
- Installation des [[plugins: | - Installation des [[plugins: | ||
- Installation des Tesla-Command Plugins über die Plugin Verwaltung. | - Installation des Tesla-Command Plugins über die Plugin Verwaltung. | ||
- | - Installation bzw. Erstellung der beiden Kommandozeilentools aus dem Tesla Vehicle Command SDK, siehe zugehörige README.md auf Github oder nachfolgende Hinweise. | + | - Installation bzw. Erstellung der beiden Kommandozeilentools aus dem Tesla Vehicle Command SDK, siehe nachfolgende Hinweise. Dieser Schritt entfällt bei einem Loxberry auf Basis eines Raspberry PI mit **64-Bit** (Diet-PI mit Version Bookworm). |
- | - Erstellung eines privaten und öffentlichen Schlüssels bzw. Schlüsselpaares, | + | - Erstellung eines privaten und öffentlichen Schlüssels bzw. Schlüsselpaares, |
==== Installation der Tools aus dem Tesla Vehicle Command SDK ==== | ==== Installation der Tools aus dem Tesla Vehicle Command SDK ==== | ||
- | Dieser Schritt kann bei einem Loxberry auf Basis eines Raspberry PI mit **64-Bit** (z.B. bei einem Diet-PI mit Version Bookworm) übersprungen werden, weil die beiden benötigten Tools bereits im Binärformat im Plugin enthalten sind. Man benötigt daher weder Golang noch das SDK. Für alle anderen Betriebssysteme und CPUs ist dieser Schritt erforderlich. Die Installation der Tools ist in der [[https:// | + | Dieser Schritt kann bei einem Loxberry auf Basis eines Raspberry PI mit **64-Bit** (z.B. bei einem Diet-PI mit Version Bookworm) übersprungen werden, weil die beiden benötigten Tools bereits im Binärformat im Plugin enthalten sind. Man benötigt daher weder Golang noch das SDK. Bei Verwendung eines Raspberry PI mit **32-Bit** bitte die Release Notes beachten. In einigen Versionen habe ich die Tools aktualisiert, |
+ | |||
+ | Für alle anderen Betriebssysteme und CPUs ist dieser Schritt erforderlich. Die Installation der Tools ist in der [[https:// | ||
+ | |||
+ | **WICHTIG**: | ||
=== Installation von Golang === | === Installation von Golang === | ||
Zeile 271: | Zeile 318: | ||
# git clone https:// | # git clone https:// | ||
git clone https:// | git clone https:// | ||
+ | # git clone https:// | ||
+ | git clone --single-branch --branch local-enhancements https:// | ||
cd vehicle-command/ | cd vehicle-command/ | ||
# if not set yet: export PATH=$PATH:/ | # if not set yet: export PATH=$PATH:/ | ||
Zeile 306: | Zeile 355: | ||
cd / | cd / | ||
mv ./ | mv ./ | ||
- | mv ./ | ||
- | mv ./ | ||
setcap ' | setcap ' | ||
+ | mv ./ | ||
+ | mv ./ | ||
setcap ' | setcap ' | ||
exit | exit | ||
Zeile 335: | Zeile 384: | ||
tesla-keygen -f -key-file LRW31234567890123-private.pem create > LRW31234567890123-public.pem | tesla-keygen -f -key-file LRW31234567890123-private.pem create > LRW31234567890123-public.pem | ||
</ | </ | ||
+ | |||
+ | Der gleiche o.a. Befehl mit ' | ||
Die Schlüssel, die mit Hilfe des Tools **// | Die Schlüssel, die mit Hilfe des Tools **// | ||
Zeile 445: | Zeile 496: | ||
Mögliche weiter Entwicklungsschritte: | Mögliche weiter Entwicklungsschritte: | ||
- | * Automatische XML Erstellung für Loxone | + | * Bisher keine Feature Requests gestellt. |
===== Fragen stellen und Fehler melden ===== | ===== Fragen stellen und Fehler melden ===== | ||
Zeile 456: | Zeile 507: | ||
pluginuebersicht.logo : : | pluginuebersicht.logo : : | ||
pluginuebersicht.status : BETA | pluginuebersicht.status : BETA | ||
- | pluginuebersicht.version : 0.5.0 | + | pluginuebersicht.version : 0.7.2 |
pluginuebersicht.min_lb_version : 2.0 | pluginuebersicht.min_lb_version : 2.0 | ||
pluginuebersicht.url_release : | pluginuebersicht.url_release : | ||
- | pluginuebersicht.url_prerelease : https:// | + | pluginuebersicht.url_prerelease : https:// |
pluginuebersicht.description : Plugin für das von Tesla in 2024 veröffentlichte Tesla Vehicle Command SDK. Über das Plugin können Informationen zu den verwendeten Tesla Produkten abgerufen oder Befehle an die Tesla Produkte gesendet werden. Nachfolger des TeslaConnect Plugins. | pluginuebersicht.description : Plugin für das von Tesla in 2024 veröffentlichte Tesla Vehicle Command SDK. Über das Plugin können Informationen zu den verwendeten Tesla Produkten abgerufen oder Befehle an die Tesla Produkte gesendet werden. Nachfolger des TeslaConnect Plugins. | ||
pluginuebersicht.languages : EN | pluginuebersicht.languages : EN |