Skip to content

Latest commit

 

History

History
2087 lines (1106 loc) · 74.2 KB

CHANGELOG.md

File metadata and controls

2087 lines (1106 loc) · 74.2 KB

CHANGELOG

v3.15.3 (2023-08-27)

Fix

  • Catch jsondecode errors (42a7a17)
  • Add missing CONFIG_SCHEMA and service translations (#673) (c5aad96)
  • Remove TeslaMate MQTT warning at every HA startup (#683) (b993bc9)

Refactor

v3.15.2 (2023-07-27)

Build

  • build: pre-commit autoupdate (#664)

  • build: pre-commit autoupdate

updates:

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (fe9050f)

Chore

  • chore: release 2023-07-27

Merge pull request #675 from alandtse/dev (b02c0da)

Fix

  • fix: bump teslajsonpy to 3.9.2 (#674)

fixes slow startup, fixes energy sites sometimes not coming available, improves performance changelog: https://github.com/zabuldon/teslajsonpy/compare/v3.9.0...v3.9.2 (8ba3ed8)

Refactor

  • refactor: reduce code needed to construct entities (#672) (f0b97ba)

  • refactor: reduce entity creation code (#671)

followup to #670 (96fdb46)

  • refactor: cleanup entity construction (#670) (79eea25)

v3.15.1 (2023-07-08)

Fix

  • fix: check if arrival time attribute is available

closes #661 (5936ea3)

Unknown

  • Merge pull request #663 from alandtse/dev

fix: check if arrival time attribute is available (2765a53)

v3.15.0 (2023-07-07)

Build

  • build: pre-commit autoupdate (#653)

updates:

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alan Tse <[email protected]> (dc68774)

  • build: pre-commit autoupdate

updates:

Feature

  • feat: add minutes-to-arrival-attr (#657)

Adds new attribute to arrival time sensor.

closes #656 (672fc04)

Unknown

  • Merge pull request #660 from alandtse/dev

chore: release 2023-07-07 (c0a9d87)

  • Merge pull request #642 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (be6533f)

v3.14.0 (2023-06-17)

Ci

  • ci: Update codeql.yml to latest template (#639)

  • ci: Update codeql.yml to latest template

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (39939d4)

Feature

  • feat: add car windows binary_sensors (#629)

  • [Add] extra attributes for windows

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

  • Update test_binary_sensor.py

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

  • Update car.py

  • Update custom_components/tesla_custom/binary_sensor.py

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

  • Update custom_components/tesla_custom/binary_sensor.py

  • Update tests/mock_data/car.py

  • Update tests/test_binary_sensor.py


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alan Tse <[email protected]> (fdefa52)

Fix

  • fix: update battery remaining sensor to ENERGY_STORAGE (#632)

  • Update battery remaining sensor to ENERGY_STORAGE

  • Update battery_remaining to ENERGY_STORAGE device class

  • Bump homeassistant version for ENERGY_STORAGE

  • Update pyproject.toml

  • Update manifest.json include homeassistant dependency

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

  • Update manifest.json requirements "homeassistant>=2023.4.0"

  • Update pyproject.toml version 3.13.1

  • Update manifest.json version 3.13.1

  • Update manifest.json

  • Update pyproject.toml

  • Update hacs.json to "homeassistant": "2023.4.0",

  • build: update deps

  • test: fix native_value for battery update time


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alan D. Tse <[email protected]> Co-authored-by: Alan Tse <[email protected]> (ff960f0)

  • fix: fix variable heated steering for older cars (#638) (db1d6b8)

Unknown

  • Merge pull request #640 from alandtse/dev

chore: release 2023-06-16 (708a7e6)

v3.13.0 (2023-06-13)

Build

  • build: pre-commit autoupdate

updates:

  • build: pre-commit autoupdate

updates:

Feature

  • feat: add heated steering wheel select (#628)

  • add heated steering wheel select

  • cleaned up tests

  • bump teslajsonpy

  • bump teslajsonpy in poetry (96cbad6)

Fix

  • fix: use async_write vs async_update (#626)

closes #606 (78b0641)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (cbe5934)

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (7fa2863)

Unknown

  • Merge pull request #631 from alandtse/dev

chore: 2023-06-13 release (24760f6)

  • Merge pull request #630 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (66850bb)

  • Merge pull request #620 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (a69a53d)

v3.12.3 (2023-06-01)

Build

  • build: pre-commit autoupdate

updates:

  • build: Update container (#612) (5609d0d)

  • build: pre-commit autoupdate

updates:

  • build: pre-commit autoupdate

updates:

Fix

  • fix: ensure update_vehicles coordinator always polls (#622)

closes #621 closes #613 (544e862)

  • fix: debounce mqtt updates (#608) (ac31eca)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (d38e096)

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (e02d398)

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (2bd50db)

Unknown

  • Merge pull request #623 from alandtse/dev

chore: release 2023-05-31 (fc23631)

  • Merge pull request #615 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (21a2f45)

  • Merge pull request #610 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (b1b1a41)

  • Merge pull request #603 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (60e692b)

v3.12.2 (2023-05-06)

Build

  • build: pre-commit autoupdate

updates:

Fix

  • fix: Update arrival with earlier charge complete and arrival times (#575)

closes #565 (92da756)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (7a1df4a)

Unknown

  • Merge pull request #599 from alandtse/dev

chore: release 2023-05-06 (dc279a8)

  • Merge pull request #592 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (9424627)

v3.12.1 (2023-04-28)

Build

  • build: pre-commit autoupdate

updates:

Chore

  • chore: release 2023-04-27 (6509424)

Fix

  • fix: fix multiple cars for TeslaMate (#582)

closes #581 (9e9b949)

  • fix: bump teslajsonpy to fix climate_state error (#580) (e638177)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (68aa2ee)

Unknown

  • Merge pull request #571 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (b106d57)

v3.12.0 (2023-04-21)

Build

  • build: pre-commit autoupdate

updates:

Feature

  • feat: add more updates to TeslaMate (#572)

closes #573 (970759c)

  • feat: Add Shift State Sensor (#569)

closes #476 (72ac435)

  • feat: Add Car Data Update Time Sensor (#568) (437212b)

  • feat: Allow syncing with TeslaMate via MQTT (#564)

  • Initial comit of TeslaMate connection

  • More productionising of code.

  • Update readme

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

  • fix pre-commit issuesl

  • Fix Tests.

  • Fix manifest file for hassfest check


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (36713fb)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (cdbeb77)

Unknown

  • Merge pull request #577 from alandtse/dev

chore: release 2023-04-21 (4a32c69)

  • Merge pull request #563 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (b90a793)

v3.11.0 (2023-03-26)

Feature

  • feat: split coordinator to avoid updating disabled cars and energy sites (#552) (41dfbcc)

Fix

  • fix: use Home Assistant ssl context to avoid I/O (#550)

  • Use Home Assistant ssl context

Creating an ssl context does I/O in the event loop try to use the default on if its available to avoid this.

  • fix: git add (7386d43)

  • fix: use async_create_background_task to close the httpx client (#551)

  • Use async_create_background_task to close the httpx client

https://docs.python.org/3/library/asyncio-task.html#creating-tasks > Important Save a reference to the result of this function, to avoid a task disappearing mid-execution. The event loop only keeps weak references to tasks. A task that isn’t referenced elsewhere may get garbage collected at any time, even before it’s done. For reliable “fire-and-forget” background tasks, gather them in a collection:

Unknown

  • Merge pull request #554 from alandtse/dev

chore: release 2023-03-26 (648fe39)

v3.10.4 (2023-03-24)

Build

Ci

Fix

  • fix: fix sharing of addresses and media (#545)

  • fix: sharing of addresses and media bump teslajsonpy to v3.7.5

  • chore: correct the version specification

  • chore: bump teslajsonpy in manfist.json as well

  • chore: poetry update [email protected] (0cc8319)

Test

  • test: skip test_distance_to_arrival if erroneous

test_distance_to_arrival runs fine indivdiaully but breaks in a group. This is likely a transient async problem. (c9eabce)

  • test: change tests to numeric value equality (63c7c12)

Unknown

  • Merge pull request #546 from alandtse/dev

chore: release 2023-03-23 (bf60f4b)

  • Merge pull request #536 from alandtse/test_ci

ci: fix broken tests (e017a6d)

  • Merge branch 'dev' into test_ci (7c9bdf6)

v3.10.3 (2023-03-14)

Build

  • build: pre-commit autoupdate (#533)

  • build: pre-commit autoupdate

updates:

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci


Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (8aaebde)

  • build: pre-commit autoupdate

updates:

Fix

  • fix: memoize unique id (#534)

  • Memorize unique id

  • Slugify once instead of every state write (05f1689)

Unknown

  • Merge pull request #535 from alandtse/dev

chore: release 2023-03-13 (47fd15a)

  • Merge branch 'dev' into main (ca3907f)

  • Merge pull request #527 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (460fdec)

  • Merge branch 'dev' into main (03f32e3)

v3.10.2 (2023-03-05)

Fix

  • fix: bump teslajsonpy to 3.7.4

closes #525 (967ce66)

Unknown

  • Merge pull request #519 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (14d4302)

  • Merge branch 'dev' into pre-commit-ci-update-config (a6bf993)

v3.10.1 (2023-03-05)

Build

  • build: pre-commit autoupdate

updates:

Fix

  • fix: bump teslajsonpy to 3.7.3

Replaces json with orjson.

closes #524 (da8afd7)

Style

  • style: sort manifest.json (6f1cc42)

v3.10.0 (2023-02-22)

Build

  • build: pre-commit autoupdate

updates:

  • build: pre-commit autoupdate

updates:

Feature

  • feat: add min_to_full_charge attribute (#505) (316ad90)

Unknown

  • Merge pull request #516 from alandtse/dev

2023-02-21 (8ab3339)

  • Merge pull request #515 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (63f9375)

  • Merge pull request #511 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (5a21bc2)

  • Merge pull request #502 from alandtse/main

Sync with main (cc9686d)

v3.9.2 (2023-02-01)

Build

  • build: exclude changelog from prettier (74e161a)

  • build: pre-commit autoupdate

updates:

Ci

  • ci: bump actions/checkout (ff469ce)

Documentation

  • docs: Updated readme installation instructions (#495) (8d966c4)

Fix

  • fix: Bump teslajsonpy to fix charge current (#484)

closes #479 (fa4bb7e)

  • fix: switch to async_forward_entry_setups

closes #499 (3d62c3c)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (651d996)

Unknown

  • Merge pull request #501 from alandtse/dev

ci: bump actions/checkout (a715717)

  • Merge pull request #500 from alandtse/dev

2023-01-31 (6bcee83)

  • Merge pull request #471 from alandtse/pre-commit-ci-update-config

build: pre-commit autoupdate (ee84795)

  • Merge branch 'dev' into pre-commit-ci-update-config (e63a539)

v3.9.1 (2022-12-30)

Build

  • build: update dev dependency syntax (977654b)

  • build: exclude vscode/launch.json (cc20a97)

Ci

  • ci: update precommit (852e4d6)

  • ci: add support for pre-commit.ci (7df63ff)

Fix

  • fix: handle None option_codes

closes #466 (47bb178)

Style

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (edd0e80)

  • style: fix prospector errors (e6e56f8)

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (2a34979)

  • style: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci (4b79396)

Unknown

  • Merge pull request #469 from alandtse/dev

2022-12-29 (8afd0c9)

  • Merge pull request #467 from alandtse/teslajsonpy3.7.1 (c1fe52c)

v3.9.0 (2022-12-29)

Feature

  • feat: add emission test button (#454)

closes #438 (8d40beb)

  • feat: add scheduled departure and charge timestamp attributes (#458) (b979846)

  • feat: Add dynamic debug logging (#448) (d310ae5)

Fix

  • fix: make destination location unknown after arrival (#460)

closes #455 (5781cea)

  • fix: account for time passing between updates (#419) (02751a2)

  • fix: replace deprecated is_metric (#343)

closes #326 (87005fc)

Unknown

  • Merge pull request #462 from alandtse/dev

2022-12-26 (5646d01)

v3.8.1 (2022-12-21)

Fix

  • fix: handle battery range attributes NoneType (#453)

closes #450 (90f7d0d)

Unknown

  • Merge pull request #456 from alandtse/dev

fix: handle battery range attributes NoneType (#453) (30384c9)

v3.8.0 (2022-12-21)

Feature

  • feat: add user present and User ID (#446)

closes #221 (865c637)

  • feat: add estimated battery range attributes (#443)

closes #412 (7584fdc)

  • feat: add scheduled departure and charging (#441)

closes #164 (f555131)

Fix

  • fix: remove state class from timestamp sensors (#440) (43f7169)

Unknown

  • Merge pull request #449 from alandtse/dev

2022-12-20 (a1ad476)

v3.7.1 (2022-12-18)

Documentation

  • docs: update readme with new features (8a518c9)

Fix

  • fix: fix seat map for auto climate command (#435)

closes #433 (c96e5b0)

Unknown

  • Merge pull request #439 from alandtse/dev

2022-12-17 (4109059)

v3.7.0 (2022-12-11)

Feature

  • feat: add destination location entities (#423)

closes #384 (a4ec318)

Unknown

  • Merge pull request #424 from alandtse/dev

feat: add destination location entities (#423) (ae6f560)

v3.6.1 (2022-12-11)

Fix

  • fix: use old pressure consts for ha < 2022.11 (#418)

closes #417 (ad9c41c)

Unknown

  • Merge pull request #420 from alandtse/dev

fix: use old pressure consts for ha < 2022.11 (#418) (47dc540)

v3.6.0 (2022-12-09)

Build

  • build(deps): bump certifi from 2022.9.24 to 2022.12.7 (#415)

Bumps certifi from 2022.9.24 to 2022.12.7.


updated-dependencies:

  • dependency-name: certifi dependency-type: indirect ...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (e2e1d55)

Feature

  • feat: add Auto seat heater option (#404)

closes #302 (7e02a42)

  • feat: add valet mode switch (#405)

closes #355 (01116d1)

Fix

  • fix: always show charge energy for current and last session (#414)

Fixes #295 and #413 (be6c1f0)

  • fix: fix arrows for window cover (#407)

closes #394 (108567c)

  • fix: turn climate on when turning seat heater on (#406)

closes #392 (78e90e4)

Unknown

  • Merge pull request #416 from alandtse/dev

2022-12-08 (79af2f6)

v3.5.2 (2022-12-03)

Fix

  • fix: don't round when tpms is unavailable (#398)

Closes #397 (f5a3b0d)

Unknown

  • Merge pull request #400 from alandtse/dev

fix: don't round when tpms is unavailable (#398) (3d7fce6)

v3.5.1 (2022-12-03)

Fix

  • fix: set default pressure to PSI (#391)

Due to a HA limitation, this will only impact new sensors. Existing sensors will need to be manually set.

closes #388 (e4adef7)

Unknown

  • Merge pull request #393 from alandtse/dev

fix: set default pressure to PSI (#391) (886899c)

v3.5.0 (2022-12-01)

Feature

  • feat: add remote start button (#385)

closes #367 (42b7117)

Unknown

  • Merge pull request #386 from alandtse/dev

feat: add remote start button (#385) (7217e5a)

v3.4.0 (2022-11-30)

Feature

  • feat: add tpms pressure sensors (#376)

closes #160 (b2cbe95)

  • feat: add doors binary sensor (#377)

closes #310 (8b77e3c)

Unknown

  • Merge pull request #381 from alandtse/dev

2022-11-29 (957c361)

v3.3.2 (2022-11-29)

Fix

  • fix: use utc time zone for charge complete sensor

Looks like HA stores all times in UTC then converts that value to the user's timezone. So using utcnow() instead of now() fixes the timezone issue with this sensor.

closes #374 (f13c618)

Unknown

  • Merge pull request #380 from alandtse/dev

fix: use utc time zone for charge complete sensor (ecb0160)

v3.3.1 (2022-11-27)

Fix

  • fix: change timestamp calculation

While charging the timestamp would continuously update. Now the value will only update if charging, the remaining time is greater than 0 and the timestamp is more than a minute different. The timestamp will report unavailable if charging_state is unknown or stopped. It will remember the last value only if charging completed. (5f92774)

Style

Test

  • test: change state tests to use HA constants (d31c021)

Unknown

  • Merge pull request #373 from alandtse/dev

2022-11-26 (88f6454)

v3.3.0 (2022-11-27)

Feature

  • feat: add time to full charge sensor (#349)

closes #348 (fbcf5fe)

  • feat: show software update statuses in version info (#370) (fac9dd1)

Fix

  • fix: handle unresponsive cars/systems during setup

At setup, proceed with creation of entities even if Tesla entities are not responsive. They wlil be picked up when they become available

closes #315 closes #324 (4d1270b)

Unknown

  • Merge pull request #372 from alandtse/dev

2022-11-26 (26bfdbe)

v3.2.0 (2022-11-21)

Feature

  • feat: add binary_sensor.<car>_asleep (#361)

closes #360 (43deefb)

Fix

  • fix: persist entities when reloaded while car is asleep (#365)

Change behavior for auto creation of entities to create but disable until detected.

closes #293 (f0fc6e4)

  • fix: fix usable_battery_level to match app (#362) (c9e4abb)

  • fix: update car-asleep binary sensor icon (#364) (30f319c)

Test

  • test: Use hass built-in unit conversions for distance (#363) (00eeaa5)

Unknown

  • Merge pull request #366 from alandtse/dev

2022-11-21 (97c5533)

v3.1.0 (2022-11-14)

Feature

  • feat: Add window cover (#318)

closes #234 (bea6824)

  • feat: Add charge port latch lock

closes #323 (df7d06e)

Fix

  • fix: fix typo telsafi.com -> teslafi.com (#314)

closes #319 (9c1514a)

Unknown

  • Merge pull request #347 from alandtse/dev

2022-11-14 (7c5a427)

v3.0.2 (2022-10-27)

Fix

  • fix: add missing close_cover for frunks

closes #307 (3257775)

Unknown

  • Merge pull request #312 from alandtse/dev

fix: add missing close_cover for frunks (bf1c5be)

v3.0.1 (2022-10-24)

Ci

  • ci: add linter for commits (d2e3f8c)

Fix

  • fix: add open feature for frunk (769858f)

  • fix: set sensor device class (#292)

closes #284 (658295f)

  • fix: use GPS coords from Tesla API (#289) (1bc6d7f)

  • fix: use car distance units & fix solar type

closes #284 (2617d71)

Unknown

  • Merge pull request #300 from alandtse/dev

2022-10-23 (1907eb5)

  • Merge pull request #299 from shred86/add-frunk-close

fix: add open feature for frunk (97ad635)

  • Merge pull request #291 from alandtse/revert-288-unit-reference

Revert "Use car distance units & remove solar type from model" (38fa02b)

  • Revert "Use car distance units & remove solar type from model" (97539ea)

  • Merge pull request #288 from shred86/unit-reference

Use car distance units & remove solar type from model (6f0a4ae)

  • Use car distance units & fix solar type (1da88e9)

v3.0.0 (2022-10-22)

Breaking

  • feat!: rewrite to add support for energy sites (#250)

Added support for Tesla energy sites and updates to cars.

  • Move car specific code out of TeslaBaseEntity to a newly created TeslaCarEntity.

  • New TeslaEnergyEntity class which also inherits from TeslaBaseEntity.

  • New TeslaEnergyPowerSensor class used for creating power sensors (solar, grid, load and battery).

  • New TeslaEnergyBattery class for Powerwall battery percentage sensor.

  • New TeslaEnergyBatteryRemaining class for Powerewall battery Watt hour remaining sensor.

  • New TeslaEnergyBackupReserve class for Powerwall backup reserve percentage setting sensor.

  • New TeslaEnergyBatteryCharging class for Powerwall battery charging binary sensor.

  • New TeslaEnergyGridStatus class for Powerwall grid status binary sensor.

  • New TeslaEnergyGridCharging class for Powerwall grid charging select.

  • New TeslaEnergyExportRule class for Powerwall export rule select.

  • New TeslaEnergyOperationMode class for Powerwall operation mode select.

  • New TeslaCarChargerPower class for car charger power (kW).

  • Updated properties and method calls to teslajsonpy to reflect the changes made to teslajsonpy.

  • Added additional checks to only add entities for what a car actually has (seat heaters, heated steering wheel, HomeLink, etc.)

  • Updated naming to align with current Home Assistant convention.

  • Changed unique IDs to use VIN + entity type for vehicles.

  • Update class naming to TeslaCar* and TeslaEnergy* for all vehicle and energy site related classes respectively.

  • Renamed TeslaCarMileage to TeslaCarOdometer.

  • TeslaCarParkingBrake will indicate "On" when the car is on and in "Park" but also when the car is off (parking brake still engaged).

  • Updated icons to better reflect entities purpose.

  • Added a check to the car energy added sensor to report 0 unless the car is charging, then report the actual charge energy added. This is due to the Tesla API reporting a decreasing value over time when not charging causing issues with the HA sensor state class "TOTAL_INCREASING".

  • Removed extra state attributes that are already a separate entity (charge energy added, charge current request).

  • Moved charger actual current, charger voltage and charger power extra state attributes from the charging rate to energy added entity.

  • Updated TeslaCarChargerConnection device class to PLUG.

  • Removed unused helpers.py.

  • Cast vehicle ID and ID to a string in TeslaCarOnline extra state attributes to prevent HA from automatically formatting with commas.

  • Check users HA unit system locale settings for determining to return miles vs kilometers.

  • Vehicles will be forced to wake up the first time the integration is set up. For subsequent integration or HA restarts, vehicles will not be forced to wake up unless enabled in the configuration options (defaults to off).

  • Added two new options, "Include Vehicles" and "Include Energy Sites" to the setup config flow. These will allow a user to include/exclude vehicles or energy sites. Defaults selected.

  • Updated doc strings.

  • Updated and added tests to cover changes.

  • closes #79

  • closes #93

  • closes #101

  • closes #173

  • closes #204

  • closes #222

  • closes #226

  • closes #271

BREAKING CHANGE: This is a rewrite. Multiple entitiy_ids were changed. It is recommended you remove and reinstall. Changed trunk, frunk and charger door from lock to cover entities. Created separate sensor (TeslaCarChargerPower class) for charger power. Moved charger amps, charger volts and charger phases extra state attributes to the new charger power sensor. Moved added range extra state attributes to the charger energy added sensor. (6a1f9c3)

Build

  • build: fix version in const.py (6226469)

Documentation

  • docs: remove duplicate info from README (#278) (616d3a5)

Unknown

  • Merge pull request #281 from alandtse/dev

2022-10-21 (2e7554a)

v2.4.4 (2022-10-10)

Documentation

  • docs: Update Danish Translation (#269) (73829e3)

Fix

  • fix: fix keyerror charge_to_max_range

Bump teslajsonpy to 2.4.5

closes #275 (0aa02c1)

Unknown

  • Merge pull request #277 from alandtse/dev

2022-10-10 (4c6697a)

v2.4.3 (2022-09-11)

Fix

  • fix: fix Chinese location offset (#263)

closes #233

Co-authored-by: Emniroll <[email protected]> (3feba57)

Unknown

  • Merge pull request #264 from alandtse/dev

fix: fix Chinese location offset (#263) (2da3c54)

v2.4.2 (2022-08-29)

Fix

  • fix: fix grid status issue (#258)

closes #257 (f889173)

Unknown

  • Merge pull request #259 from alandtse/dev

fix: fix grid status issue (#258) (bbf6538)

v2.4.1 (2022-08-27)

Fix

  • fix: bump teslajsonpy to fix solar naming (#249)

closes #254 (26658bd)

Unknown

  • Merge pull request #255 from alandtse/dev

fix: bump teslajsonpy to fix solar naming (#249) (bcfbc1a)

v2.4.0 (2022-08-13)

Ci

  • ci: disable push validation on main

This was redundant since all PRs must be validated. (dd0fc31)

Feature

  • feat: add solar power, grid power, load power sensors

Adds grid and home (load) power sensors for energy sites (solar systems) (57d6095)

Unknown

  • Merge pull request #245 from alandtse/dev

2022-08-13 (2c6983e)

  • Merge branch 'dev' of github.com:alandtse/tesla into dev (d8fd050)

v2.3.1 (2022-07-10)

Build

  • build: bump precommit deps (651bbb9)

Documentation

  • docs: Update HACS URL (#220) (d93f36f)

  • docs: fix changelog for 2.3.0 (43870ee)

Fix

  • fix: use json in post requests

Tesla recently tightened requirements to always use json for post requests.

Thanks to @haoboji for the fix.

closes #231 (867475f)

Unknown

  • Merge pull request #232 from alandtse/dev

2022-07-09 (bd24ef0)

v2.3.0 (2022-05-29)

Build

  • build: remove iot_class key (55a2ce8)

  • build: remove domains key (9074476)

Feature

  • feat: Add support for async_remove_config_entry_device (#218) (562c1b0)

Fix

  • fix: improve handling on 0 Watts power reads

Bumps teslajsonpy to 2.2.1 (bf94f3b)

  • fix: switch to non-deprecated async_get instead (#217)

Co-authored-by: Jasper Slits <[email protected]> (f82e030)

  • fix: use default if scan_interval settings missing

closes #214 (0d3d4ce)

Unknown

  • Merge pull request #219 from alandtse/dev

2022-05-28 (c5a89db)

  • Merge pull request #215 from alandtse/#214

fix: use default if scan_interval settings missing (35447b0)

v2.2.1 (2022-05-02)

Fix

  • fix: check vin before adjusting climate devices (#208)

Fixes bug where the wrong seat heater or steering wheel heater was impacted for accounts with multiple vehicles.

Fixes #207 (5c81955)

Unknown

  • Merge pull request #209 from alandtse/dev

fix: check vin before adjusting climate devices (#208) (fcfb3b5)

v2.2.0 (2022-04-30)

Feature

  • feat: enable heated seat and steering wheel entities automatically (#205)

Entities that previously had to be manually enabled will automatically be enabled in HA. (ed975f3)

Unknown

  • Merge pull request #206 from alandtse/dev

feat: enable heated seat and steering wheel entities automatically (34f0f87)

v2.1.1 (2022-04-24)

Documentation

  • docs: change HA documentation link to wiki (98650f4)

Fix

  • fix: bump teslajsonpy to 2.0.3 Fixes keyerror for vehicles lacking heated seats/steering wheels

closes #199 (5ca3899)

Unknown

  • Merge pull request #201 from alandtse/dev

2022-04-24-2 (e23c8d3)

  • Merge pull request #200 from alandtse/#199

fix: bump teslajsonpy to 2.0.3 (2ff5d7b)

v2.1.0 (2022-04-24)

Feature

  • feat: add support for Heated Steering Wheel and Seats (#188) (c052539)

Fix

  • fix: bump dependencies closes #193 (7dc5779)

Unknown

  • Merge pull request #198 from alandtse/dev

2022-04-24 (ce07439)

  • Merge pull request #197 from alandtse/#193

fix: bump dependencies (b70960d)

v2.0.2 (2022-04-23)

Fix

closes #191 (abc98f9)

Unknown

  • Merge pull request #195 from alandtse/dev

2022-04-22 (6e7e5aa)

  • Merge pull request #194 from alandtse/#191

fix: address sensor breaking change (3fa162f)

v2.0.1 (2022-04-05)

Build

Fix

  • fix: bump teslajsonpy to 2.0.1

closes #183 (bab521c)

Unknown

  • Merge pull request #186 from alandtse/dev

2022-04-04 (c6dbc3a)

v2.0.0 (2022-03-27)

Breaking

  • fix!: create json sensors for vehicle data

Add the ability for sensors to be disabled by default. Removes json attributes from online sensor and move to separate sensors.

BREAKING CHANGE: Online sensor will no longer have json vehicle data. Any scripts that relied on that json data will need to use the new vehicle data sensors. They will need to be enabled. (d13f828)

Build

  • build: fix pytest fixture for later versions

closes #170 (10ba368)

Feature

  • feat: add trigger homelink button (disabled by default) (#168)

Homelink button is disabled by default because homelink is an optional accessory. (0a39370)

v1.7.0 (2022-03-25)

Build

  • build: disallow jinja>=3.1.0

Deprecated contextfilter is removed and breaks HA testing (4ec3d09)

Feature

  • feat: force update when enabling polling switch

The polling switch can now be used to force an update by toggling off to on. (0aca7a8)

Fix

  • fix: fix polling switch enable api call

Fix changes to function signature which broke the polling switch.

closes #142 (42f01d4)

Unknown

  • Merge pull request #171 from alandtse/dev

2022-03-24 (0ef48dc)

  • Merge pull request #169 from alandtse/#142

fix: fix polling switch enable api call (f2e3b33)

v1.6.2 (2022-03-23)

Fix

  • fix: bump teslajsonpy to 1.9.0

Removes deprecated get_bearer_step closes #165 (269e08c)

Unknown

  • Merge pull request #167 from alandtse/dev

2022-03-22 (87b3cb8)

  • Merge pull request #166 from alandtse/#165

fix: bump teslajsonpy to 1.9.0 (b437455)

v1.6.1 (2022-03-14)

Documentation

  • docs: note how to turn on climate via a scene (#155)

I had a heck of a time running down how to turn on my Tesla's climate via a scene; looks like I'm not alone. Here's the scene that finally worked for me:

- name: I&#39;m Getting Ready to Leave
  icon: &#34;mdi:car&#34;
  entities:
    climate.tesla_model_y_hvac_climate_system:
      state: heat_cool

Based on the docs I was expecting to need to set state to on and hvac_mode to heat_cool. (6da0204)

Fix

  • fix: disable forced updated for device trackers (#158)

Forced updates are only needed if we are not polling. Since the coordinator is effectively doing the polling instead of Home Assistant internals doing it via should_poll set to True, we need to set the property manually to avoid writing a state update every time the coordinator callback happens to avoid a state changed event when nothing has really changed. (407d44e)

Unknown

  • Merge pull request #159 from alandtse/dev

fix: disable forced updated for device trackers (#158) (2f59bc2)

v1.6.0 (2022-02-23)

Documentation

  • docs: document polling policy (#135)

  • Update test_config_flow.py

Fix tests in config flow

  • Update translations to add section for Polling Policy (004f265)

Feature

  • feat: add set by vin to update polling interval service (#149) (f278680)

  • feat: allow minimum dataCoordinator update interval at 10 seconds (#148) (0d87757)

Unknown

  • Merge pull request #150 from alandtse/dev

2022-02-02 (0515f56)

v1.5.0 (2022-01-15)

Documentation

  • docs: add chromium-tesla-token-generator to app list (#123)

  • add chromium-tesla-token-generator to list

I just had great success using https://github.com/DoctorMcKay/chromium-tesla-token-generator to generate my refresh token. It also made it trivial to verify that my token was not being transmitted to a third party, which as a paranoid delusional I loved. :)

Thank you for this awesome integration!

  • docs: update info.md

Co-authored-by: Alan Tse <[email protected]> (33663fb)

Feature

  • feat: add set polling policy in configuration (#127) (2814149)

  • feat: add polling interval service (#128) (3b2d8bc)

Unknown

  • Merge pull request #133 from alandtse/dev

2022-01-15 (04818c9)

v1.4.0 (2021-12-11)

Build

Feature

  • feat: add horn and flash lights buttons (#114)

This requires HA >= 2021.12.x to have access to the buttons. For older versions of HA, you will see an error we cannot hide: [homeassistant.setup] Setup failed for button: Integration not found.

Co-authored-by: raphael <[email protected]> Co-authored-by: Raph <[email protected]> (1c39e63)

  • feat: expose charge_current_request_max attribute (#110)

Co-authored-by: Daniel Potts <[email protected]> (a589539)

Fix

  • fix: allow specifying auth_domain

This is necessary for China which uses auth.tesla.cn.

closes #113 (22817bd)

  • fix: update ha state on command success

closes #102 (6ede864)

Refactor

  • refactor: clean up code (cba719f)

  • refactor: simplify is_locked (5dcaee6)

Unknown

  • Merge pull request #116 from alandtse/dev

2021-12-11 (59c6d2c)

  • Merge pull request #115 from alandtse/#113

#113 (3458fa9)

  • Merge pull request #112 from alandtse/#102

#102 (2f0c8e0)

  • Merge branch 'dev' of github.com:alandtse/tesla into #102 (00bdcb1)

v1.3.2 (2021-11-22)

Documentation

  • docs: add add integration link to info.md (5dd66ec)

  • docs: add add-integration badge (4ae8227)

Fix

  • fix: bump deps

This is a dummy commit to bump version based on: #98 (ccd2f53)

Refactor

  • refactor: use http.HTTPStatus instead of const.HTTP_* (#87)

Addressing future HA change: home-assistant/core#58380 (25466ce)

Unknown

  • Merge pull request #98 from alandtse/dev

fix: use http.httpstatus constant (6b92437)

  • Improve documentation (#94)

  • Update README.md

Initial insert of 'usage' section to provide basic documentation for functionality. (Relates #65)

  • Update README.md

Updated readme to reflect polling rather than scan, and updated some verbiage. (f289f40)

v1.3.1 (2021-10-22)

Fix

  • fix: bump telsajsonpy to 1.2.1 closes #82 (a0723a4)

Unknown

  • Merge pull request #84 from alandtse/dev

2021-10-21 (6135885)

  • Merge pull request #83 from alandtse/#82

fix: bump telsajsonpy to 1.2.1 (6e2488e)

v1.3.0 (2021-10-21)

Build

  • build: update dev env to py3.9 (88ec031)

Ci

  • ci: simplify workflow to use actions (c087c95)

Documentation

  • docs: add Japanese translations (#75) (b938ab8)

Feature

  • feat: bump teslajsonpy to 1.2.0 Add vin, id, and vehicle_id to online sensor attributes for template use (7a1a1b6)

Unknown

  • Merge pull request #78 from alandtse/dev

2021-10-19 (b397465)

  • Merge pull request #81 from alandtse/online_attributes

ci: simplify workflow to use actions (85efbd9)

  • Merge pull request #80 from alandtse/online_attributes

build: update dev env to py3.9 (03f9c65)

  • Merge pull request #77 from alandtse/online_attributes

feat: bump teslajsonpy to 1.2.0 (7a9100a)

v1.2.1 (2021-10-19)

Fix

  • fix: bump teslajsonpy to 1.1.2 closes #71 closes #70 (697bb3e)

Unknown

  • Merge pull request #74 from alandtse/dev

2021-10-18 (7400fca)

  • Merge pull request #73 from alandtse/api_service

fix: bump teslajsonpy to 1.1.2 (a657f75)

v1.2.0 (2021-10-18)

Documentation

Feature

For documentation see https://teslajsonpy.readthedocs.io/en/latest/teslajsonpy/teslajsonpy.html#teslajsonpy.Controller.api (295ed08)

Unknown

  • Merge pull request #69 from alandtse/dev

2021-10-17 2 (5d59021)

  • Merge pull request #68 from alandtse/api_service

feat: add tesla_custom.api service (f636565)

v1.1.2 (2021-10-18)

Fix

  • fix: bump teslajsonpy to 1.1.1 closes #62 (ea54876)

Unknown

  • Merge pull request #67 from alandtse/dev

2021-10-17 (736fb42)

  • Merge pull request #66 from alandtse/#62

fix: bump teslajsonpy to 1.1.1 (aac1ee0)

v1.1.1 (2021-10-13)

Fix

  • fix: bump teslajsonpy to 1.0.1

closes #61 (f41061c)

Unknown

  • Merge pull request #63 from alandtse/#61

fix: bump teslajsonpy to 1.0.1 (b5b4534)

v1.1.0 (2021-10-11)

Build

Documentation

  • docs: include teslafi for tokens (#54)

  • Update README.md

Document TeslaFi as another source for tokens.

  • Update strings.json

  • Update info.md (f6ed61e)

  • docs: add HACS Link (#48)

Add link and small instructions to add the repository in HACS. (f8c761e)

  • docs: specify platform for authentication apps (#43) (09fc04f)

Feature

  • feat: add support for Energy Sites (#58)

Add support for Tesla Solar (92e8672)

Unknown

  • Merge pull request #59 from alandtse/dev

2021-10-11 (f735eb5)

  • Merge pull request #44 from alandtse/dev

docs: specify platform for authentication apps (#43) (1113695)

v1.0.0 (2021-09-11)

Documentation

  • docs: update documentations for refresh tokens (f4ac729)

Feature

  • feat: replace oauth proxy login with refresh token

Due to Tesla's use of recaptcha, we are abandoning any login logic in the component. Instead, we will process a refresh token generated by third-party apps (e.g., Tesla Tokens, Auth App for Tesla).

closes #3 closes #12 closes #20 closes #25 (9ccb71e)

Fix

  • fix: rename update switch to polling switch

The update switch was confusing since we use update available to describe whether a software update is available. We now clarify that this switch controls polling of a vehicle.

BREAKING CHANGE: update_switch has been renamed to polling_switch. While the UI name will change immediately if you have not modified it, the entity_id should not change unless you remove and reinstall the component.

closes #22

Co-authored-by: Andy Allsopp <[email protected]> (b09825c)

Style

  • style: add pytest to pre-commit (2230e39)

  • style: match max-line-length with black (8909149)

Unknown

  • Merge pull request #31 from alandtse/dev

2021-09-10 (ff41fb2)

  • Merge pull request #29 from alandtse/refresh_token

Switch to refresh token (37bce6a)

v0.2.1 (2021-09-03)

Build

Fix

  • fix: update energy sensor for HA 2021.9 This is not backwards compatible for HA 2021.8 (9cb6806)

v0.2.0 (2021-08-13)

Feature

Fix

  • fix: bump teslajsonpy to 0.19.0 closes #11 (7efd7a1)

Test

Unknown

  • Merge branch 'main' of github.com:alandtse/tesla into main (e56b7ec)

v0.1.5 (2021-05-01)

Build

  • build(deps): update deps (021e547)

Fix

  • fix: detect invalid tokens (90d0a72)

v0.1.4 (2021-05-01)

Fix

  • fix: fix additional httpx syntax errors for reauth (f10809a)

Unknown

  • Merge branch 'main' of github.com:alandtse/tesla into main (63c6639)

v0.1.3 (2021-05-01)

Fix

  • fix: fix token refresh The code path for automatic token refreshes was still using aiohttp. (dec9a40)

Unknown

  • Merge branch 'main' of github.com:alandtse/tesla into main (18766b4)

v0.1.2 (2021-04-30)

Build

  • build(deps): update deps (79fa9d8)

Fix

  • fix: fix directory in zip Zip should now appropriately unzip in tesla_custom (d8b4fc6)

Unknown

  • Merge branch 'main' of github.com:alandtse/tesla into main (db16938)

v0.1.1 (2021-04-30)

Build

  • build: set minimum HA requirement (bf34e49)

  • build: change to zip release (8411806)

Documentation

  • docs: update instructions for upgrading from core (3b67b24)

Fix

Tesla in core will be non-functional regardless. (f173b68)

v0.1.0 (2021-04-29)

Feature