Commit graph

1796 commits

Author SHA1 Message Date
Lev Aronsky a31cd2fdaa
Fix isActive for locks (#3862)
* Fix isActive for locks

Lock entity should be active when locked, inactive otherwise

* Added a comment to explain the change
2023-09-19 15:40:07 -04:00
dependabot[bot] 03e3cee8e3
Bump org.jlleitschuh.gradle.ktlint from 11.5.1 to 11.6.0 (#3877)
Bumps org.jlleitschuh.gradle.ktlint from 11.5.1 to 11.6.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle.ktlint
  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-09-19 15:39:39 -04:00
Dubzer 20f87c810b
Add smooth scrolling for rotary input (#3876) 2023-09-19 15:39:25 -04:00
Joris Pelgröm 3915ec6d8f
Automatically fix broken registrations/webhooks (#3875) 2023-09-19 15:38:50 -04:00
Justin Bassett 14907facb4
Update Fastlane (#3874)
* Update Fastlane

* Retry 5 times
2023-09-17 19:49:59 -04:00
Joris Pelgröm 2c20baf0f5
Add camera tile to Wear OS (#3870)
* [WIP] Prepare camera snapshot tile

* Deduplicate refresh views

* Get/save tile config in the database

* Deduplicate haptic click, add to camera refresh

* [WIP] Camera tile settings UI

 - Create UI to set camera tile settings
 - Reuse shortcut tile settings activity as a general tile settings activity

* Rename camera snapshot tile to camera tile

* Cleanup: camera entities selection, empty state, preview image

 - On initial load also create a list of camera entities to make it possible to select them without showing up elsewhere in the app
 - Add text to empty state instructing the user to set a camera
 - Update tile preview images

* Fix logged out state on missing tile config

* Force tile update on login

* Scale bitmap to fit inside screen size

 - Scale the received image to a bitmap that does not exceed the screen size to ensure timely refreshes and prevent parcels that are too big
2023-09-17 16:57:33 -04:00
Joris Pelgröm 8d4822a23d
Thread debug log: make extended PAN ID more readable (#3868) 2023-09-17 16:56:15 -04:00
Daniel Shokouhi 9ece6c7c28
Only use the base URL during onboarding if the URL is Nabu Casa (#3322)
* Only use the base URL during onboarding

* Use HttpUrl Builder to construct proper URL

* Move variable to try/catch block

* Only apply logic to NC URLs as those do not have custom path

* Only parse the end of the URL

* Deduplicate code per review
2023-09-17 16:55:38 -04:00
Joris Pelgröm 50a8b9eee2
Don't force on/yes/y/off/no/n to booleans for service button (#3858)
- Relax string conversion to boolean as this breaks other use cases.
2023-09-12 21:51:13 -04:00
Joris Pelgröm fb1bdc05bb
Prevent GeofencingRequest exception on no zones (#3857) 2023-09-12 21:48:53 -04:00
Joris Pelgröm 4163e1465e
Add Android 14 device controls panel (#3855)
* Prepare controls panel activity for Android 14

* Allow controls panel to work while locked

* UI to enable/disable controls panel

 - Disable panel by default
 - Add area to controls settings on Android 14 to enable/disable panel

* Panel server/path settings

 - Add setting to choose which server and path to use for the panel

* Remove transition animation for panel

* experience -> mode
2023-09-12 21:47:57 -04:00
Daniel Shokouhi 3568a69101
Change log week of 9/8 (#3853) 2023-09-08 20:29:32 -04:00
Justin Bassett a351dfb152
Fix production promotion. (#3851) 2023-09-08 20:29:16 -04:00
dependabot[bot] ff70fb7c8c
Bump io.sentry:sentry-android from 6.28.0 to 6.29.0 (#3849)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.28.0 to 6.29.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.28.0...6.29.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-09-07 14:48:43 -04:00
Joris Pelgröm e4f38bae43
Dependency updates; Compose 1.5.1 and Kotlin 1.9.10 bugfixes (#3848) 2023-09-06 22:07:04 +00:00
Joris Pelgröm 21bfda0946
Thread sync BA ID troubleshooting updates (#3847)
* Fix deleting orphaned Thread credentials

 - Deleting orphaned Thread datasets (= datasets for servers that have been deleted for the app) actually deleted current datasets. No real harm except it's deleting stuff and adding it again.

* Log app added preferred Thread network details for debugging

* Always delete Thread datasets using placeholder on >=2023.9

* More detailed log for update app added dataset action
2023-09-06 22:06:29 +00:00
dependabot[bot] 4c87dce861
Bump rickstaa/action-create-tag from 1.6.2 to 1.6.3 (#3844)
Bumps [rickstaa/action-create-tag](https://github.com/rickstaa/action-create-tag) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/rickstaa/action-create-tag/releases)
- [Commits](https://github.com/rickstaa/action-create-tag/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: rickstaa/action-create-tag
  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-09-06 12:53:43 +00:00
dependabot[bot] d483449a03
Bump actions/checkout from 3 to 4 (#3843)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-06 08:33:14 -04:00
Guillermo Orellana 6c54aa84b7
Fix crash on empty URL strings (#3846)
defensive url parsing
2023-09-06 08:32:45 -04:00
RoboMagus 54d59828bc
Fix Duplicate Biometric prompts (#3842)
Mitigate duplicate biometric prompts caused by unexpected WindowFocusChanged events.
2023-09-06 08:32:15 -04:00
Daniel Shokouhi 8c612d402d
Change log week of 9/1 (#3836)
* Update change log week of 9/1

* Bump versions
2023-09-01 21:08:31 -04:00
Daniel Shokouhi 2b02d52231
Update readme to include new logs location (#3839) 2023-09-01 21:08:13 -04:00
Stefan Agner 5a9c3922b9
Fix Thread border agent IDs encoded as hex second instance (#3838)
* Fix Thread border agent IDs encoded as hex second instance

* Remove unnecessary toByteArray() and brackets

* Fix indentation
2023-09-01 21:07:50 -04:00
dependabot[bot] ffd46b385d
Bump hilt from 2.47 to 2.48 (#3834)
Bumps `hilt` from 2.47 to 2.48.

Updates `com.google.dagger:hilt-android-compiler` from 2.47 to 2.48
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.47...dagger-2.48)

Updates `com.google.dagger:hilt-android` from 2.47 to 2.48
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.47...dagger-2.48)

Updates `com.google.dagger.hilt.android` from 2.47 to 2.48
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.47...dagger-2.48)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:hilt-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger.hilt.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-31 19:53:45 -04:00
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