diff --git a/config.schema.json b/config.schema.json index d8999de..d773d32 100644 --- a/config.schema.json +++ b/config.schema.json @@ -2,7 +2,7 @@ "pluginAlias": "Teslemetry", "pluginType": "platform", "singular": false, - "headerDisplay": "Requires an active subscription to Teslemetry. Please login and create an access token at teslemetry.com", + "headerDisplay": "Requires an active subscription to Tessie. Please login and create an access token at https://my.tessie.com/settings/api", "schema": { "type": "object", "properties": { @@ -10,7 +10,7 @@ "title": "Name", "type": "string", "required": true, - "default": "Teslemetry" + "default": "Tessie" }, "accessToken": { "title": "Access Token", diff --git a/package-lock.json b/package-lock.json index e157aec..221240f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "homebridge-teslemetry", + "name": "homebridge-tessie", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "homebridge-teslemetry", + "name": "homebridge-tessie", "version": "0.0.1", "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index b239dfa..6837d5a 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "private": false, - "displayName": "Teslemetry", - "name": "homebridge-teslemetry", + "displayName": "Tessie", + "name": "homebridge-tessie", "version": "0.0.1", - "description": "A short description about what your plugin does.", + "description": "Homebridge integration for Tessie.", "license": "Apache-2.0", "type": "module", "repository": { diff --git a/src/platform.ts b/src/platform.ts index 70c633f..56510b0 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -11,7 +11,7 @@ import { import { PLATFORM_NAME, PLUGIN_NAME } from "./settings.js"; import { VehicleAccessory, VehicleContext } from "./vehicle.js"; -import { Teslemetry } from "tesla-fleet-api"; +import { Tessie } from "tesla-fleet-api"; /** * HomebridgePlatform @@ -21,7 +21,7 @@ import { Teslemetry } from "tesla-fleet-api"; export class TeslaFleetApiPlatform implements DynamicPlatformPlugin { public readonly Service: typeof Service; public readonly Characteristic: typeof Characteristic; - public readonly TeslaFleetApi: Teslemetry; + public readonly TeslaFleetApi: Tessie; // this is used to track restored cached accessories public readonly accessories: PlatformAccessory[] = []; @@ -34,7 +34,7 @@ export class TeslaFleetApiPlatform implements DynamicPlatformPlugin { this.Service = api.hap.Service; this.Characteristic = api.hap.Characteristic; - this.TeslaFleetApi = new Teslemetry(this.config.accessToken); + this.TeslaFleetApi = new Tessie(this.config.accessToken); this.log.debug("Finished initializing platform:", this.config.accessToken); diff --git a/src/settings.ts b/src/settings.ts index 27a02b7..efcb27e 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,11 +1,11 @@ /** * This is the name of the platform that users will use to register the plugin in the Homebridge config.json */ -export const PLATFORM_NAME = "Teslemetry"; +export const PLATFORM_NAME = "Tessie"; /** * This must match the name of your plugin as defined the package.json */ -export const PLUGIN_NAME = "homebridge-teslemetry"; +export const PLUGIN_NAME = "homebridge-tessie"; export const REFRESH_INTERVAL = 30000;