Commit Graph
75 Commits
Author SHA1 Message Date
Philip Abbey 802388aac8 Big fix for PIN enabled items on non-touchscreen devices 2026-07-28 19:36:26 +01:00
Philip Abbey e0b5978406 Update HomeAssistantView.mc
Bug fix for numeric picker initialisation when no user defined template is supplied.
2026-06-24 02:02:18 +01:00
Philip Abbey 8c5bdbc1f8 Non-touch screens cannot use PIN
When a menu item requests a PIN on devices without a touch screen, replace the menu item with an info item displaying a message for the user.
2026-06-24 00:17:26 +01:00
StumblingGamer b1fb5d9417 Preserve tap action data for numeric picker actions
Pass tap_action.data into numeric menu items and merge it with the selected picker value before calling the Home Assistant service.
2026-06-22 11:03:23 -04:00
Philip Abbey a30f0c6218 Bulk amendment of header comments.
Removed "." from the end of all URLs because Copilot complains it can't find the URLs and its too stupid to realise the "." should be omitted. E.g. "https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE."
2026-01-25 17:46:09 +00:00
Philip Abbey 098dc81236 Space alignment in code (tidy) and v3.6 history amendment 2025-11-06 20:40:43 +00:00
Joseph Abbey bc5a7d04e4 Schema fixes and move "exit" into "tap_action" 2025-11-02 13:14:48 +00:00
Joseph Abbey ad83988ade Merge branch 'main' into rename-service-to-action
Signed-off-by: Joseph Abbey <me@josephabbey.dev>
2025-11-01 21:23:08 +00:00
Joseph Abbey cac94fecd4 rename service to action 2025-11-01 21:19:10 +00:00
Philip Abbey fc0320aef6 Initial code for user supplied confirmation messages 2025-10-30 17:50:04 +00:00
Philip Abbey 14186b7992 Documentation & source tidy for Lang.Dictionary items. 2025-10-30 11:39:19 +00:00
Philip Abbey d1f6f6d9d2 Deduped picker variable 2025-10-29 15:14:30 +00:00
Philip Abbey 35333f4d75 Merge branch 'pr/298' into Picker-formatter 2025-10-29 15:13:13 +00:00
Philip Abbey a5ddb65512 Suggested code changes from philipabbey
1. attribute is option, so needs a different template in the API call when absent.
2. Automatically derive the format string from the picker step value for any precision of step.
3. Changed all Lang.String representations of numbers to Lang.Number or Lang.Float. I'm keen to remove the use of strings to hold a numeric value.
4. Tidied up and completed some code comments.
5. Adjusted the JSON schema definition. This is still not finished as the 'picker' object is required for 'numeric' menu items and must not be present for the others. Additional schema changes are required for greater precision.
6. Moved fields over from 'data' to 'picker'.
2025-10-29 14:26:02 +00:00
thmichel 6a0ec34cdb Using a picker object to configure the picker now, deriving display format from steps. 2025-10-29 13:54:14 +01:00
thmichel 4348c899ae Fixed crash when value was int instead of float 2025-10-16 13:34:39 +02:00
thmichel b34291e41f Code Cleanup 2025-10-13 15:57:00 +02:00
thmichel 2981893af7 Using a Picker to set new value 2025-10-11 21:51:50 +02:00
thmichel 52e2efddd8 Added numeric Menu Item 2025-10-10 11:46:20 +02:00
Philip Abbey 8868f2152c Comments & Dictionaries
Reformatted comments to work in VSCode and converted `dict.get(:key)` to `dict[:key]` syntax as its nicer.
2025-07-24 18:54:27 +01:00
Philip Abbey ee9da24592 Fix for too many arguments to a function call on some devices 2025-07-11 01:06:15 +01:00
Philip Abbey 842a31a1cc Review comment
enable => enabled
2025-07-10 18:24:30 +01:00
Philip Abbey 6dbcea94cf Update HomeAssistantView.mc
Refined more precisely where the exit option can be used and enforced in the code.
2025-07-09 21:09:33 +01:00
Philip Abbey ec044c5408 Added two new options to menu items
1. The ability to disable a menu item without deleting it.
2. The option to quit the application on item selection.
2025-07-08 22:48:42 +01:00
Philip Abbey f2d65aa6e3 Added correctly formatted code comments
The newer SDK support tooltips to show the function prototype and help text, so best to make good use of it.
2025-07-04 16:57:25 +01:00
Philip Abbey 71cba8c21c Code attribution for author of PIN entry.
Prior to sorting out inheritance.
2025-03-28 00:20:53 +00:00
Philip Abbey fd58625640 Info only menu item 2025-01-19 13:44:53 +00:00
Philip Abbey 11ecf88ee2 An assortment of cosmetic changes
JSON schema fix to remove 'template' as a valid option, punctuation in strings, whitespace, and a new application history entry.
2024-11-18 19:39:13 +00:00
Matthias Oesterheld 97b5371a0e add "pin": true JSON config property, add default pin, add pin confirmation to toggle, adjust JSON schema 2024-11-13 21:30:36 +01:00
Matthias Oesterheld fb2bb7f566 remove transcoding, move pin to settings, remove pin from schema 2024-11-11 20:06:35 +01:00
Matthias Oesterheld b48102f9a6 add pin confirmation 2024-10-15 19:59:04 +02:00
Philip Abbey 75ea23dfbd 7 New devices, mainly Fenix
SDK updated to 7.3.0 in order to get new devices to work in simulation. This means some function prototypes have had to be amended.
2024-09-05 21:23:49 +01:00
Joseph Abbey 1b40231360 Fix errors 2024-08-30 13:49:09 +01:00
Joseph Abbey 1c182dd615 Deprecate template type 2024-08-30 13:25:16 +01:00
Philip Abbey 685cda7924 Added template option to toggle menu items 2024-08-25 19:34:29 +01:00
Philip Abbey ea32d71a2b Added templates to group items 2024-08-24 18:31:47 +01:00
Philip Abbey 0dfcc65469 3 bug fixes as per the issue description 2024-02-05 19:09:26 +00:00
Philip Abbey 9c001f3402 Cosmetic 2024-01-22 10:28:35 +00:00
Philip Abbey fc7302ad3b Update HomeAssistantView.mc
Removed empty else clause.
2024-01-21 20:00:52 +00:00
Philip Abbey d9ecaf34ee Removed Debug
On some devices it looks like removing the System.println() statements from inside an 'if' clause whose condition is a constant (static constant Globals.scDebug) makes a memory saving. This would suggest the compiler does not propagate constants and prune unreachable code. However in the device of greatest interest debug removal has made no difference to the memory usage. Here the conditional clauses have been turned into comments that can be removed on a case-by-case basis otherwise the debug printing is too voluminous anyway.
2024-01-21 17:53:37 +00:00
Philip Abbey 44ec2e2eb1 Initial Solution 2024-01-19 19:26:02 +00:00
Philip AbbeyandJoseph Abbey 2be255bb71 Removal of menu identifiers as not actually required
Toggle menu is now consistent with the use of data objects in tap and template. HA 'notify' actions now work.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-19 18:04:55 +00:00
Philip Abbey 67a5f0a14e Amending naming convention
Removing some inconsistencies
2024-01-19 16:11:30 +00:00
Restyled.io a48c6a38fe Restyled by whitespace 2024-01-18 21:17:54 +00:00
Philip Abbey 7ffbd84785 Initial working version 2024-01-17 23:31:27 +00:00
Joseph Abbey 2cf087ed23 Remove lists left around after initialisation 2024-01-14 14:20:27 +00:00
Joseph Abbey 1f075a8c0f Remove text versions of menu items 2024-01-14 13:29:33 +00:00
Joseph Abbey 31b30788b1 add TemplateMenuItem 2024-01-14 08:00:49 +00:00
Restyled.io c1103d9325 Restyled by whitespace 2024-01-09 10:56:20 +00:00
Philip Abbey 864a832e69 GUI refresh amendments 2024-01-09 08:58:58 +00:00