* Improve location tracking on non GPS devices
* Fixed crash enabling location from DisabledLocationHandler on Amazon devices (Non-GPS)
* Disable single accurate location sensor on non GPS devices
* Fixed enabled location tracking after onboarding even if location tracking was disabled
* Open settings, if location settings can't be opend (ex. Custom-ROM without GAPPS)
* Fix that the default setting does not set location sensors
* Do not enable singleAccurateLocation sensor if device has no GPS
* Make use availableSensors to hide singleAccurateLocation sensor
* Fix lint
* Fix disabling of singleAccurateLocation sensor on devices with GPS
* Enable all sensors while onboarding
* Fix code indentation
* Enable high accuracy mode when entering zone
Additional changes:
* Added possibility to enable/disable a sensor setting which will be displayed accordingly in the settings.
* Refactored "creating a list setting" into a method createListPreference
* Fire HA Event for every Zone Entered/Exited and not only for the first
* Fix compile errors after merge upstream
* Unify the use of expression geozone to zone
* High accuracy mode - use OR connected constraints
* Constraint were AND connected. Both constraints (if used) needed to apply
Now the are OR connected. One constraint need to apply.
* Rename setting "High accuracy mode zone expanded radius" to "High accuracy mode trigger range for zone"
* Default range is set to 300 meters, therefore the expanded zones are used
* Make conditions better readable
* Add BLE Transmitter setting to turn on / off transmitter. Notification command will now toggle the transmitter and this setting, if the sensor is enabled.
* Change setting names they're ordered correctly. This is a slight breaking change, as people previously stored IDs will neeed to be re-added.
* Revert 'id' from labels.
* First attempt at pulling Lokalise at build time.
* Temporarily download in PRs.
* Remove null outputs
* Double quotes?
* Oops.
* Forgot the `inputs.`
* Don't override files (aka English).
* Override files when extracting...
* Put args on correct command.
* Now that it works remove push action.
* Fix copy pasta.
* Add new sleep sensors for new sleep API
* Only register for requested updates
* Review comments
* Add more loggers, fix registration issue
* Send classify events as soon as we get them since they come frequently compared to segments which are very infrequent
* Add unit of measurement to sensors
* First cut add BLE beacon as new sensor.
* Lint issues, also using hardcoded strings for state.
* Fixes and small tidies following review.
* Add command_ble_transmitter to MessagingService.kt, to control BLE Transmitter from HA notifications.
* Make description more specific for settings.
* Return if sensor not enabled
* Spaced.
* Command turn on for transmitter should stop it first, as state could be incorrect on Bluetooth being disabled.
* Don't attempt to transmit if BT is off, and include that information in the state.
* Update app/src/main/java/io/homeassistant/companion/android/sensors/BluetoothSensorManager.kt
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
* Add 2 new settings:
- Power transmitter values between high and ultra low. Defaults to ultra low, should help with Battery concerns
- A setting which allows the sensor to be turned on by default when the Enable all toggle is turned on. This is off by default, users have to actively seek out this sensor to turn it on.
* Add battery warning to description.
* Fix build - stray merge comma deletion.
* Fix small description text error.
* Fix left notification when high accuracy mode was disabled (#1366)
Some points which may fix this issue
* Make notification objects static
* Use ServiceCompat for stopForeground
* Additionally call cancel to remove notification
* Bump some app dependencies (#1374)
* Add BLE ibeacon transmitter as sensor to allow room presence. (#1343)
* First cut add BLE beacon as new sensor.
* Lint issues, also using hardcoded strings for state.
* Fixes and small tidies following review.
* Add command_ble_transmitter to MessagingService.kt, to control BLE Transmitter from HA notifications.
* Make description more specific for settings.
* Return if sensor not enabled
* Spaced.
* Command turn on for transmitter should stop it first, as state could be incorrect on Bluetooth being disabled.
* Don't attempt to transmit if BT is off, and include that information in the state.
* Update app/src/main/java/io/homeassistant/companion/android/sensors/BluetoothSensorManager.kt
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
* Add 2 new settings:
- Power transmitter values between high and ultra low. Defaults to ultra low, should help with Battery concerns
- A setting which allows the sensor to be turned on by default when the Enable all toggle is turned on. This is off by default, users have to actively seek out this sensor to turn it on.
* Add battery warning to description.
* Fix build - stray merge comma deletion.
* Fix small description text error.
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
* And fix service fields being added too many times (#1377)
* Improve robustness when BT is turned on and off. Also, tidy code, keep sense of when device parameters have changed in one place.
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
Co-authored-by: chriss158 <edgi@arcor.de>
Co-authored-by: Daniel Shokouhi <dshokouhi@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
* First cut add BLE beacon as new sensor.
* Lint issues, also using hardcoded strings for state.
* Fixes and small tidies following review.
* Add command_ble_transmitter to MessagingService.kt, to control BLE Transmitter from HA notifications.
* Make description more specific for settings.
* Return if sensor not enabled
* Spaced.
* Command turn on for transmitter should stop it first, as state could be incorrect on Bluetooth being disabled.
* Don't attempt to transmit if BT is off, and include that information in the state.
* Update app/src/main/java/io/homeassistant/companion/android/sensors/BluetoothSensorManager.kt
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
* Add 2 new settings:
- Power transmitter values between high and ultra low. Defaults to ultra low, should help with Battery concerns
- A setting which allows the sensor to be turned on by default when the Enable all toggle is turned on. This is off by default, users have to actively seek out this sensor to turn it on.
* Add battery warning to description.
* Fix build - stray merge comma deletion.
* Fix small description text error.
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
Some points which may fix this issue
* Make notification objects static
* Use ServiceCompat for stopForeground
* Additionally call cancel to remove notification
* Try the other URL when refreshing webview on a connection error
* Update refresh button to reflect the URL to be used
* Fix label to only change if user is internal
* Fix failing test