Commit graph

1171 commits

Author SHA1 Message Date
Daniel Shokouhi e3a96d588e
Correctly identify entity category for sensors (#2357) 2022-03-09 08:00:38 -08:00
leroyboerefijn 261ae31fed
Add haptic feedback to templite tile refresh (#2349) 2022-03-07 21:59:17 -05:00
Daniel Shokouhi 00827d5944
Only skip some reports when high accuracy mode is off (#2347)
* Only skip some reports when high accuracy mode is off

* Use correct function
2022-03-07 21:47:18 -05:00
Nicolas Mowen 508893f02f
FEAT: Ability to show video in notification as a gif (#2342)
* Download mp4 and parse out frames using MediaMetaDataRetriever

* Add view and remote views implementation

* Smoothen out frame selection

* Add constants

* Support all frame rates of video and set frames to show over 2 seconds
2022-03-07 21:42:55 -05:00
Daniel Shokouhi d6f638673a
Add manage notification channels settings screen so users can easily delete channels created by the app (#2340)
* Add a setting screen to easily delete notification channels and edit them

* Minor clean up

* Code review and suggestions

* Code review
2022-03-07 21:41:21 -05:00
Daniel Shokouhi 2a2422b678
Update change log for week of 3/4 (#2338)
* Update change log for week of 3/4

* Changelog update

* Tweak
2022-03-05 21:14:51 -05:00
Daniel Shokouhi d05920d3c3
Check for phone permissions when using call intent (#2344) 2022-03-05 20:00:53 -05:00
Daniel Shokouhi eae2c6e67d
Breaking Change: Make coordinate attributes all lower case for HA compatibility (#2341)
* Make coordinate attributes all lower case for HA compatibility

* Make rest of sensor attributes match expected casing
2022-03-05 19:59:27 -05:00
dependabot[bot] ad57b00bfb
Bump sentry-android from 5.6.1 to 5.6.2 (#2335)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.6.1 to 5.6.2.
- [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/5.6.1...5.6.2)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  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>
2022-03-05 07:32:27 -05:00
Daniel Shokouhi dda9798713
Add new settings screen to change Sensor Update Frequency (#2317)
* Add option for faster sensor updates, and also while charging

* Move settings to its own view, change logic to store in DB

* Set default value

* Try another way

* Try new default method

* Use correct default

* Clean up

* Review comments

* Remove dependency on is_charging sensor

* Switch to a better condition check per review

* Fix db
2022-03-03 20:19:31 -05:00
dependabot[bot] 0714d0a321
Bump actions/checkout from 2 to 3 (#2331)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

---
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>
2022-03-03 19:03:04 -05:00
dependabot[bot] ac5642a482
Bump guava from 31.0.1-android to 31.1-android (#2329)
Bumps [guava](https://github.com/google/guava) from 31.0.1-android to 31.1-android.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 18:56:43 -05:00
Daniel Shokouhi 3d6f50a867
Make sure to remove and start location updates when controlled via command (#2334) 2022-03-03 18:56:30 -05:00
Joris Pelgröm 27b02a0be5
Add fan speed to Wear OS detail panel (#2332)
* Add fan speed detail panel to Wear OS

 - Added a fan speed slider for entities that support setting the fan speed
 - Adjust light brightness string to include percentage symbol

* Rename extension function
2022-03-03 18:55:16 -05:00
Daniel Shokouhi 3de198897d
Changelog update for week of 2/25 (#2320) 2022-02-26 17:55:04 -05:00
dependabot[bot] 3bd019f6f0
Bump accompanist-appcompat-theme from 0.23.0 to 0.23.1 (#2319)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.23.0...v0.23.1)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-appcompat-theme
  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>
2022-02-26 17:36:45 -05:00
dependabot[bot] f4084ce5b6
Bump actions/setup-java from 2.5.0 to 3.0.0 (#2318)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.5.0 to 3.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.5.0...v3.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  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>
2022-02-26 17:35:51 -05:00
Joris Pelgröm 145f19dc66
Fix refreshing settings after requesting background access (#2324)
- The intent to request that battery optimizations are ignored for the app returns an activity result, not a permissions result. Changed to the correct callback to fix refreshing the setting after accepting/denying.
2022-02-26 17:35:27 -05:00
Joris Pelgröm 72a598fdbe
Add extensions to Entity for domain, lights features (#2322)
* Add extensions to Entity for domain, lights features

 - Add extension property for domain
 - Add extension functions for lights: support for setting brightness and color temperature

* Use domain extension property in more places
2022-02-26 17:34:29 -05:00
SkechyWolf ffeeb4a962
Fix showing null when no attributeIds is present (#2316) 2022-02-26 17:18:20 -05:00
Patrick Decat 1736efc82e
Remove trailing commas and spaces from entity_id for button widgets (#2314) 2022-02-26 17:17:27 -05:00
dependabot[bot] abadab61a7
Bump gradle from 7.1.1 to 7.1.2 (#2311)
Bumps gradle from 7.1.1 to 7.1.2.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  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>
2022-02-24 11:26:15 -05:00
Daniel Shokouhi d0842ab557
Fix BLE command when enabling or disabling the transmitter (#2313) 2022-02-24 11:14:31 -05:00
Daniel Shokouhi e3bd338bf1
Enhance command_ble_transmitter to change additional options (#2310)
* Enhance command_ble_transmitter to change additional options

* Move strings to constants
2022-02-23 11:35:03 -05:00
Daniel Shokouhi 953374a0ba
Add new option for persistent connection to only connect when on home wifi (#2309)
* Add new option for persistent connection to only connect when on home wifi

* Tweak text to be more understandable
2022-02-23 11:17:47 -05:00
Daniel Shokouhi 87673bc3a9
Allow enabling chrome remote debugging in settings (#2302)
* Allow enabling chrome remote debugging in settings

* Explicitly mention webview debugging
2022-02-23 08:05:51 -05:00
leroyboerefijn 9c5ced9963
Wear detail panel (#2288)
* Add details panel with light brightness/colortemp control

* Update InlineSlider icons

* Process review comments

* Update toggle placement and string formatting

* Fix last strings and use representative color for Color temperature bar
2022-02-23 08:04:43 -05:00
dependabot[bot] 7e3d5aa10d
Bump hilt-android-compiler from 2.40.5 to 2.41 (#2295)
Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.40.5 to 2.41.
- [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.40.5...dagger-2.41)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  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>
2022-02-19 14:03:01 -05:00
Daniel Shokouhi 72656f5af5
Allow opening notification history from URI action (#2304) 2022-02-19 13:58:48 -05:00
Daniel Shokouhi c70391c0e7
Fix notification receivers for all builds (#2298) 2022-02-19 13:50:26 -05:00
dependabot[bot] b0d81fb778
Bump hilt-android-gradle-plugin from 2.40.5 to 2.41 (#2294)
Bumps [hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.40.5 to 2.41.
- [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.40.5...dagger-2.41)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-gradle-plugin
  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>
2022-02-19 13:50:08 -05:00
dependabot[bot] 8af88297c1
Bump hilt-android from 2.40.5 to 2.41 (#2293)
Bumps [hilt-android](https://github.com/google/dagger) from 2.40.5 to 2.41.
- [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.40.5...dagger-2.41)

---
updated-dependencies:
- 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>
2022-02-19 13:49:40 -05:00
Daniel Shokouhi 23faeac72c
Changelog update for week of 2/16 (#2292) 2022-02-19 13:49:06 -05:00
Joris Pelgröm 83bdcfd245
Improve Wear OS error handling on home, check websocket connection state (#2261)
* Websocket: make connected Job Deferred to get errors

 - Switch the job used for monitoring whether a connection has been established to use Deferred, which will allow us to get the exception that caused the job to be cancelled (and also makes the code a little easier)

* Websocket: add variable for state

 - Add a variable to the websocket repository to monitor the state of the connection. This will allow the app to respond to handled exceptions.

* More Websocket race condition fixes

 - If multiple outgoing messages are pending before the connection is opened, if we receive an invalid auth message or onFailure callback this will be processed last. The connected job is still 'completed', so it shouldn't return true but return if it was successful. This will ensure that any messages after the first one that triggered the failure, will be ignored until the job is reset.
 - Set the connection state to authenticating before sending the message, to make sure that we don't accidentally override a very quick response

* Handle error states in HomeView

 - Add a state for the loading progress to the view model in order to be able to update the home view with errors if necessary
 - If loading the main data failed because of authentication, reset the session like in the phone app and send the user back to onboarding
 - Fix the app getting stuck on a loading screen, even if everything loaded correctly, if there are no supported entity domains in the response
2022-02-19 13:48:07 -05:00
Daniel Shokouhi 074c8aea43
Clean up old quest flavor code and hide some features from unsupported devices (#2265)
* Clean up old quest flavor code and hide some features from unsupported devices

* Check if device supports telephony for phone sesnors
2022-02-16 23:04:38 -05:00
Joris Pelgröm 4544c3473b
Wear use state and device class for entity icons (#2289)
* Use the same function to get icons everywhere

* Use state to determine entity icon
2022-02-16 22:45:24 -05:00
Daniel Shokouhi 89b091dcfd
Add better icon checks to ensure the value is as expected (#2290) 2022-02-16 22:35:47 -05:00
Daniel Shokouhi 0866d3e93b
Make persistent connection and manage tiles settings screens scrollable (#2283)
* Make persistent connection settings screen scrollable

* Make manage tiles scrollable as well
2022-02-16 22:31:41 -05:00
Daniel Shokouhi 78e897b9c7
Check that connection is not null before attempting to send a message (#2263)
* Check that connection is not null before attempting to send a message

* Change null check
2022-02-16 22:28:50 -05:00
Joris Pelgröm 09cf216ff1
Remove toast when updating state/camera/template widget fails (#2262)
* Hide toast when updating state/camera/template widget fails

* Change icon to remove cloud/network emphasis

 - The error can also be because the selected entity no longer exists and/or the device failed to handle the response, so use a more generic error while refreshing icon

* Change return type for resolve text to prevent race condition

 - Don't leak widget-specific calls in to a general variable, use a data class in order to be able to return two different data types
2022-02-16 22:27:51 -05:00
dependabot[bot] 2cc8472e62
Bump accompanist-appcompat-theme from 0.20.3 to 0.23.0 (#2255)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.20.3 to 0.23.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.20.3...v0.23.0)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-appcompat-theme
  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>
2022-02-16 22:21:49 -05:00
Joris Pelgröm 50a74a0365
Allow reconfiguring camera widgets (#2253) 2022-02-16 22:21:25 -05:00
dependabot[bot] c10db53f17
Bump gradle from 7.1.0 to 7.1.1 (#2248)
Bumps gradle from 7.1.0 to 7.1.1.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  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>
2022-02-16 22:19:47 -05:00
Justin Bassett b137f656d1
Fix build from color issue. (#2291)
* Fix build.

* ktlint
2022-02-16 22:08:26 -05:00
micronen 7eced552ea
Add PinchToZoom option (#2252)
* Add PinchToZoom option

Allow enabling PinchToZoom in WebView via option in preferences

* remove redundant code & update icon

* Add js query to set meta content user-scalable=yes

* Improve js query to filter out values and not hard-code the attributes

* Reset viewport to original string when PinchToZoom is disabled
Update on two events:
1. onPageFinished for 1st time load
2. onResume to update on setting change
2022-02-16 20:48:57 -05:00
Jamie Macdonald 5d9a9df0bb
Add volume up/down buttons on media player widget (#2139) 2022-02-16 20:45:39 -05:00
Timothy Kist e21d095195
Wear OS sensors UI (#2033) 2022-02-16 20:43:23 -05:00
SkechyWolf c07e31f08f
Fix typo in readme (#2258) 2022-02-12 19:46:26 -05:00
Daniel Shokouhi c6f1f64e6d
Change default websocket behavior for google play store installations (#2274)
* Change default websocket behavior for google play store installations

* Fix changelog

* Text changes based on build variant

* Space out radio options

* Update notification text

* More text based changes and some design tweaks

* Clean up channel messaging

* Update changelog properly
2022-02-12 19:35:00 -05:00
Justin Bassett 9861462a17
Bump change log version. (#2259) 2022-02-11 12:46:05 -05:00