alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
601 stars 99 forks source link

feat: add climate preset icons #1005

Closed dandelionclock closed 5 months ago

dandelionclock commented 5 months ago

Added icons for climate preset modes and fan modes

Breaking Changes strings.json and icons.json must be used for adding icons to climate preset and fan modes. Translation keys in these files can only consist of lowercase letters, numbers, and underscore.

  1. Preset modes has to be renamed to ["normal", "defrost", "keep", "dog", "camp"], and
  2. Fan modes has to be renamed to ["off", "bioweapon"].

Please update your scripts and automations after this update.

Fixes issue 725

alandtse commented 5 months ago

Thanks. Breaking changes refer to changes that impact users. Dev changes aren't breaking.

dandelionclock commented 5 months ago

Thanks. Breaking changes refer to changes that impact users. Dev changes aren't breaking.

Although the UI didn't change, the states behind presets are now normal, defrost, keep, dog, and camp. Existing automations and scripts would probably still try to turn preset to "Dog Mode" which will now error out.