72 Commits

Author SHA1 Message Date
Philip Abbey
9724430168 Merge branch 'main' into 31-reduce-startup-delay 2024-01-08 00:14:05 +00:00
Philip Abbey
0a2d257421 Initial solution 2024-01-08 00:08:12 +00:00
Philip Abbey
92e6917589 Merge pull request #44 from house-of-abbey/42-uninternationalised-string-needs-adding-to-stringsxml
42 uninternationalised string needs adding to stringsxml
2024-01-07 21:27:29 +00:00
Restyled.io
bbaee49825 Restyled by whitespace 2024-01-07 19:12:40 +00:00
Philip Abbey
874ced99c2 Update Settings.mc
Do not cancel the background service just because we show the app's glance.
2024-01-07 19:12:03 +00:00
Philip Abbey
c0787733b7 Amended as required
**/strings.xml need recreating server side.
2024-01-06 21:33:48 +00:00
Philip Abbey
9a268eaf02 Updated RezStrings.mc
Variables are now read only via getters.
2024-01-01 14:17:04 +00:00
Philip Abbey
b039dfbc3b Added RezStrings.mc
The intention is to factorise out many copies of the same string to a central location. Now need to deal with making the variables read-only.
2024-01-01 12:57:50 +00:00
Philip Abbey
ae72313f5e Settings reverted to a static class 2023-12-31 15:55:59 +00:00
Philip Abbey
56155f5f5c Added Watch Battery transmission
Added a background service to send the watch battery level to Home Assistant.
Changed the Glance View as requested by a user.
Updated to new HA icon using SVG in stead of PNG.
2023-12-31 15:22:21 +00:00
Philip Abbey
2ed8e9a3df Update HomeAssistantApp.mc
Found a bug when our Dynamic DNS went down. Can't update no menu items.
2023-12-24 12:43:34 +00:00
Philip Abbey
76c2aaa249 Finishing off widget+app code changes.
Glance now updates the status.
Fix for quitting the application when persistently displaying an ErrorView.
Added option for Widget RootView to immediately start HomeAssistant without waiting for a tap as requested by a user.
2023-12-23 14:30:58 +00:00
Philip Abbey
3de2e25b5d Tidy up 2023-12-21 21:06:07 +00:00
Philip Abbey
27b6b63a7a Update ErrorView.mc
Made the view scalable. Odd that it was not before.
2023-12-21 16:47:21 +00:00
Philip Abbey
332a10867d Made RootView updateable
Changed the group/menu icon to be thicker.
2023-12-21 15:38:29 +00:00
Philip Abbey
3934ca53ba New glance and widget views
Added ability to test if we're a widget or a watch-app. Added troubleshooting documentation.
2023-12-21 11:37:30 +00:00
Philip Abbey
4ab25ef860 Comment header update
Corrected spelling of username of contributor.
2023-12-17 12:46:20 +00:00
Philip Abbey
3ce4b7d3e8 Merge branch 'main' into 22-add-internationalisation-for-application-settings 2023-12-17 12:43:48 +00:00
Philip Abbey
19be6c28ed Update ErrorView.mc
Removed commented out code.
2023-12-17 12:10:52 +00:00
Philip Abbey
091cc7c2fe Update HomeAssistantService.mc
Amended comment.
2023-12-17 11:57:43 +00:00
Philip Abbey
fc2f509085 Merge branch 'main' into 29-vivoactive-4s-crashes-user-reported-error 2023-12-17 11:57:24 +00:00
SomeoneOnEarth
ba5f90c682 Change bg color for error and root view 2023-12-16 22:02:19 +01:00
SomeoneOnEarth
e6d5053ebb Use app name from resources for glance view 2023-12-16 21:49:23 +01:00
Philip Abbey
16383f61a4 Added SomeoneOnEarth to all source headers
Give credit to a co-author.
2023-12-16 17:07:43 +00:00
Philip Abbey
f086d0d03b Bug fix for devices with API 3.1.0
1) Removed WatchUi.getCurrentView() API call in favour of a new method of ensuring only one ErrorView is pushed at a time.
2) Any error view will be cancelled when responses start working again, e.g. watch gets in Bluetooth range of the phone again.
3) Added error message decoding for misspelled entities.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2023-12-16 17:03:38 +00:00
SomeoneOnEarth
0f157aca07 Add hint for widget related stuff 2023-12-16 17:46:19 +01:00
SomeoneOnEarth
aeb7620fb2 Add hint for glance related stuff 2023-12-15 20:11:11 +01:00
SomeoneOnEarth
6c9cfc1c29 Alligned var naming 2023-12-15 19:12:45 +01:00
SomeoneOnEarth
4454e77f35 Show longer texts on fetching + exit view properly 2023-12-15 13:18:49 +01:00
SomeoneOnEarth
5d8c5125ff Improved initial/exit view texts + add i18n 2023-12-15 01:52:26 +01:00
SomeoneOnEarth
9aa32703cc Directly quit w/o showing RootView (if possible) 2023-12-15 00:38:03 +01:00
SomeoneOnEarth
3cc1dd88c3 Fix for older API versions 2023-12-15 00:31:47 +01:00
SomeoneOnEarth
f5095ac97a Code cleanups 2023-12-15 00:31:47 +01:00
SomeoneOnEarth
6bb9d836ac Introducing Loading and Exit View for Widget 2023-12-15 00:31:41 +01:00
SomeoneOnEarth
79b3bc6c21 Quick and dirty widget/glance implementation 2023-12-15 00:27:27 +01:00
Jan Schneider
143bcf08a7 Add application property "confirm_timeout"
After this time (in seconds), a confirmation dialog for an action is automatically closed and the action is cancelled.
Set to 0 to disable the timeout. The default value is 3 seconds.
2023-12-10 22:52:09 +01:00
Jan Schneider
ee3b2abed2 Auto close confirmation dialog after timeout 2023-12-10 12:16:01 +01:00
Philip Abbey
8c0540ee45 Initial version with "auto quit"
Quit the application after a user settable period of time based on a timeout value from the settings.
2023-12-02 19:04:53 +00:00
Philip Abbey
2d07eaa9c6 Update HomeAssistantView.mc
Review comment about a random space.
2023-12-01 11:28:19 +00:00
Philip Abbey
0ab9cb800a Initial solution
For optional confirmation dialogue box.
2023-12-01 09:15:59 +00:00
Philip Abbey
4cc4aef300 Update HomeAssistantIconMenuItem.mc
Removed comment
2023-11-21 18:04:46 +00:00
Philip Abbey
71c1ccc229 Code review comment
Removed debug
Fixed manifest App ID for release
2023-11-21 17:58:18 +00:00
Philip Abbey
ce90d9d47f Single HomeAssistantService for all Taps
1. Amended code for a single HomeAssistantService for all 'tap's
2. Removed now redundant GET request for taps without a service now that having a service is enforced.
3. Determined that migrating API code from 'toggle's to the HomeAssistantService is awkward due to the close coupling with other methods in the class.
2023-11-20 21:32:35 +00:00
SomeoneOnEarth
bcdcfdc66c Set showing icons for types as default 2023-11-19 17:04:22 +01:00
SomeoneOnEarth
440980a96f Aligned naming of menu item types 2023-11-19 13:24:42 +01:00
SomeoneOnEarth
ab995db5ba Removed redundant code from spike 2023-11-19 13:24:37 +01:00
SomeoneOnEarth
604294ae0b Corrected log strings 2023-11-19 13:11:51 +01:00
SomeoneOnEarth
eab2af72f8 Added app setting for left - right menu alignment 2023-11-19 13:11:51 +01:00
SomeoneOnEarth
7bd3486724 Refactored icon submenu creation 2023-11-19 13:11:51 +01:00
SomeoneOnEarth
d93aa78686 Refactored MenuItems creation 2023-11-19 13:11:48 +01:00