Commit graph

1772 commits

Author SHA1 Message Date
Joris Pelgröm b6687dc762
Shortcut path input improvements (#3831) 2023-08-31 19:53:32 -04:00
Daniel Shokouhi 90bf7369e2
Clean up some left over code after update to getIcon (#3827) 2023-08-31 19:53:10 -04:00
Joris Pelgröm a9b7dfdb68
Prevent entity ID typos throwing errors (#3829)
Prevent typos throwing errors for more info panel
2023-08-29 06:02:54 -04:00
Joris Pelgröm 02160c4f48
Fix Thread border agent IDs encoded as hex (#3828) 2023-08-28 17:44:49 -04:00
Daniel Shokouhi 3cc7bdca08
Fix last update sensor intent not retrieving value (#3825)
* Fix last update sensor intent not retrieving value

* Suppress deprecation

* Move suppression
2023-08-28 17:44:10 -04:00
Daniel Shokouhi bb58a578dd
Use unavailable and unknown states consistently when dealing with sensors and entities (#3821)
* Use unavailable and unknown states consistently when dealing with sensors and entities

* Update more sensors

* Remove unused import
2023-08-28 17:43:25 -04:00
Joris Pelgröm 201931b91e
Improve handling my link when not logged in (#3826) 2023-08-28 17:42:20 -04:00
Daniel Shokouhi c11f2da26f
Update change log week of 8/25 (#3819)
* Update change log week of 8/25

* Review comments
2023-08-26 15:39:53 -07:00
Joris Pelgröm 6d4fa06545
Thread updates: add border agent ID, multiserver improvements (#3820)
* Add/update/delete Thread credentials by border agent ID

* Multiserver: only keep one HA credential, handle credentials for deleted servers

 - Make sure the app only stores one HA credential that matches the preferred credential for the server executing the sync.
 - Create an 'orphaned Thread credentials' system to be able to delete credentials for servers that have been previously deleted.

* Fix minimal
2023-08-26 16:54:40 -04:00
Daniel Shokouhi 6c2e555e57
Various changes to entity usage (#3816)
* Various changes to entity usage

* Remove unneeded code

* String fixes

* Remove redundant string
2023-08-26 16:53:31 -04:00
Joris Pelgröm cde8dc9ee9
More dependency bumps (#3815) 2023-08-26 16:42:20 -04:00
Joris Pelgröm cad1bfa47e
Fix restoring custom fields in service button widget (#3813)
- When reading service data from the database, make sure to also add custom fields.
 - Fix RecyclerView not setting fields to empty when no value is present, potentially showing input from other recycled fields if the field doesn't have any value.
 - Fix adding a new custom field destroying any input currently held in the views by using a specific insertion method instead of all changed, which will reset the values.
2023-08-24 14:51:48 -04:00
Joris Pelgröm fb71b9c788
Update to Kotlin 1.9/Compose 1.5/Compose Wear 1.2/AGP 8.1.1 (#3814)
- Update to Kotlin 1.9
 - Update to Compose 1.5 and Compose Wear 1.2, both depend on and are required for Kotlin 1.9. Compose Wear includes lazy classes moving to a different package so updated imports.
 - Update to AGP 8.1.1 to remove compatibility warning
 - Update Navigation Compose to 2.7.1 as it uses Compose 1.5 internally
 - Update Accompanist to 0.32 as it uses Compose 1.5 internally
 - Switch Room to KSP instead of kapt because this (latest stable) release doesn't work with Kotlin 1.9 otherwise. As a result, we no longer need to specifically enable incremental compilation.
2023-08-24 14:51:29 -04:00
Joris Pelgröm d115e7af56
Update deeplink support with multiserver: ask which to use (#3811)
- Ask the user which server to use, instead of assuming the most recently used, when using deeplinks with an app that has multiple servers configured
2023-08-24 14:44:08 -04:00
Daniel Shokouhi 1bdbd3f2ce
Android Auto: Set icon color when entity is considered in an active state (#3805)
* Android Auto: Set icon color when entity is considered in an active state

* Add link to frontend code for determing active state

* Add lawn_mower domain and a check on supported colored domains

* Split up isActive and state colored domains

* Update map screen
2023-08-24 14:43:10 -04:00
Justin Bassett 30d0c61c3b
Update Changelog for 2023.8.3 (#3804)
* Update Changelog for 2023.8.3

* Update release version
2023-08-19 17:09:48 -04:00
Joris Pelgröm 7f14582909
Add 'toggle' tap action to entity state widget (#3798)
* [WIP] Widget tap action: toggle entity

* Add feedback on press and failure

* Share code for pressing on entities

* Align cover press action

 - Toggle will stop if possible when opening/closing if supported so prefer toggle instead of open/close

* Toggle by default if supported

 - Set the default tap action for supported entities to toggle instead of refresh

* Update widget description
2023-08-19 19:24:44 +00:00
Joris Pelgröm e3ce9ed5b0
Fix phone state sensor only considering 1 subscription's calls (#3803) 2023-08-19 18:52:24 +00:00
Daniel Shokouhi 477c299272
Catch errors when intent URI is not valid (#3799) 2023-08-19 14:37:34 -04:00
Joris Pelgröm 8d3c2609fe
Bump compile SDK to 34 (Android 14) (#3782) 2023-08-19 14:34:56 -04:00
Joris Pelgröm f722de9561
Replace deprecated menu functions with MenuProvider (#3776)
* Squash merge Migrate to MenuProvider (#2974) by @NotWoods

* Merge fixes

* Update sensor detail fragment menu for multiserver

* Menu fixes/additions

 - Add HelpMenuProvider to Android Auto favorites
 - Fix notification history fragment having no view because of missing super call
 - Fix crash in device controls view if a server that is offline is selected

* ktlint

* Simplify some code

 - Undo formatting change in SettingsActivity
 - Don't require each activity to convert the string to URIs if we can do it in one place

* Remove setHasOptionsMenu(false) usage
2023-08-19 14:34:38 -04:00
Joris Pelgröm 01326db427
Discard notifications when not registered to prevent crash (#3784)
* Discard notifications when not registered to prevent crash

* Add same check to Wear
2023-08-11 19:22:29 +00:00
Daniel Shokouhi 2650ca72c6
Update change log week of 8/11 (#3780) 2023-08-11 15:46:25 +00:00
Joris Pelgröm cea54d6895
Stop TTS playback on new Assist pipeline run (#3778) 2023-08-11 11:31:17 -04:00
Daniel Shokouhi 256835a380
Add update sensors notification command to Wear OS (#3774) 2023-08-10 13:55:54 -04:00
dependabot[bot] eb195b6687
Bump org.jlleitschuh.gradle.ktlint from 11.5.0 to 11.5.1 (#3771)
Bumps org.jlleitschuh.gradle.ktlint from 11.5.0 to 11.5.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle.ktlint
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 16:05:48 -04:00
Joris Pelgröm f90d80638e
Auto: reload entity registry, show loading when changing servers (#3769)
* Reload entity registry, show loading when changing servers

* Don't block collecting server IDs by using a Job
2023-08-08 16:05:33 -04:00
Daniel Shokouhi 6a8fd5989a
Hide all entities when we dont have domains to show, show empty message just in case (#3767) 2023-08-07 16:35:50 -04:00
Joris Pelgröm 73bc7b01fa
Update strings for sentence-style casing (#3768)
* Update strings for sentence-style casing

* Don't remove strings

* Update Companion App
2023-08-07 20:17:09 +00:00
dependabot[bot] a10d9149e5
Bump io.sentry:sentry-android from 6.27.0 to 6.28.0 (#3766)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.27.0 to 6.28.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.27.0...6.28.0)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07 15:54:55 -04:00
Daniel Shokouhi 28b6d8ec32
Add support for alarm control panels in android auto (#3765)
* Add support for alarm control panels in android auto

* Check for domain when checking if there is a code

* Check that armed_away is a supported state

* Review comments

* Add some missing strings, match state casing with HA core
2023-08-07 15:53:03 -04:00
Daniel Shokouhi 2d439f11ea
Set car sensors state appropriately if sensor registers with unit of measurement (#3764)
* Set car sensor state appropriately if sensor registers with unit of measurement

* Stick to unavailable for better consistency
2023-08-07 15:50:21 -04:00
Daniel Shokouhi 0425d7cf97
Change log week of 8/4 (#3758) 2023-08-04 18:54:36 -07:00
Joris Pelgröm 49f3080b9e
Update ExoPlayer usage (#3760)
* Switch to StyledPlayerView for migration

* Migrate to media3 for ExoPlayer

* Replace deprecated code

* Restore/customize layout to ExoPlayer v2
2023-08-04 20:07:52 -04:00
Daniel Shokouhi 77141c254b
Keep track of adding domains to remove loader when user has no actionable entities (#3757)
* Keep track of adding domains to remove loader when user has no actionable entities

* invalidate when no domains added
2023-08-04 20:05:15 -04:00
Joris Pelgröm add1955901
Assist last used: remember STT and record proactively (before connected) (#3755)
Assist last used: remember STT and record before connected

 - For the last used pipeline for Assist, remember whether or not it supports STT input, and if it does start recording proactively/as soon as possible to avoid missing voice input while doing network checks.
 - Fix potential wrong server while sending voice data.
 - Fix voice input remaining active after getting an error response.
2023-08-04 10:59:27 -04:00
Daniel Shokouhi 56798849fe
Reset carInfo when our session is destroyed since data will be stale (#3754) 2023-08-04 10:55:00 -04:00
Joris Pelgröm e274b7e15e
Fix persistent connection notification command (#3753)
Fix persistent connection server command
2023-08-04 10:54:44 -04:00
Daniel Shokouhi ed677e8c97
Change SDK min back to 21 for main app (#3750) 2023-08-01 22:23:07 -04:00
Joris Pelgröm 8be42b08fb
Don't create release number/notes for PRs (#3749) 2023-08-01 20:20:01 +00:00
Joris Pelgröm bf0479a46f
Update release notes action for new release model (#3748)
* Update release notes action for new release model

* Include newlines

* Switch to actions/github-script

* Fix token input

* Named arguments, get owner/repo from context

* Return specific data and update vars

* Last fixes, hopefully

* Set result encoding to string

* Prevent echo from printing directory contents
2023-08-01 15:51:58 -04:00
Joris Pelgröm 91fdba5706
Handle empty array/invalid URL during discovery (#3747) 2023-08-01 12:57:05 -04:00
Daniel Shokouhi 0be1749f4c
Hide hidden entities from android auto domains (#3731)
* Hide hidden entities from android auto domains

* Fix import order
2023-08-01 12:56:49 -04:00
Justin Bassett 862301ce3f
Ignore ruby files that were generated in CI. (#3746)
* Ignore ruby files that were generated in CI.

* Sneaking in a fix to only upload assets only once per release.
2023-08-01 12:56:40 -04:00
Justin Bassett 0cac181a5f Add more ruby platform support. 2023-08-01 11:15:49 -04:00
Justin Bassett ec56d04a2b Set a ruby version for fastlane. 2023-08-01 11:13:15 -04:00
Justin Bassett b0deb6de77
Migrate deploys to Fastlane (#3745)
* Migrate deploys to Fastlane

* Couple minor fixes to onPush.yml

* Copy paste is hard
2023-08-01 11:08:12 -04:00
Justin Bassett 1a6c2b94d2
Initial work on migrating plugins to catalogs. (#3737)
* Initial work on migrating plugins to catalogs.

* Remove Enterprise Build profiling since we really don't use it.

* Use a common Java Version and sdk versions.

* ktlint

* Review comments.
2023-07-31 20:35:39 -04:00
dependabot[bot] 6c8f67faad
Bump io.sentry:sentry-android from 6.26.0 to 6.27.0 (#3743)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.26.0 to 6.27.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.26.0...6.27.0)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-31 15:19:27 -04:00
Daniel Shokouhi 94413801ec
Hide some sensors from unsupported devices (#3740)
* Hide some sensors from unsupported devices

* Move UI manager to condition
2023-07-31 15:19:14 -04:00