28 Commits

Author SHA1 Message Date
7e58e5416d Support for Vivoactive 6 device
This required an update to the SDK to version 8.1.0. The new SDK found some new code warnings for unreachable code previously known to be reached based on stricter type checking, so fixed in this commit too.
2025-04-24 22:26:18 +01:00
e8f2c0d3bb Amended menu item class inheritance 2025-03-28 00:22:09 +00:00
67a5f0a14e Amending naming convention
Removing some inconsistencies
2024-01-19 16:11:30 +00:00
7ffbd84785 Initial working version 2024-01-17 23:31:27 +00:00
1f075a8c0f Remove text versions of menu items 2024-01-14 13:29:33 +00:00
4ab25ef860 Comment header update
Corrected spelling of username of contributor.
2023-12-17 12:46:20 +00:00
16383f61a4 Added SomeoneOnEarth to all source headers
Give credit to a co-author.
2023-12-16 17:07:43 +00:00
0ab9cb800a Initial solution
For optional confirmation dialogue box.
2023-12-01 09:15:59 +00:00
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
ab995db5ba Removed redundant code from spike 2023-11-19 13:24:37 +01:00
b90e6c7130 Connection reporting improvements and update resumption
Separation of phone connectivity and Internet access tests for finer grained feedback to the user.
Updates no longer stop on absence of Internet connectivity.
2023-11-18 15:52:02 +00:00
4b320086ee Tap menu items without a service tag will be ignored.
The JSON schema checker is relied on to highlight this error.
2023-11-17 17:51:01 +00:00
33bc12d779 Update HomeAssistantMenuItem.mc
Review comments. Vibrate on tap, visual confirmation on receipt of response.
2023-11-14 21:14:32 +00:00
2ccd2bfbff Changes required for 2-tap-or-toggle-dont-work-on-venu-2
Made the 'service' field for taps mandatory.
This makes scripts work for both the emulator and real devices.
Provide a response for automations started with a tap, and now they can be used for both tap and toggle.
2023-11-14 08:35:38 +00:00
d540fb576a Bugfixes
Do not crash on zero items to update
Report unreachable URLs
Verify API URL does not have a trailing slash '/'
Increased HTTP response diagnosis
2023-11-12 16:24:56 +00:00
fde270ff34 Renamed class variables
There's a Monkey C convention to have class variable names start with 'm', then be camel case. 'm' for 'member' according to https://developer.garmin.com/connect-iq/reference-guides/monkey-c-reference/.
2023-11-11 13:58:35 +00:00
e7c4411dd2 Fix for the update rate
Now perform a "round robin" of all toggle menu items. The delay is currently 100 ms to avoid Communications.BLE_QUEUE_FULL errors.
2023-11-11 13:36:08 +00:00
b7ed8607fb Additional changes for the previous merge. 2023-11-11 07:49:15 +00:00
80e56e5969 Merge branch 'main' of ssh://github.com/house-of-abbey/GarminHomeAssistant 2023-11-11 07:46:40 +00:00
1653569e8f Added 54 devices
Added vibrate knowledgement
Fall back to a home made alert if no toast or vibrate
Support for 80 devices, 54 new ones added
2023-11-10 18:22:14 +00:00
5afb08d096 Service call for tap item 2023-11-09 21:13:09 +00:00
ebb89cd4b4 Amended display of "no Internet" errors 2023-11-04 10:44:08 +00:00
8ad95063f0 Changed tap response to use a toast 2023-11-03 17:09:15 +00:00
816b0dc890 Internationalisation & Multi-watch support
Copied two methods from GarminThermoNest to translate languages and manage different sized icons for the various sizes of watch. Also copied ErrorView for smaller wrapped text for error messages.
2023-11-02 21:32:42 +00:00
d81fa1abcd Added confirmation of tap event and amended delegate decoding of actions. 2023-11-01 19:46:28 +00:00
2b06e63c03 Added alerts on error
And removed (and changed) API key... doh!
2023-10-31 21:22:14 +00:00
7dd3ccc670 Configurable Menu
Uses a JSON file served by a URL.
2023-10-31 20:49:38 +00:00
8a4f514e6b Initial basic application 2023-10-31 13:32:42 +00:00