Commit graph

388 commits

Author SHA1 Message Date
Daniel Shokouhi 120d1c26f6
More skippable intents (#1038)
* Add more skippable intents

* Remove phone state action since its tied to more than 1 sensor
2020-10-13 12:25:02 -04:00
Daniel Shokouhi 0a2edd0467
Remove attributes part 2 (#1035) 2020-10-13 12:19:34 -04:00
Kevin T. Berstene 51072b9e0d
Created a media player control widget (#1005)
* Added initial media player widget code.  Has some work to do

* ktLint Fixes and corrected TODOs

* Finished TODO: Media image fetch and update

* Corrected rewind/fastforward functionality so it actually seeks

* Made requested minor changes

* Additional minor requested changes

* Appeasing the mighty ktlint

* Added integration GET request for single entity instead of requesting all entities and parsing results

* Corrected dark mode widget icons

* Fix merge conflicts and migration.

* Added toast notification for entity fetch failure

Co-authored-by: Basset, Justin <Bassett.JustinT@gmail.com>
2020-10-13 12:13:50 -04:00
Patrick Decat cce1608bf0
Allow overriding PUSH_URL and RATE_LIMIT_URL in gradle.properties (#1032)
* Extract PUSH_URL and RATE_LIMIT_URL as BuildConfig values that can be overriden in local.properties

* Put push and rate limit URLs in gradle.properties instead of local.properties which can be overwritten by Android Studio
2020-10-11 14:14:49 -04:00
Nelson Osacky 46dde1912e
Remove redundant buildscript declaration (#1029)
Update Gradle to 6.6.1, AGP to 4.0.2
Declare root project name
Use lazy task configuration
2020-10-11 13:38:46 -04:00
Daniel Shokouhi 065e5b24bb
Fix sentry crash after target SDK change (#1034) 2020-10-11 12:27:04 -04:00
Justin Bassett 57358433f3
Initial Support for Android 11 Power Menu Actions (#1027)
* Upgrade target api.

* Proof of concept for Android 11 power menu controls.

* Support toggle types.

* More sustainable way to expand.

* Add input_number support.

* Add crappy fan support.

* Add Light support!

* Code Cleanup.
2020-10-11 00:37:40 -04:00
Daniel Shokouhi 490485b982
Allow control of DND via notification (#1024)
* Allow notification command to turn on or off DND

* Improve existing logic to account for additional commands and do better error handling
2020-10-10 23:59:06 -04:00
Daniel Shokouhi 3fbb1874af
Fix sorting of sensors on the manage sensor screen (#1026) 2020-10-09 09:04:51 -04:00
Daniel Shokouhi 08456d2a1b
Add notification rate limit info to settings (#1015)
* Add notification rate limit to settings

* Clean up

* Allow the preference to be copied

* Move logic to integrationService, make summary look better

* Review comments

* Clean up

* Lint
2020-10-08 14:05:13 -04:00
Justin Bassett 989229f2d8
Last Notification Sensor (#1018)
* Initial work on last notification sensor.

* Add allow list for packages.

* Add way to get sensor setting in common place.

* ktLint

* Add isEnabled check.
2020-10-08 13:30:26 -04:00
Daniel Shokouhi 3c0f1a8dce
Allow notifications to use the alarm stream (#1019)
* Allow notifications to use the alarm stream

* Review comment
2020-10-08 11:20:41 -04:00
Justin Bassett 6975acece9
Add Stale Bot (#1014) 2020-10-06 22:42:37 -04:00
Daniel Shokouhi 3efbbc073b
Send an event when a notification is dismissed (#1012)
* Send an event when a notification is dismissed

* Send all notification data instead of just the message

* Switch to a better method
2020-10-06 22:36:50 -04:00
Daniel Shokouhi a59ec710c6
Allow notifications to do TTS (#1011)
* Allow TTS for notifications

* Finalize approach, error and blank title handling

* Use utterance progress indicator to properly shut down TTS engine
2020-10-06 20:14:58 -04:00
Daniel Shokouhi f40c95adcd
Update readme push_url link after refactor (#1010) 2020-10-05 18:04:30 -04:00
Justin Bassett c8b26e2944
Attempt to request accurate location quicker. (#1008) 2020-10-05 08:47:35 -04:00
Justin Bassett 0a8c96d321
Allow opening of apps via notifications. (#1007) 2020-10-05 08:44:36 -04:00
Daniel Shokouhi e8efa495d1
Allow all sensors to be enabled or disabled at once (#1006)
* Allow all sensors to be enabled or disabled at once

* Review comments
2020-10-05 08:43:14 -04:00
Daniel Shokouhi b5d9714524
Add keyguard sensors (#1004) 2020-10-04 20:01:13 -04:00
Daniel Shokouhi 7ce1e9f5a4
Add migration fallback, improve crash handling (#996)
* Add migration fallback, improve crash handling

* Send an event and post a notification when the migration fails

* Mention widgets and move notification logic out of try and catch
2020-10-04 19:57:01 -04:00
Daniel Shokouhi 3c9e30182f
Fix sensor worker blank text (#1003)
* Initialize notification in english in case the app is killed

* Use context inline instead of defaulting to english
2020-10-02 08:56:50 -04:00
Daniel Shokouhi a2ad2c64fc
Start sensor worker when the app is updated (#1002) 2020-10-02 08:53:09 -04:00
Justin Bassett bc7182d93b
Refactor widgets into packages and add previews to interface. (#1000) 2020-10-02 08:48:47 -04:00
Justin Bassett 1b363e6ea7
Remove old migrations since we use room now. (#999) 2020-10-02 08:44:54 -04:00
Justin Bassett 892d144a15
Ensure that we don't write to tags unless explicitly asked to do so. (#998) 2020-10-02 08:40:17 -04:00
Oleksandr Kapshuk 09a4c5c563
Incoming/Outgoing phone number tracking (#978) 2020-10-01 17:51:22 -04:00
Home Assistant Bot 41bacb346a
Lokalise: Translations update (#995)
* Lokalise: updates

* Remove translations that were removed from Lokalise.

Co-authored-by: Basset, Justin <Bassett.JustinT@gmail.com>
2020-10-01 10:37:35 -04:00
Daniel Shokouhi ebf18b4502
Speed up sensor details screen (#997) 2020-10-01 10:37:02 -04:00
Justin Bassett ae25e7fe97
Resource cleanup! (#994) 2020-09-30 23:12:28 -04:00
Oleksandr Kapshuk 9473cbcce8
Split permissions per sensor enity (#991) 2020-09-30 22:20:39 -04:00
Justin Bassett eeb3ab49da
Make on-boarding a more streamlined experience (#989)
* First screen working as designed.

* Error handling now working as expected.

* ktlint

* Fix minimal build.
2020-09-30 10:37:08 -04:00
Daniel Shokouhi df627776ec
Add file chooser to webview (#986)
* Add file chooser to webview

* Review comments with small adjustments
2020-09-30 10:32:29 -04:00
Daniel Shokouhi e98ddbb43b
Fix changelog link by removing full and minimal reference (#980) 2020-09-28 15:35:47 -04:00
Daniel Shokouhi 2a3d304674
Add a link to the change log in app configuration (#975)
* Add a link to the change log in app configuration

* Review comments
2020-09-24 21:10:10 -04:00
Home Assistant Bot f8f03c9ddd
Lokalise: updates (#977) 2020-09-24 20:25:19 -04:00
Daniel Shokouhi a23e657b6f
Add setting for next alarm allow list (#967)
* Add setting for next alarm allow list

* Switch to preference listener to save values
2020-09-23 08:35:08 -04:00
Daniel Shokouhi 1ebda5442b
Check if skip is not null before attempting to show the error (#955) 2020-09-22 22:13:29 -04:00
Jay Newstrom 714060093b
Write application record to NFC tags. (#969)
* Write application record to NFC tags.

Relates to #876

This fixes an issue where on certain devices a dialog was showing up when scanning the NFC tags.

After this change, scanned NFC tags go directly into the home assistant android companion app.

I also tested on an iOS device to ensure the written NFC tag is correctly read.

* Add fallback to old version if the message is too large.
2020-09-22 22:06:12 -04:00
Jay Newstrom ec5295a546
Only add the logging interceptor for debug builds. (#970)
Closes #915
2020-09-22 22:01:55 -04:00
Daniel Shokouhi 5b30b46221
Fix icon logic for mic muted (#968) 2020-09-22 12:46:41 -04:00
Daniel Shokouhi 2a6890e6e3
Fix settings getting overriden by default value, show summary provider if we have it as a result (#966)
* Fix settings getting overriden by default value, show summary provider if we have it as a result

* Set the value to the default
2020-09-21 08:29:07 -04:00
Justin Bassett 63fe60fd8d
Settings for location accuracy! (#964)
* Settings for location accuracy!

* Review comments.
2020-09-20 14:31:22 -04:00
Daniel Shokouhi 553d5e5cc3
Add traffic stat sensors mobile and total data usage for transmitting and receving (#961)
* Add traffic stat sensors mobile and total data usage for transmitting and receiving

* Review comments
2020-09-20 14:19:14 -04:00
Robert Resch 3dd5963dee
always show search bar for icon dialog (#963) 2020-09-20 13:38:18 -04:00
Daniel Shokouhi 30fd61ad6e
Catch the exception when we get null for attributes (#958)
* Catch the exception when we get null for attributes

* Review comments

* Review comments for proper fix
2020-09-19 14:44:21 -04:00
Daniel Shokouhi 54a0d83c03
Fix dynamic field crash for service call widget (#954)
* Fix dynamic field crash

* Review comments
2020-09-19 14:23:20 -04:00
Daniel Shokouhi 9682b5d341
Add deadband setting for last reboot sensor (#951)
* Add offset setting for last reboot sensor

* Review comments
2020-09-19 14:20:48 -04:00
Daniel Shokouhi e874977320
Only do the migration if we have rows to migrate (#949) 2020-09-18 13:29:52 -04:00
Daniel Shokouhi e652696f1d
Allow sensors to have custom settings (#939)
* Allow sensors to have custom settings

* Add toggle to only grab one BSSID at a time

* Change keyboard logic to string or number to simplify it

* Review comments

* Review comments
2020-09-17 23:35:08 -04:00