- Catch jsondecode errors (
42a7a17
) - Add missing CONFIG_SCHEMA and service translations (#673) (
c5aad96
) - Remove TeslaMate MQTT warning at every HA startup (#683) (
b993bc9
)
-
build: pre-commit autoupdate (#664)
-
build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: 3.5.2 → 3.5.3
- github.com/psf/black: 23.3.0 → 23.7.0
- github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v3.0.0
- github.com/asottile/pyupgrade: v3.8.0 → v3.9.0
- 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: release 2023-07-27
Merge pull request #675 from alandtse/dev (b02c0da
)
- 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: reduce code needed to construct entities (#672) (
f0b97ba
) -
refactor: reduce entity creation code (#671)
followup to #670 (96fdb46
)
- refactor: cleanup entity construction (#670) (
79eea25
)
- fix: check if arrival time attribute is available
closes #661 (5936ea3
)
- Merge pull request #663 from alandtse/dev
fix: check if arrival time attribute is available (2765a53
)
- 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:
- github.com/commitizen-tools/commitizen: 3.2.2 → 3.5.2
- github.com/asottile/pyupgrade: v3.6.0 → v3.7.0
- github.com/floatingpurr/sync_with_poetry: 1.0.0 → 1.1.0 (
ed73ecb
)
- feat: add minutes-to-arrival-attr (#657)
Adds new attribute to arrival time sensor.
closes #656 (672fc04
)
- 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
)
-
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
)
-
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: 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
)
- Merge pull request #640 from alandtse/dev
chore: release 2023-06-16 (708a7e6
)
- build: pre-commit autoupdate
updates:
- build: pre-commit autoupdate
updates:
- github.com/psf/black: 23.1.0 → 23.3.0
- github.com/PyCQA/prospector: 1.10.1 → 1.10.2
- github.com/floatingpurr/sync_with_poetry: 0.4.0 → 1.0.0 (
f968888
)
-
feat: add heated steering wheel select (#628)
-
add heated steering wheel select
-
cleaned up tests
-
bump teslajsonpy
-
bump teslajsonpy in poetry (
96cbad6
)
- fix: use async_write vs async_update (#626)
closes #606 (78b0641
)
- 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
)
- 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
)
- build: pre-commit autoupdate
updates:
-
build: Update container (#612) (
5609d0d
) -
build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: 3.2.1 → 3.2.2
- github.com/psf/black: 23.1.0 → 23.3.0
- github.com/PyCQA/prospector: v1.9.0 → 1.10.0 (
27cc2a6
)
- build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: 3.2.0 → 3.2.1
- github.com/psf/black: 23.1.0 → 23.3.0
- github.com/asottile/pyupgrade: v3.3.2 → v3.4.0 (
a8dd631
)
- fix: ensure update_vehicles coordinator always polls (#622)
closes #621
closes #613 (544e862
)
- fix: debounce mqtt updates (#608) (
ac31eca
)
- 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
)
- 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
)
- build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: 3.0.1 → 3.2.0
- github.com/psf/black: 23.1.0 → 23.3.0
- github.com/asottile/pyupgrade: v3.3.1 → v3.3.2 (
d43244d
)
- fix: Update arrival with earlier charge complete and arrival times (#575)
closes #565 (92da756
)
- style: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci (7a1df4a
)
- 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
)
- build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: v2.42.1 → 3.0.1
- github.com/psf/black: 23.1.0 → 23.3.0
- github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.6 → v3.0.0-alpha.9-for-vscode (
75c3117
)
- chore: release 2023-04-27 (
6509424
)
- fix: fix multiple cars for TeslaMate (#582)
closes #581 (9e9b949
)
- fix: bump teslajsonpy to fix climate_state error (#580) (
e638177
)
- style: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci (68aa2ee
)
- Merge pull request #571 from alandtse/pre-commit-ci-update-config
build: pre-commit autoupdate (b106d57
)
- build: pre-commit autoupdate
updates:
- 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: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci (cdbeb77
)
- 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
)
- feat: split coordinator to avoid updating disabled cars and energy sites (#552) (
41dfbcc
)
-
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:
- name is required (
de0d838
)
- Merge pull request #554 from alandtse/dev
chore: release 2023-03-26 (648fe39
)
- ci: add todo (
d8896b0
)
-
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: 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
)
- 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
)
-
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: memoize unique id (#534)
-
Memorize unique id
-
Slugify once instead of every state write (
05f1689
)
- 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
)
- fix: bump teslajsonpy to 3.7.4
closes #525 (967ce66
)
- 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
)
- build: pre-commit autoupdate
updates:
- fix: bump teslajsonpy to 3.7.3
Replaces json with orjson.
closes #524 (da8afd7
)
- style: sort manifest.json (
6f1cc42
)
- build: pre-commit autoupdate
updates:
- build: pre-commit autoupdate
updates:
- feat: add min_to_full_charge attribute (#505) (
316ad90
)
- 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
)
-
build: exclude changelog from prettier (
74e161a
) -
build: pre-commit autoupdate
updates:
- github.com/commitizen-tools/commitizen: v2.38.0 → v2.40.0
- github.com/psf/black: 23.1a1 → 22.12.0
- github.com/PyCQA/prospector: v1.8.3 → v1.8.4
- github.com/PyCQA/isort: 5.11.4 → 5.12.0 (
9f82417
)
- ci: bump actions/checkout (
ff469ce
)
- docs: Updated readme installation instructions (#495) (
8d966c4
)
- fix: Bump teslajsonpy to fix charge current (#484)
closes #479 (fa4bb7e
)
- fix: switch to async_forward_entry_setups
closes #499 (3d62c3c
)
- style: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci (651d996
)
- 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
)
- fix: handle None option_codes
closes #466 (47bb178
)
- 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
)
- Merge pull request #469 from alandtse/dev
2022-12-29 (8afd0c9
)
- Merge pull request #467 from alandtse/teslajsonpy3.7.1 (
c1fe52c
)
- 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: 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
)
- Merge pull request #462 from alandtse/dev
2022-12-26 (5646d01
)
- fix: handle battery range attributes NoneType (#453)
closes #450 (90f7d0d
)
- Merge pull request #456 from alandtse/dev
fix: handle battery range attributes NoneType (#453) (30384c9
)
- 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: remove state class from timestamp sensors (#440) (
43f7169
)
- Merge pull request #449 from alandtse/dev
2022-12-20 (a1ad476
)
- docs: update readme with new features (
8a518c9
)
- fix: fix seat map for auto climate command (#435)
closes #433 (c96e5b0
)
- Merge pull request #439 from alandtse/dev
2022-12-17 (4109059
)
- feat: add destination location entities (#423)
closes #384 (a4ec318
)
- Merge pull request #424 from alandtse/dev
feat: add destination location entities (#423) (ae6f560
)
- fix: use old pressure consts for ha < 2022.11 (#418)
closes #417 (ad9c41c
)
- Merge pull request #420 from alandtse/dev
fix: use old pressure consts for ha < 2022.11 (#418) (47dc540
)
- 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
)
- feat: add Auto seat heater option (#404)
closes #302 (7e02a42
)
- feat: add valet mode switch (#405)
closes #355 (01116d1
)
- 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
)
- Merge pull request #416 from alandtse/dev
2022-12-08 (79af2f6
)
- fix: don't round when tpms is unavailable (#398)
Closes #397 (f5a3b0d
)
- Merge pull request #400 from alandtse/dev
fix: don't round when tpms is unavailable (#398) (3d7fce6
)
- 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
)
- Merge pull request #393 from alandtse/dev
fix: set default pressure to PSI (#391) (886899c
)
- feat: add remote start button (#385)
closes #367 (42b7117
)
- Merge pull request #386 from alandtse/dev
feat: add remote start button (#385) (7217e5a
)
- feat: add tpms pressure sensors (#376)
closes #160 (b2cbe95
)
- feat: add doors binary sensor (#377)
closes #310 (8b77e3c
)
- Merge pull request #381 from alandtse/dev
2022-11-29 (957c361
)
- 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
)
- Merge pull request #380 from alandtse/dev
fix: use utc time zone for charge complete sensor (ecb0160
)
- 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: black (
19be990
)
- test: change state tests to use HA constants (
d31c021
)
- Merge pull request #373 from alandtse/dev
2022-11-26 (88f6454
)
- feat: add time to full charge sensor (#349)
closes #348 (fbcf5fe
)
- feat: show software update statuses in version info (#370) (
fac9dd1
)
- 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
)
- Merge pull request #372 from alandtse/dev
2022-11-26 (26bfdbe
)
- feat: add binary_sensor.<car>_asleep (#361)
closes #360 (43deefb
)
- 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: Use hass built-in unit conversions for distance (#363) (
00eeaa5
)
- Merge pull request #366 from alandtse/dev
2022-11-21 (97c5533
)
- feat: Add window cover (#318)
closes #234 (bea6824
)
- feat: Add charge port latch lock
closes #323 (df7d06e
)
- fix: fix typo telsafi.com -> teslafi.com (#314)
closes #319 (9c1514a
)
- Merge pull request #347 from alandtse/dev
2022-11-14 (7c5a427
)
- fix: add missing close_cover for frunks
closes #307 (3257775
)
- Merge pull request #312 from alandtse/dev
fix: add missing close_cover for frunks (bf1c5be
)
- ci: add linter for commits (
d2e3f8c
)
-
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
)
- 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
)
- 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 createdTeslaCarEntity
. -
New
TeslaEnergyEntity
class which also inherits fromTeslaBaseEntity
. -
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*
andTeslaEnergy*
for all vehicle and energy site related classes respectively. -
Renamed
TeslaCarMileage
toTeslaCarOdometer
. -
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 toPLUG
. -
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: fix version in const.py (
6226469
)
- docs: remove duplicate info from README (#278) (
616d3a5
)
- Merge pull request #281 from alandtse/dev
2022-10-21 (2e7554a
)
- docs: Update Danish Translation (#269) (
73829e3
)
- fix: fix keyerror
charge_to_max_range
Bump teslajsonpy to 2.4.5
closes #275 (0aa02c1
)
- Merge pull request #277 from alandtse/dev
2022-10-10 (4c6697a
)
- fix: fix Chinese location offset (#263)
closes #233
Co-authored-by: Emniroll <[email protected]> (3feba57
)
- Merge pull request #264 from alandtse/dev
fix: fix Chinese location offset (#263) (2da3c54
)
- fix: fix grid status issue (#258)
closes #257 (f889173
)
- Merge pull request #259 from alandtse/dev
fix: fix grid status issue (#258) (bbf6538
)
- fix: bump teslajsonpy to fix solar naming (#249)
closes #254 (26658bd
)
- Merge pull request #255 from alandtse/dev
fix: bump teslajsonpy to fix solar naming (#249) (bcfbc1a
)
- ci: disable push validation on main
This was redundant since all PRs must be validated. (dd0fc31
)
- feat: add solar power, grid power, load power sensors
Adds grid and home (load) power sensors for energy sites (solar systems) (57d6095
)
- Merge pull request #245 from alandtse/dev
2022-08-13 (2c6983e
)
- Merge branch 'dev' of github.com:alandtse/tesla into dev (
d8fd050
)
- build: bump precommit deps (
651bbb9
)
- 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
)
- Merge pull request #232 from alandtse/dev
2022-07-09 (bd24ef0
)
- feat: Add support for async_remove_config_entry_device (#218) (
562c1b0
)
- 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
)
- 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
)
- 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
)
- Merge pull request #209 from alandtse/dev
fix: check vin before adjusting climate devices (#208) (fcfb3b5
)
- 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
)
- Merge pull request #206 from alandtse/dev
feat: enable heated seat and steering wheel entities automatically (34f0f87
)
- docs: change HA documentation link to wiki (
98650f4
)
- fix: bump teslajsonpy to 2.0.3 Fixes keyerror for vehicles lacking heated seats/steering wheels
closes #199 (5ca3899
)
- 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
)
- feat: add support for Heated Steering Wheel and Seats (#188) (
c052539
)
- fix: bump dependencies
closes #193 (
7dc5779
)
- Merge pull request #198 from alandtse/dev
2022-04-24 (ce07439
)
- Merge pull request #197 from alandtse/#193
fix: bump dependencies (b70960d
)
- fix: address sensor breaking change https://developers.home-assistant.io/blog/2021/08/12/sensor_temperature_conversion/
closes #191 (abc98f9
)
- Merge pull request #195 from alandtse/dev
2022-04-22 (6e7e5aa
)
- Merge pull request #194 from alandtse/#191
fix: address sensor breaking change (3fa162f
)
- build: bump deps (
ede7265
)
- fix: bump teslajsonpy to 2.0.1
closes #183 (bab521c
)
- Merge pull request #186 from alandtse/dev
2022-04-04 (c6dbc3a
)
- 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: fix pytest fixture for later versions
closes #170 (10ba368
)
- feat: add trigger homelink button (disabled by default) (#168)
Homelink button is disabled by default because homelink is an optional accessory. (0a39370
)
- build: disallow jinja>=3.1.0
Deprecated contextfilter is removed and breaks HA testing (4ec3d09
)
- 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 polling switch enable api call
Fix changes to function signature which broke the polling switch.
closes #142 (42f01d4
)
- 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
)
- fix: bump teslajsonpy to 1.9.0
Removes deprecated get_bearer_step
closes #165 (269e08c
)
- 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
)
- 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'm Getting Ready to Leave
icon: "mdi:car"
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: 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
)
- Merge pull request #159 from alandtse/dev
fix: disable forced updated for device trackers (#158) (2f59bc2
)
-
docs: document polling policy (#135)
-
Update test_config_flow.py
Fix tests in config flow
- Update translations to add section for Polling Policy (
004f265
)
-
feat: add set by vin to update polling interval service (#149) (
f278680
) -
feat: allow minimum dataCoordinator update interval at 10 seconds (#148) (
0d87757
)
- Merge pull request #150 from alandtse/dev
2022-02-02 (0515f56
)
-
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
)
-
feat: add set polling policy in configuration (#127) (
2814149
) -
feat: add polling interval service (#128) (
3b2d8bc
)
- Merge pull request #133 from alandtse/dev
2022-01-15 (04818c9
)
- build: update deps (
715540b
)
- 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: 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
)
- 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
)
- fix: bump deps
This is a dummy commit to bump version based on:
alandtse#98 (ccd2f53
)
- refactor: use http.HTTPStatus instead of const.HTTP_* (#87)
Addressing future HA change: home-assistant/core#58380 (25466ce
)
- 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
)
- fix: bump telsajsonpy to 1.2.1
closes #82 (
a0723a4
)
- 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
)
- build: update dev env to py3.9 (
88ec031
)
- ci: simplify workflow to use actions (
c087c95
)
- docs: add Japanese translations (#75) (
b938ab8
)
- feat: bump teslajsonpy to 1.2.0
Add vin, id, and vehicle_id to online sensor attributes for template use (
7a1a1b6
)
- 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
)
- fix: bump teslajsonpy to 1.1.2
closes #71
closes #70 (
697bb3e
)
- 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
)
- docs: fix changelog (
e2e0f89
)
- feat: add tesla_custom.api service This service allows access to the controller.api command. This allows the use of any command in the endpoints file. https://github.com/zabuldon/teslajsonpy/blob/master/teslajsonpy/endpoints.json
For documentation see https://teslajsonpy.readthedocs.io/en/latest/teslajsonpy/teslajsonpy.html#teslajsonpy.Controller.api (295ed08
)
- 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
)
- fix: bump teslajsonpy to 1.1.1
closes #62 (
ea54876
)
- 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
)
- fix: bump teslajsonpy to 1.0.1
closes #61 (f41061c
)
- Merge pull request #63 from alandtse/#61
fix: bump teslajsonpy to 1.0.1 (b5b4534
)
- build: bump deps (
921ef8e
)
-
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
)
- feat: add support for Energy Sites (#58)
Add support for Tesla Solar (92e8672
)
- 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
)
- docs: update documentations for refresh tokens (
f4ac729
)
- 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: 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
)
- Merge pull request #31 from alandtse/dev
2021-09-10 (ff41fb2
)
- Merge pull request #29 from alandtse/refresh_token
Switch to refresh token (37bce6a
)
- build(deps): bump deps (
5692833
)
- fix: update energy sensor for HA 2021.9
This is not backwards compatible for HA 2021.8 (
9cb6806
)
-
feat: add charger_power attribute to rate sensor zabuldon/teslajsonpy#204 (
66228d1
) -
feat: add energy added sensor This allows Tesla information to be used with the Energy panel. home-assistant/core#54054 (
3b83613
)
- fix: bump teslajsonpy to 0.19.0
closes #11 (
7efd7a1
)
- test: fix tests (
d2874e1
)
- Merge branch 'main' of github.com:alandtse/tesla into main (
e56b7ec
)
- build(deps): update deps (
021e547
)
- fix: detect invalid tokens (
90d0a72
)
- fix: fix additional httpx syntax errors for reauth (
f10809a
)
- Merge branch 'main' of github.com:alandtse/tesla into main (
63c6639
)
- fix: fix token refresh
The code path for automatic token refreshes was still using aiohttp. (
dec9a40
)
- Merge branch 'main' of github.com:alandtse/tesla into main (
18766b4
)
- build(deps): update deps (
79fa9d8
)
- fix: fix directory in zip
Zip should now appropriately unzip in tesla_custom (
d8b4fc6
)
- Merge branch 'main' of github.com:alandtse/tesla into main (
db16938
)
- docs: update instructions for upgrading from core (
3b67b24
)
- fix: change structure to not override core This was required by home-assistant/wheels-custom-integrations#383 (comment)
Tesla in core will be non-functional regardless. (f173b68
)
- feat: initial commit
based on https://github.com/alandtse/home-assistant/tree/tesla_oauth_callback (
c12aadf
)