Philip Abbey
236a4969d7
Menu item code tidy
...
Prior to sorting out inheritance.
2025-03-27 20:45:51 +00:00
Philip Abbey
e41f451fbc
Update HomeAssistantApp.mc
...
Fix for lost speedup from v2.24 when fixing a bug in v2.25.
2025-03-27 20:45:02 +00:00
Philip Abbey
155649f162
Fix for 2 bugs in issue 221
...
Template rendering and Webhook ID on initial start.
2025-03-26 22:37:33 +00:00
Philip Abbey
adf69d7dec
Rearranging Web API Requests
...
Making sure the menu update API call is completed before the Webhook IDs are fetched in order to reduce latency to usefulness.
2025-03-23 16:54:13 +00:00
Philip Abbey
d105e69484
Update WebhookManager.mc
...
Removed Settings.unsetWebhookId() where it might be causing problems with replacement "Garmin Device" in Home Assistant.
2025-03-23 16:01:53 +00:00
Philip Abbey
fd58625640
Info only menu item
2025-01-19 13:44:53 +00:00
Philip Abbey
b6719365b2
Changes as per issue.
2024-11-19 21:56:32 +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
796be5b960
add trailing period to be consistent with other messages
2024-11-18 17:43:10 +01:00
Matthias Oesterheld
b6acec0672
move pin validation error screen to initial view resolution
2024-11-18 17:38:30 +01:00
Matthias Oesterheld
e8e2e02086
move pin validation to settings
2024-11-17 11:21:26 +01:00
Matthias Oesterheld
f3e6879540
move PIN constants to Globals.mc
2024-11-17 11:00:45 +01: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
0ac8e11287
use full numpad, validate 4-digit pin, add visual feedback on click, show toast on error
2024-11-12 19:24:15 +01:00
Matthias Oesterheld
73219c6864
add class/method to debug messages
2024-11-11 21:06:38 +01:00
Matthias Oesterheld
b13fb7e953
validate pin after full length of pin has been entered
2024-11-11 20:58:09 +01:00
Matthias Oesterheld
7947280bb6
internationalize pin lock message
2024-11-11 20:39:26 +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
86943aa664
add mini vibration feedback when tapping pin digits
2024-10-16 15:59:44 +02:00
Matthias Oesterheld
e21ab79d5d
add PIN lock after exceeding failure count
2024-10-16 15:58:37 +02:00
Matthias Oesterheld
c592726bd4
add PIN transcoding
2024-10-15 20:27:52 +02:00
Matthias Oesterheld
b48102f9a6
add pin confirmation
2024-10-15 19:59:04 +02:00
Philip Abbey
a48ab486ae
2 fixes as required by issue 185
...
Solution to a race condition with starting updates and amendment to error message presentation on Webhook ID creation failure.
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-09-07 20:27:58 +01: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
Philip Abbey
4432c7b9a0
Update WebhookManager.mc
...
Speculative fix to handle the callback data from webhook generation perhaps not being Lang.Dict.
2024-08-30 15:49:06 +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
b5140ce8b4
Added vibrate to confirm toggle items tapped
2024-08-29 21:13:55 +01:00
Philip Abbey
17a5d89998
Prevent negative heading values.
2024-08-29 21:00:50 +01:00
Philip Abbey
bbd9119a07
Update HomeAssistantToggleMenuItem.mc
...
Prevent multiple toggles for initiating one action. Only set the state when the called service returns with the confirmed value.
2024-08-28 23:01:28 +01:00
Joseph Abbey
47a8a6e4e6
New poll delay property id
2024-08-28 08:52:41 +01:00
Joseph Abbey
bd37d5f2a8
Allow toggles to work if template fails
2024-08-26 20:11:19 +01:00
Joseph Abbey
2a48790f9c
Individual errors
2024-08-26 20:09:24 +01:00
Joseph Abbey
e9a0c5d137
Single request to update
2024-08-26 18:59:17 +01:00
Philip Abbey
d387152593
Restyle 165 templating content for all types ( #171 )
...
Automated style fixes for #170 , created by [Restyled][].
The following restylers [made
fixes](https://restyled.io/gh/house-of-abbey/repos/GarminHomeAssistant/jobs/4738467 ):
- [jq](https://stedolan.github.io/jq/ )
- [prettier-json](https://prettier.io/docs/en/options.html#parser )
-
[whitespace](https://github.com/restyled-io/restyler-whitespace/blob/master/README.md )
To incorporate these changes, merge this Pull Request into the original.
We
recommend using the Squash or Rebase strategies.
**NOTE**: As work continues on the original Pull Request, this process
will
re-run and update (force-push) this Pull Request with updated style
fixes as
necessary. If the style is fixed manually at any point (i.e. this
process finds
no fixes to make), this Pull Request will be closed automatically.
Sorry if this was unexpected. To disable it, see our [documentation][].
[restyled]: https://restyled.io
[documentation]:
https://github.com/restyled-io/restyled.io/wiki/Disabling-Restyled
2024-08-25 19:47:20 +01:00
Philip Abbey
2ea349bfda
Merge branch 'main' into 165-templating-content-for-all-types
2024-08-25 19:44:58 +01:00
Restyled.io
a35798f9d3
Restyled by whitespace
2024-08-25 18:42:34 +00:00
Philip Abbey
685cda7924
Added template option to toggle menu items
2024-08-25 19:34:29 +01:00
Philip Abbey
72e825566c
Update TemplateMenuItem.mc
...
Fixed System.println() calls.
2024-08-25 19:33:33 +01:00
Philip Abbey
1dc95eeac7
Added callback function to TemplateMenuItem
2024-08-25 18:53:32 +01:00
Philip Abbey
01f073e67b
Update BackgroundServiceDelegate.mc
...
Only submitting non-null values to HA, not fake zeros for null values.
2024-08-25 13:50:29 +01:00
Philip Abbey
64a9c5f274
Added null checking to activity stats
...
Position.getInfo().* might return null sometimes, so best check and avoid a numerical error.
2024-08-25 13:07:23 +01:00
Philip Abbey
ea32d71a2b
Added templates to group items
2024-08-24 18:31:47 +01:00
Philip Abbey
d2aec16811
Update BackgroundServiceDelegate.mc
...
Failed to make commensurate changes to the background service code.
2024-08-24 14:21:02 +01:00
Philip Abbey
a424e35784
Update WebhookManager.mc
...
Returned internationalized string for unavailable to "unknown" as per review comments advice.
2024-08-24 13:58:47 +01:00
Philip Abbey
5558e25bda
Bug fix for activity reporting
...
Added 'has' clauses around additional ActivityMonitor.Info fields that are not present on all devices.
2024-08-24 12:28:54 +01:00
Philip Abbey
c38f91f456
Fixed merge conflict
...
Fixed a merge conflict made by more recent changes to fix a bug (https://github.com/house-of-abbey/GarminHomeAssistant/pull/164 )
2024-08-19 12:33:23 +01:00
Klaas Winter
43378bfe8c
Set icons for sent sensor values
2024-08-05 19:34:26 +02:00
Klaas Winter
700e7ca822
Send heartrate, floor, and respiration rate values to Home Assistant
2024-08-05 18:02:37 +02:00
Philip Abbey
a213c6851e
Largely cosmetic
...
Removed debug that escaped.
Belt & braces field to prevent the update chain being started twice.
2024-07-26 18:23:22 +01:00