Compare commits

...

615 Commits
v1.4 ... v3.4

Author SHA1 Message Date
Philip Abbey
28dc5a163c Internationalisation tidy up
Amended script and application history.
2025-09-14 14:13:57 +01:00
JosephAbbey
72b96c8f4d Apply automatic changes 2025-09-14 11:48:48 +00:00
__JosephAbbey
8956c0afb6 Update GitHub Action for translation with new script (#290) 2025-09-14 12:44:10 +01:00
Joseph Abbey
c1d4045890 Update pip install and env 2025-09-14 12:40:22 +01:00
Joseph Abbey
1dc2117eb2 Update the translation script to use Gemini instead of Google Translate (#287) 2025-09-14 12:35:01 +01:00
Philip Abbey
2729182420 Fix HomeAssistant in strings (#288) 2025-09-14 12:20:43 +01:00
Philip Abbey
9852ae39c3 Update HTTP_Headers.md
Missed some normalisation of 'HomeAssistant'.
2025-09-14 12:13:44 +01:00
Philip Abbey
acdd44564b 2025 09 bug fixes (#285)
Three bug fixes.

1. Fixed a bug where templates failed to display in toggle menu items
(at least on some devices).
2. Fixed a bug where a menu item requesting to exit on completion
appeared to indicate failure when using Wi-Fi or LTE. The fix uses a
delay in exiting the application modelled as sufficient for a Venu 2
device, so this might need tweaking for other devices. Closes #283.
3. Attempt to fixed an "Out of Memory" bug caused by v3.3 by making
automatic checking for menu updates both optional and automatically
turned off when insufficient memory is available. This last bug is
device dependent and may require another attempt. Closes #284.
2025-09-13 20:09:26 +01:00
Philip Abbey
8db9820ffa Cosmetic change to docs
"Home Assistant" -> "HomeAssistant"
2025-09-13 20:06:10 +01:00
Philip Abbey
ddc66baccb Re-translation of the HomeAssistant strings
I note that automatic translation has had some fun with the conversion of 'HomeAssistant', and not always desirable.
2025-09-13 20:02:06 +01:00
krzys-h
61afdc0566 Improve all existing translations
Using the newly introduced improve mode of translation script
2025-09-13 20:50:19 +02:00
krzys-h
e50d365e65 Add an option to limit the processed languages 2025-09-13 20:50:19 +02:00
krzys-h
d1f5abfc1f Implement improve mode
In improve mode, the AI is allowed to change any translation to correct
mistakes of the old Google Translate code.
2025-09-13 20:50:19 +02:00
krzys-h
0dd8bd72ff Update the translation script to use Gemini instead of Google Translate
This code itself was also AI generated.
2025-09-13 20:50:14 +02:00
__JosephAbbey
b2f1025a18 Fix HomeAssistant in strings 2025-09-13 19:28:48 +01:00
Philip Abbey
3566920114 Documentation update
New settings.
2025-09-13 12:05:49 +01:00
Philip Abbey
7ba0d76bf6 Added option to turn off automatic menu update checking
This is because it uses additional memory than can cause some older devices to crash unless they have smaller menus.
2025-09-13 11:06:29 +01:00
Philip Abbey
e284cd2d4a 2 Bug fixes
1. Fixed a bug where templates failed to display in toggle menu items (at least on some devices).
2. Fixed a bug where a menu item requesting to exit on completion appeared to indicate failure when using Wi-Fi or LTE. The fix uses a delay in exiting the application modelled as sufficient for a Venu 2 device, so this might need tweaking for other devices.
2025-09-12 14:34:16 +01:00
Philip Abbey
46e44ada30 Update README.md
Added link to Github issues.
2025-09-08 21:43:05 +01:00
Philip Abbey
960a069d99 Fixes (#282)
Fixes
2025-09-07 16:56:37 +01:00
Philip Abbey
c78ca4c318 Fixes 2025-09-07 14:43:18 +01:00
__JosephAbbey
0d28543156 278 add stale while revalidate to caching (#280)
Afetr startup and setting the meni item states, check to see if the
cache menu is out of date wrt the URL and then save the new version and
prompt the user to restart the application on the device. Initial
testing of the Beta version on my watch looks good.
2025-09-06 16:13:56 +01:00
__JosephAbbey
6e735ccd30 Handle null items and values, handle arrays directly under arrays 2025-09-06 16:12:43 +01:00
Philip Abbey
d534c60998 Update HISTORY.md
Added 3.3 version string.
2025-09-05 18:16:41 +01:00
Philip Abbey
4b206f4501 Update README.md
Amended for new cache validation code.
2025-09-05 16:40:57 +01:00
Philip Abbey
03ff4b570b Initial version 2025-09-05 15:43:01 +01:00
Philip Abbey
27dc66d005 Update HomeAssistantApp.mc
Cosmetic
2025-09-05 10:36:35 +01:00
Philip Abbey
9dbae5a64a Cosmetic
Code tidy
2025-09-05 10:01:24 +01:00
Philip Abbey
2923c8faec Documentation update for v3.2 2025-08-15 17:54:19 +01:00
Philip Abbey
a37b9842cb Update HISTORY.md
Amended v3.1 text. Added v3.2 text.
2025-08-15 17:26:32 +01:00
__JosephAbbey
ec2324a8d1 Only re-register sensors if the state has changed (#275) 2025-08-15 17:15:02 +01:00
Philip Abbey
7d77a79ad8 Fix for update before Webhook ID (re-)created. 2025-08-15 17:04:54 +01:00
Philip Abbey
756647d156 Added Setting option to clear the Webhook ID
Co-Authored-By: __JosephAbbey <me@josephabbey.dev>
2025-08-15 15:23:30 +01:00
Joseph Abbey
25cbcfe59a Rename variable 2025-08-15 13:56:46 +01:00
Philip Abbey
04dec1a8ba Merge branch 'main' into 273-only-reregister-sensors-if-the-setting-has-been-updated 2025-08-15 13:41:37 +01:00
Philip Abbey
46740fac76 Update HISTORY.md
Amended v3.1 test to include the bug fix.
2025-08-15 13:39:56 +01:00
Joseph Abbey
474bd552ad Only re-register sensors if the state has changed 2025-08-15 13:22:29 +01:00
Philip Abbey
649f0f250d 264 add custom https headers for eg cloudflare tunnels (#272)
Additional settings to provide a custom HTTP header so that the
application can work with Cloudflare's Web Application Firewall (WAF).
2025-08-15 13:09:27 +01:00
Philip Abbey
5a0bd98ddb Candidate bug fix for crash opening app from glance
Changed the function parameters on WebhookManager.onReturnRegisterWebhookSensor() to remove the last optional parameter that was causing the error message and this appears to keep the application happy on start up. Looks like an API request race between the glance's last call and the app first call.

Co-Authored-By: __JosephAbbey <me@josephabbey.dev>
2025-08-15 12:56:22 +01:00
Philip Abbey
ce81c6af0a Review comments
Co-Authored-By: Lars Pöpperl <45465820+tispokes@users.noreply.github.com>
2025-08-11 20:07:10 +01:00
Philip Abbey
3d7b588d2c small doc suggestions (#271)
Thank you!
2025-08-10 20:52:29 +01:00
Philip Abbey
166b5f4ec3 Found a path to a crash condition
Preventing a de-reference of null when the HA server is unreachable.
2025-08-10 20:50:12 +01:00
Philip Abbey
57128bf7a4 Update README.md
Amended path to create security tokens.
2025-08-10 19:09:52 +01:00
Philip Abbey
64bebded0a Update GarminHomeAssistantSettings.png 2025-08-10 18:42:48 +01:00
tispokes
b9db9af3bf small doc suggestions
small doc suggestions

small doc suggestions
2025-08-10 18:42:28 +02:00
Philip Abbey
ad7d278072 Amended documentation
No longer using groups for sub-menus.
2025-08-10 14:39:55 +01:00
Philip Abbey
dd484aa615 Fix for settings
HTTP-Headers settings no longer crash the application on the device. Group settings removed as they could be be changed a second time due to a bug in the SDK.
2025-08-10 14:08:52 +01:00
Philip Abbey
f224268554 Documentation 2025-08-09 16:36:46 +01:00
Philip Abbey
e9f6ccfd0d Updated translations from @tispokes
Amended translate.py and created a batch script to ease of running the translations.

Co-Authored-By: Lars Pöpperl <45465820+tispokes@users.noreply.github.com>
2025-08-09 13:42:55 +01:00
Philip Abbey
ad8a895f58 Added international strings
Required for new settings.
2025-08-09 11:41:22 +01:00
Philip Abbey
549b04f349 Minor fix to strings.xml
Both English and German to remove a historical ambiguity.
2025-08-09 11:08:06 +01:00
Philip Abbey
dca99cc1a9 Merge branch 'main' into 264-add-custom-https-headers-for-eg-cloudflare-tunnels 2025-08-09 10:47:49 +01:00
Philip Abbey
f76a4b60c7 Update deu translation (#265)
Kept some parts of older translations, renewed some,
can check the translation when you have added the headers :-)
2025-08-09 10:45:38 +01:00
Philip Abbey
24232acfbe Add TLS 1.2 compatibility guidance for Garmin Wi-Fi/LTE connection issues (#266)
This update adds a note to the “Limits of Use” section explaining that
some Garmin devices use TLS 1.2 for HTTPS handshakes. If a server or
proxy enforces a minimum TLS version of 1.3 or higher, users may
experience SSL handshake errors with the message HTTP request returned
error code = 0.

The documentation now includes:

An explanation of the issue

How to identify the error

A practical solution example for Cloudflare Tunneling users to lower the
minimum TLS version to 1.2

A security note advising against lowering TLS below 1.2

This helps users troubleshoot connectivity problems when using Wi-Fi or
LTE features on Garmin watches with Home Assistant.
2025-08-09 10:40:52 +01:00
Ali Alaei
50eccad4dc docs: clarify TLS 1.2 limitation for Garmin Wi-Fi/LTE connections
Signed-off-by: Ali Alaei <49282631+aalaei@users.noreply.github.com>
2025-08-09 11:33:51 +02:00
Ali Alaei
8b641f1ee9 docs: add TLS 1.2 compatibility note for Garmin Wi-Fi/LTE connections
Signed-off-by: Ali Alaei <49282631+aalaei@users.noreply.github.com>
2025-08-08 23:46:01 +02:00
Philip Abbey
c1cddc54e4 Initial attempt
Lacking an end to end test on this code presently.
2025-08-08 11:40:13 +01:00
Lars Pöpperl
fa8ec2ec4d Added all contributors
Signed-off-by: Lars Pöpperl <45465820+tispokes@users.noreply.github.com>
2025-08-08 11:33:51 +02:00
Lars Pöpperl
c2f99d71ad Updated German corrections
Signed-off-by: Lars Pöpperl <45465820+tispokes@users.noreply.github.com>
2025-08-08 11:28:32 +02:00
Philip Abbey
8a8d64bcab Update Wi-Fi.md
Videos only work when they are uploaded to https://github.com/user-attachments/assets/, so that means drag and drop the video into the markdown file rather than reference one already in your source tree.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-25 18:42:37 +01:00
Philip Abbey
55bbb4901c Update HISTORY.md
Amended v3.0 change text.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-25 12:32:27 +01:00
Philip Abbey
3396c6c47d Update manifest.xml
Careless previous commit with reduced device list, this reverts the file.
2025-07-25 12:00:52 +01:00
Philip Abbey
4cfd3ffb6b 260 documentation for wi fi enabled application (#261)
Proposed documentation for the Wi-Fi/LTE enabled Garmin Home Assistant App.
2025-07-25 11:52:08 +01:00
Philip Abbey
d8f944b02f Merge branch 'main' into 260-documentation-for-wi-fi-enabled-application 2025-07-25 11:48:24 +01:00
Philip Abbey
3e0de7ad6e 259 code tidy (#262)
Should be functionally equivalent.
2025-07-25 11:47:47 +01:00
Philip Abbey
6574cf5bac Update GarminHomeAssistantSettings.png
New Wi-Fi option in Setting screen capture.
2025-07-25 11:42:38 +01:00
__JosephAbbey
c0a99946f8 Merge branch 'main' into 259-code-tidy 2025-07-25 10:26:04 +01:00
philipabbey
e8f901167f Apply automatic changes 2025-07-25 09:17:03 +00:00
Philip Abbey
d110826392 Amended Globals.mc
Moved wifiPollDelayMs to Globals class.
2025-07-25 08:38:55 +01:00
Philip Abbey
d645adb3c9 Reuse translations (#263) 2025-07-25 08:23:02 +01:00
__JosephAbbey
9e7ac9de6d Update removeTranslations.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-07-24 23:46:25 +01:00
__JosephAbbey
d43c2d427f Update translate.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-07-24 23:46:15 +01:00
Joseph Abbey
c599b9fcf3 Reuse translations 2025-07-24 23:42:27 +01:00
Philip Abbey
0d73de494e Tidy 2025-07-24 20:56:08 +01:00
Philip Abbey
a686e1a104 Reordered settings 2025-07-24 19:49:44 +01: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
f28a060bf5 Update Wi-Fi.md
Added final note.
2025-07-24 11:04:58 +01:00
Philip Abbey
5b58a0c1be Update Wi-Fi.md
Co-authored-by: Vincent <59287019+vincentezw@users.noreply.github.com>
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-24 11:01:52 +01:00
Philip Abbey
084e7144cc Update Wi-Fi.md
Co-authored-by: Vincent <59287019+vincentezw@users.noreply.github.com>
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-24 11:01:28 +01:00
Philip Abbey
1ad5cb3263 Update Wi-Fi.md
Co-authored-by: Vincent <59287019+vincentezw@users.noreply.github.com>
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-24 11:01:01 +01:00
Philip Abbey
af3820c7a8 Update README.md
Co-authored-by: Vincent <59287019+vincentezw@users.noreply.github.com>
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-07-24 11:00:48 +01:00
Philip Abbey
70f05e8912 Added missing code headers
And included vincentezw in headers for the code he touched.
2025-07-22 22:14:46 +01:00
Philip Abbey
7239bc85c0 Amended to include LTE
Previously overlooked.
2025-07-22 22:09:39 +01:00
Philip Abbey
c138fad6ca Update properties.xml
Moved Wi-Fi option up to be more prominent.
2025-07-22 22:05:04 +01:00
Philip Abbey
9641313492 Wifi -> Wi-Fi
Amended in presentational aspects only, not in the actual code. "Wi-Fi" is the proper noun and registered trademark.
2025-07-22 22:03:10 +01:00
Philip Abbey
6f5e591910 Initial Docs for review 2025-07-22 21:42:51 +01:00
Philip Abbey
e2722319a6 add Wifi LTE command execution (#255)
Firstly, thank you to all the maintainers for your work on this very
useful application.

This PR adds the ability to execute Home Assistant commands over Wi-Fi
or LTE, behind an opt-in setting. While not a full "Wi-Fi mode," this
feature allows the app to function in limited scenarios where the phone
is unavailable but the device still has a direct network connection
(e.g. Wi-Fi or LTE).

When enabled:
- The app can launch with a cached menu without phone connection.
- On command execution, the user is prompted to confirm.
- Upon confirmation, a bulk sync is triggered to send the request to
Home Assistant.

This enables basic control even without Bluetooth connectivity — so I
can switch off that pesky bathroom light late at night when I don't have
my phone nearby.

I’ve seen a few issues suggesting similar functionality, and I believe
this strikes a useful balance between functionality and simplicity. That
said, I understand if this doesn't align with the intended featureset —
feel free to close if so.

This PR also adds a few string resources without translations. I'm not
sure if those are autogenerated or user-provided — happy to adjust if
needed.
2025-07-22 20:52:07 +01:00
Vincent Elger Zwanenburg
0b84983eaf use fixed poll delay from const 2025-07-21 21:02:51 +01:00
Vincent Elger Zwanenburg
d32135af63 fix setting toggleItem, periodic pulling 2025-07-21 19:45:14 +01:00
Vincent Elger Zwanenburg
db3fbd9886 timers as statics, defensive popviews, no double confirmation, add pin
screen onBack, toggle state tweaks
2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
be7eed1ae1 early return from fetchApiStatus for in-app wifi, fix typo in docstrings 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
576f8c4a64 HomeAssistantConfirmationDelegate and HomeAssistantPinConfirmationDelegate undo toggles on timeout and reject 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
979d85fce5 show toast, not error, in updateMenuItems 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
ac899ff784 simplify delegate, toggle switch for empty response body 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
b45f02ef7b move popview up so it does not close wifi dialog 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
62f0e711c9 make setting conditional by using group 2025-07-19 10:35:35 +01:00
Vincent Elger Zwanenburg
b2b8ffb332 separate syncdelegate class file, check for startsync2 2025-07-19 10:35:34 +01:00
Vincent Elger Zwanenburg
172d4ad1e4 add Wifi LTE command execution 2025-07-19 10:35:34 +01:00
Joseph Abbey
460f247728 Improve web: dim disabled, icons, pin 2025-07-19 07:37:05 +01:00
__JosephAbbey
a6b4925ff7 257 pin dialog does not popup when using is servicetap (#258)
Need this urgently as it affects the use of the PIN for tap menu items.
2025-07-18 20:51:10 +01:00
Philip Abbey
3672a598fb Update HISTORY.md
Added v2.32
2025-07-18 20:49:10 +01:00
Philip Abbey
f6d0916315 Update HomeAssistantTapMenuItem.mc
Requirement for use of the PIN was not being correctly extracted from the options. Goes to show why the security features should not be relied on! A recent compilation fix created this breaking change.
2025-07-18 20:46:49 +01:00
Philip Abbey
6db7b67536 Update HISTORY.md
Added v2.31 text
2025-07-11 09:43:30 +01:00
Philip Abbey
e5df010af8 253 compilation failed on fenix5s (#254)
This is the fix to an annoying problem I faced as I was about to compile
the final v2.31 release. Please approve, but **don't merge** just yet.
I'll do that once the full device list compilation succeeds, just to
check if there are any residual issues.

Thanks
2025-07-11 09:31:37 +01:00
Philip Abbey
ee964ce882 Update HomeAssistantMenuItemFactory.mc
Function documentation fix.
2025-07-11 01:11:00 +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
906cdf7371 Code documentation comments were not updated 2025-07-10 23:54:05 +01:00
__JosephAbbey
7dd85937fa 243 option to close application after command (#252)
Also closes #250.
2025-07-10 22:02:12 +01:00
Philip Abbey
d141c03104 Review comment
Moved point of application exit for the menu item option.
2025-07-10 19:46:04 +01:00
Philip Abbey
842a31a1cc Review comment
enable => enabled
2025-07-10 18:24:30 +01:00
Philip Abbey
5639ff5c42 Amended heading levels in docs 2025-07-09 21:51:18 +01:00
Philip Abbey
8b3e86a00f Amended documentation for two new menu item options
The options are 'enable' and 'exit'.
2025-07-09 21:48:58 +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
b28daacafd Update config.schema.json
Removed exit from non-actionable menu items.
2025-07-09 20:54:28 +01:00
Philip Abbey
029a9f373e Update config.schema.json
Added to boolean options for disable and exit.
2025-07-09 19:57:11 +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
659a060c76 Forgotten image used on App home page 2025-07-08 22:45:39 +01:00
__JosephAbbey
3acef26fea 247 improve the glance view (#249)
2s seems to be a good compromise between the status flickering and the
update delay. When the menu is cached there's no flickering.
2025-07-07 13:49:53 +01:00
__JosephAbbey
e898fc1fe5 Update config.schema.json
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-07-07 13:49:33 +01:00
Philip Abbey
4df1fd69bc Update Globals.mc
Increased the API back off time from 1s to 2s to remove the glance's status flickering. The assumption is that the GET requests are too fast for the Bluetooth stack.
2025-07-06 21:31:33 +01:00
Philip Abbey
fc19599586 Update export.cmd
Removed a commented out command line option no longer used and unlikely to be replaced.
2025-07-06 21:29:19 +01:00
Philip Abbey
13f70af45a Update Glance.md
Explained to turn on menu caching.
2025-07-06 21:28:40 +01:00
Philip Abbey
90ed1f4bea Update HomeAssistantGlanceView.mc
Improved layout.
2025-07-06 19:02:59 +01:00
Philip Abbey
2117b27210 Update HISTORY.md
Added two images.
2025-07-06 19:01:27 +01:00
Philip Abbey
df7874e825 Update HISTORY.md
Added link to Glance view for 2.30 text.
2025-07-06 17:32:12 +01:00
Philip Abbey
f3c5947b82 Merge branch 'main' into 247-improve-the-glance-view 2025-07-06 14:49:49 +01:00
Philip Abbey
47a930828a Revised glance view
Refreshed default view and new customisable view.
2025-07-06 14:44:53 +01:00
Philip Abbey
ef299bcaf6 Render correct icon in web editor for info types (#248) 2025-07-06 13:53:24 +01:00
__JosephAbbey
f0eb9c26b1 Render correct icon in web editor for info types 2025-07-06 13:07:04 +01:00
__JosephAbbey
f1c592179d Added correctly formatted code comments (#246)
The newer SDK support tooltips to show the function prototype and help
text, so best to make good use of it.

I'm not expecting this to be 100% on the first iteration.
2025-07-05 13:58:35 +01:00
__JosephAbbey
4ed81df60a Fix spelling of Bluetooth
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-07-05 13:57:35 +01:00
__JosephAbbey
b4f5f34760 Fix spelling of Webhook
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-07-05 13:57:02 +01:00
Philip Abbey
4cf5a0ae26 Update HomeAssistantApp.mc
Fix the 'fixed' comment string.
2025-07-04 17:26:33 +01:00
Philip Abbey
b44d4c6155 Update HomeAssistantApp.mc
Amended 4 comments
2025-07-04 17:20:48 +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
6b2aa3135a Added support for 3 new devices (#237) 2025-05-27 06:37:19 +01:00
Philip Abbey
907848b5fb Added support for 3 new devices 2025-05-24 15:53:19 +01:00
__JosephAbbey
5f34f870d9 Support for Vivoactive 6 device (#230)
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-25 07:59:58 +01:00
Philip Abbey
ada18f8323 Update export.cmd
'--api-level' command line switch removed from SDK 8.1.0
2025-04-24 22:38:10 +01:00
Philip Abbey
f74a3168de Update manifest.xml
The App ID should not have been changed from the test app.
2025-04-24 22:30:43 +01:00
Philip Abbey
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
Philip Abbey
1f7090092f 227 enhancement glance info cachingprevious results instead of unconfigured (#228)
Not as the issue requested, but instead pulling the settings from
persistent storage before checking the URL status, preventing
"Unconfigured" being initially displayed when it should be "Checking..."
as coded.
2025-04-21 15:31:30 +01:00
Philip Abbey
4ed132b9ca Update HISTORY.md
Added ver 2.27 text.
2025-04-21 13:59:13 +01:00
Philip Abbey
fd213cc210 Update HomeAssistantApp.mc
Update the Settings object from persistent storage before checking the URLs work and reporting the status to the Glance view.
2025-04-21 13:56:08 +01:00
Philip Abbey
7423e609d8 Update TroubleShooting.md
SSL Certificate Validation Issues

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-04-21 09:26:33 +01:00
Philip Abbey
9df43cdb01 Explaining HTTPS Certificate Problems
Partial and Full chain certificates.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2025-04-21 09:15:55 +01:00
__JosephAbbey
5ee8a6cc6a Update index.html
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-03-30 15:25:54 +01:00
__JosephAbbey
5e35276628 Update main.js
Signed-off-by: __JosephAbbey <me@josephabbey.dev>
2025-03-30 15:22:49 +01:00
Philip Abbey
28f4ffc70b 223 code refactoring (#224)
Code refactoring and amended fix for responsive menu that was removed by
bug fix in v2.25.
2025-03-28 19:37:15 +00:00
Philip Abbey
e8f2c0d3bb Amended menu item class inheritance 2025-03-28 00:22:09 +00: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
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
c13e898e59 Update HISTORY.md
v2.25
2025-03-27 07:35:44 +00:00
Philip Abbey
a77870c2eb Fix for 2 bugs in issue 221 (#222)
Template rendering and Webhook ID on initial start.

Please review and (hopefully) approve, but don't merge as I need to
deploy to the beta app.
2025-03-27 06:32:27 +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
__JosephAbbey
1ae4085113 219 new garmin device keeps replacing previous device (#220) 2025-03-23 16:59:52 +00:00
Philip Abbey
7a14a65ba3 Update HISTORY.md
2.24 text
2025-03-23 16:54:52 +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
184e2ac80e Add 4 new devices
approachs50, descentg2, descentmk1, and gpsmap66
2025-03-23 15:59:29 +00:00
__JosephAbbey
12c5766818 208 provide display only menu items with no actions (#210)
Please take some care with checking any documentation where `template`
has been amended to either `info` to `tap`. Some of the documentation
was out of date, hopefully this fixes it.
2025-01-19 20:37:11 +00:00
Philip Abbey
b82e63d191 Documentation update 2025-01-19 19:47:42 +00:00
Philip Abbey
ed4646511f Added 5 new Instinct devices
Small (imperfect) fix for 2 colour device icons.
2025-01-19 18:47:38 +00:00
Philip Abbey
fd58625640 Info only menu item 2025-01-19 13:44:53 +00:00
Philip Abbey
816f2e6399 Update Actions.md
Documentation for the `service` field after a recently uncovered issue with its value. See https://github.com/house-of-abbey/GarminHomeAssistant/issues/205.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-12-31 18:02:03 +00:00
Philip Abbey
f171f913ac Update README.md (#202)
Documented a workaround to communicate with Home Assistant using HTTP.
2024-12-08 21:57:51 +00:00
Tomer
cca73a4069 Update README.md
Documented a workaround to communicate with Home Assistant using HTTP.

Signed-off-by: Tomer <55205856+TomerMir@users.noreply.github.com>
2024-12-03 18:47:06 +02:00
Philip Abbey
2a3514de64 Update HISTORY.md
Version number typo.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-11-20 17:59:11 +00:00
__JosephAbbey
fbcf2d4c8d Changes as per issue. (#200)
Trivial one this.
2024-11-20 17:23:43 +00:00
Philip Abbey
b6719365b2 Changes as per issue. 2024-11-19 21:56:32 +00:00
__JosephAbbey
ad73971758 197 cosmetic changes (#198)
Just a bit of tidying, no major functionality changes.
2024-11-19 11:29:18 +00:00
philipabbey
2a7528ea86 Apply automatic changes 2024-11-18 19:57:22 +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
Philip Abbey
fb68ce2fba Feature: PIN confirmation dialog (#192)
## About this PR:
Being one of those incorrigible fools who want to open and unlock stuff
using my watch, I thought of a way to improve security when calling a
HomeAssistant service from the Garmin App.

This change adds a PIN confirmation dialog that is displayed whenever a
`pin` property has been set in the `tap_action`. Because of the size of
the screen, PINs consist of a sequence of abritrary length using the
digits 1-4.

![2024-10-16 11_16_09-CIQ Simulator - Venu® Sq 2 Music (5 0
0)](https://github.com/user-attachments/assets/f6e09c00-5dde-4972-b7dc-256d4d94e99e)

Due to public visibility of the dashboard config, a pin mask can be
configured in the app's settings to transcode the PIN on the watch for
additional security. Using a cipher for PIN encryption has been
discarded due to the complexity involved in generating the encrypted
PINs for the end user.

The PIN dialog is configured to allow up to 4 erraneous PIN inputs in 2
minutes, a 5th failure will lock the PIN dialog (for all actions) for 10
minutes. Entering a correct PIN will reset the failure count.

## Changes included in this PR:
- PIN confirmation screen
- called whenever a `pin` has been configured in a `tap_action`. This
overrides the `confirm` property. Users without a touchscreen will be
routed to the regular confirmation dialog.
- optional `pin_mask` configuration setting, which will be used to
transcode the digits of the PIN (see documentation change)
	- german translation of the `pin_mask` label
	- failed attemps and PIN lock are stored in application storage
- Addition of `pin` field to the JSON Schema
- Additions to the docs

Tested on a few devices in the simulator, tested and running as a beta
on a Venu 2 Sq Music.

## Disclaimer:
This is my first attempt at a Monkey C project.
I probably learned more from looking at the existing app than from the
sdk samples. Awesome work!

I added this mainly because I wanted a feature like that for myself,
thought it is a good thing to add and because I was interested in
developing for Garmin devices.
I would be glad if you like the idea and are open to review it and
include it in the app.

I have tried to use coding style and conventions from the existing
project as far as I could see them.
2024-11-18 19:00:05 +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
666854c5c6 fix translation 2024-11-17 10:51:56 +01:00
Matthias Oesterheld
e0418a0ae6 improve docs 2024-11-17 10:49:58 +01:00
Matthias Oesterheld
f51197ff75 adjust docs 2024-11-14 21:32:38 +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
51d4f68688 preliminary doc changes 2024-11-12 19:35:15 +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
f24d79e41a Merge branch 'main' into feature/pin-confirmation 2024-11-11 20:58:52 +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
Philip Abbey
2000a30276 Update README.md
Garmin Express known issue.
2024-11-07 20:01:56 +00:00
Matthias Oesterheld
cd5ed317c5 move pin mask translation to corrections 2024-10-16 16:45:55 +02: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
04c61981ea Update Switches.md
Action from "Allow confirming switch toggle" https://github.com/house-of-abbey/GarminHomeAssistant/issues/190, make documentation clearer.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-10-06 15:35:35 +01:00
Joseph Abbey
8caef29aba 2 fixes as required by issue 185 (#186)
Solution to a race condition with starting updates and amendment to
error message presentation on Webhook ID creation failure.
2024-09-10 15:16:54 +01: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
060cd2729f Update README.md
Additional information on toasts with Forerunner 55 device.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-09-07 11:06:11 +01:00
Philip Abbey
73a38e9b4e Update HISTORY.md
v2.21 amendment.
2024-09-06 17:32:50 +01:00
Joseph Abbey
b22f119eb3 182 add support for the latest devices released from garmin (#183)
7 new devices. 2 users waiting for this update for Fenix 8.
2024-09-06 17:30:24 +01:00
Philip Abbey
cd8f5d900e Restyle 182 add support for the latest devices released from garmin (#184)
Automated style fixes for #183, created by [Restyled][].

The following restylers [made
fixes](https://restyled.io/gh/house-of-abbey/repos/GarminHomeAssistant/jobs/4778343):

-
[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-09-05 22:59:01 +01:00
Restyled.io
ecb2e8bc96 Restyled by whitespace 2024-09-05 21:57:35 +00:00
Philip Abbey
881700d0ed Update HISTORY.md
v2.21 text
2024-09-05 21:28:33 +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
2e7216b6b2 v2.20 documentation update 2024-08-30 21:18:56 +01:00
Joseph Abbey
57a44d8946 Update WebhookManager.mc (#179)
Speculative fix to handle the callback data from webhook generation
perhaps not being Lang.Dict.
2024-08-30 19:48:47 +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
Philip Abbey
15e2b19193 Deprecate template type (#177) 2024-08-30 14:32:22 +01:00
Joseph Abbey
1b40231360 Fix errors 2024-08-30 13:49:09 +01:00
Joseph Abbey
446c579660 Merge branch 'main' into 176-deprecate-template-items 2024-08-30 13:26:31 +01:00
Philip Abbey
da2e94caa3 Update TroubleShooting.md
Added instructions for how to send the debug log from the watch.
2024-08-30 13:25:41 +01:00
Joseph Abbey
1c182dd615 Deprecate template type 2024-08-30 13:25:16 +01:00
Philip Abbey
fb5c2193f1 Create debug_log_location.png
Need a picture to explain to users where to fetch the debug logs from. Only gives the error message, but not the location unfortunately.
2024-08-30 13:18:09 +01:00
Philip Abbey
df3be94bf9 Documentation for v2.19 2024-08-29 23:12:13 +01:00
Joseph Abbey
17162c14f2 174 tidy up two small issues (#175)
Heading & vibrate
2024-08-29 21:18:03 +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
63bc127aec Perform all updates in one request (#173) 2024-08-29 20:55:40 +01:00
Joseph Abbey
af43fde963 Merge branch 'main' into one-update-request 2024-08-29 19:03:12 +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
b476da6667 Revert compile_sim.cmd
Signed-off-by: Joseph Abbey <me@josephabbey.dev>
2024-08-28 08:45:07 +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
0feecde178 165 templating content for all types (#170)
Submitting as an initial draft in order to guage feedback on the style.
In particular the solution to adding the code to the `toggle` menu item,
which has incurred duplication of code as I can't inherit from two
classes.
2024-08-26 19:42:51 +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
Restyled.io
4707f1ea9e Restyled by prettier-json 2024-08-25 18:42:33 +00:00
Restyled.io
3424576027 Restyled by jq 2024-08-25 18:42:32 +00:00
Philip Abbey
1846d682f7 Update HISTORY.md
v2.18 text line amended.
2024-08-25 19:39:27 +01: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
08829dac1f Update export.cmd
Trivial update to give the cmd.exe a title.
2024-08-25 16:50:08 +01:00
Philip Abbey
ca6e0733c5 Added null checking to activity stats (#169)
Position.getInfo().* might return null sometimes, so best check and
avoid a numerical error.

@KPWhiver My co-author is away presently, would you mind giving this
simple change the once over? Thanks!
2024-08-25 16:15:01 +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
f2fb7f65a0 Merge branch 'main' of https://github.com/house-of-abbey/GarminHomeAssistant 2024-08-24 14:30:44 +01:00
Philip Abbey
1e103069bc Update README.md
Feature differences between Application and Widget.
2024-08-24 14:30:23 +01:00
Philip Abbey
520309729d Bug fix for activity reporting (#167)
Added 'has' clauses around additional ActivityMonitor.Info fields that
are not present on all devices. I have also checked the other reporting
fields to ensure they are not device dependent.
2024-08-24 14:26:54 +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
769731bff2 Send heartrate, floor, and respiration rate values to Home Assistant (#162)
This change sends the heartrate, respiration rate, stepcount, and floors
climbed/descended to Home Assistant as mobile app entities. There are a
lot more sensors that could potentially be added.

I have only tested this on a Vivoactive 4s as that is the only device I
own.

Let me know what you think and if there are any changes you would like
to see.
2024-08-20 09:01:00 +01:00
Philip Abbey
2c56155593 Merge branch 'main' into more-mobile-app-sensors
Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-08-19 12:36:33 +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
Joseph Abbey
94d806c4d3 163 application crashes when started out of bluetooth range (#164)
Test the phone is connected before attempting WebHook HTTP requests.
2024-08-18 14:15:52 +01:00
Philip Abbey
51081ee2e6 Update HISTORY.md
Added v2.16
2024-08-18 13:03:30 +01:00
Philip Abbey
7c7130367f Update Settings.mc
Rearranged 'else' clauses.
2024-08-18 12:26:45 +01:00
Philip Abbey
42d1a7233c Update Settings.mc
Test the phone is connected before attempting WebHook HTTP requests.
2024-08-18 12:04:34 +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
Joseph Abbey
19642c6679 Update HomeAssistantTemplateMenuItem.mc (#158)
Template errors now displayed per item.
2024-07-26 18:37:27 +00: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
Philip Abbey
9eed5affdc Update HomeAssistantApp.mc
Guard against dereferencing null. Belt & braces, as this has not been an issue.
2024-07-26 17:16:07 +01:00
Philip Abbey
98c9c42366 Update HomeAssistantApp.mc
Fixed debug printing where the method name was wrong. Changes in commented out debug code only.
2024-07-26 16:55:13 +01:00
philipabbey
97030dc1b8 Apply automatic changes 2024-07-26 08:16:05 +00:00
Philip Abbey
6a2a791146 Update strings.xml
Removed glance scope
2024-07-26 08:56:52 +01:00
Philip Abbey
1eb2fbed0e Added internationalisation of new strings 2024-07-26 08:50:10 +01:00
Philip Abbey
a86133fd87 Update HISTORY.md
v2.15 added
2024-07-25 23:36:11 +01:00
Philip Abbey
0ae39a029f Update HomeAssistantTemplateMenuItem.mc
Template errors now displayed per item.
2024-07-25 20:38:17 +01:00
Philip Abbey
3cebd106eb Update HISTORY.md
v2.14
2024-07-25 08:51:53 +01:00
Joseph Abbey
9471259181 Update BackgroundServiceDelegate.mc (#156)
Put check for methods with 'has' back in.
2024-07-24 09:19:15 +00:00
Philip Abbey
9030a00d7d Update BackgroundServiceDelegate.mc
Put check for methods with 'has' back in.
2024-07-22 22:18:27 +01:00
Joseph Abbey
7bd5e98a1a More responsive status when using a polling delay (#153)
When using a polling delay, an action will trigger an immediate round of
updates.
2024-07-21 16:00:21 +00:00
Philip Abbey
a49dd6554f More responsive status when using a polling delay
When using a polling delay, an action will trigger an immediate round of updates.
2024-07-20 19:16:42 +01:00
Joseph Abbey
d2fc64836a Update HomeAssistantApp.mc (#152)
When Settings.getPollDelay() > 0, do not wait for this time before the
initial batch of updates, so the app is more responsive on opening.
2024-07-20 17:09:23 +00:00
Philip Abbey
fc1a0eeb6d Update HomeAssistantApp.mc
When Settings.getPollDelay() > 0, do not wait for this time before the initial batch of updates, so the app is more responsive on opening.
2024-07-20 18:07:37 +01:00
Philip Abbey
61f6d69e64 Update HISTORY.md
Added a second feature to 2.13 in anticipation.
2024-07-20 17:39:59 +01:00
Joseph Abbey
7f31cecfb5 Added update to telemetry on completion of an activity (#151)
@Someone0nEarth Note we could also add this to the widget version as the
changes are small and probably have a limited effect on the memory
footprint.
2024-07-20 16:37:29 +00:00
Philip Abbey
98af5578f0 Added update to telemetry on completion of an activity 2024-07-20 17:28:57 +01:00
Philip Abbey
c18736e40d Update Templates.md
Examples now up to date with schema changes.
2024-07-20 17:23:00 +01:00
Joseph Abbey
822c6ccca6 Moved template status updates to webhooks (#150)
This seems to work for non-privileged users.
2024-07-20 15:49:04 +00:00
Philip Abbey
a139742265 Update HISTORY.md
Ver 2.13 text added in anticipation.
2024-07-19 17:05:19 +01:00
Philip Abbey
dfa4cdd9b8 Moved template status updates to webhooks
This seems to work for non-privileged users.
2024-07-19 15:15:32 +01:00
Philip Abbey
1c4add693d Update README.md
Amended advice based on a report at https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/280.

Signed-off-by: Philip Abbey <philipabbey@users.noreply.github.com>
2024-07-01 08:40:04 +01:00
Joseph Abbey
e6544b5b20 Update monkey.jungle top up 145 (#147)
Missed the Jungle file.
2024-06-15 11:32:35 +01:00
Philip Abbey
83914e8d8d Update monkey.jungle
Missed the Jungle file.
2024-06-15 11:13:10 +01:00
Joseph Abbey
bd4b6d68a8 Devices Edge 540 and Edge 840 re-enabled (#146)
@Petucky reports the application works well on an Edge 840 by
sideloading the code from an Edge 830 device.
2024-06-15 11:12:46 +01:00
Philip Abbey
f4ca55d741 Devices Edge 540 and Edge 840 re-enabled
@Petucky reports the application works well on an Edge 840 by sideloading the code from an Edge 830 device.
2024-06-15 11:00:58 +01:00
Philip Abbey
5d34db7b6a Update README.md
Typo
2024-05-04 14:29:54 +01:00
Philip Abbey
cfaa31d5ee Update README.md
Typo
2024-05-04 14:28:33 +01:00
Philip Abbey
52ee270788 Update README.md
Note about HTTP
2024-05-04 10:06:59 +01:00
Philip Abbey
dec38889a5 Update HISTORY.md
Added version 2.11
2024-04-17 14:06:34 +01:00
Philip Abbey
586d85e706 Update export.cmd
Commit directly to main as not application code.
2024-04-17 08:26:52 +01:00
Philip Abbey
30b55aec3e Merge branch 'main' of https://github.com/house-of-abbey/GarminHomeAssistant 2024-04-17 08:24:52 +01:00
philipabbey
93d672dd40 Apply automatic changes 2024-04-17 07:09:18 +00:00
Philip Abbey
9130bc7121 Merge pull request #139 from house-of-abbey/138-cached-menu-will-still-be-used-even-if-the-setting-is-deactivated
When the cache is deactivated is now also cleared.
2024-04-17 07:56:49 +01:00
Philip Abbey
a6e386c5e6 Removed scope="glance" from another language corrections.xml file 2024-04-17 07:52:28 +01:00
Philip Abbey
2ffd83ebf5 When the cache is deactivated is now also cleared. 2024-04-16 22:58:53 +01:00
philipabbey
48b7e7efe5 Apply automatic changes 2024-04-16 06:35:49 +00:00
Philip Abbey
7bb270aae8 Update corrections.xml
Changed `<string id="Menu">Menu</string>` to `<string id="GlanceMenu">Menu</string>`.

A trivial fix so bypassing reviews.
2024-04-16 07:01:38 +01:00
Philip Abbey
ac117952d0 Merge pull request #136 from house-of-abbey/135-string-change-request-czech-translation-inappropriate
Corrected Czech language strings as advised
2024-04-16 06:31:26 +01:00
Philip Abbey
8f685af8ca Missed two System.println() string corrections. 2024-04-15 21:12:08 +01:00
Philip Abbey
b17d12fe54 Corrected Czech language strings as advised
Also amended some trivial System.println() strings
2024-04-15 19:29:32 +01:00
Philip Abbey
d5c39fa7f0 Documentation: Screenshot for Unicode Characters 2024-03-31 16:45:31 +01:00
philipabbey
b4b113f4e1 Apply automatic changes 2024-03-30 20:26:40 +00:00
Philip Abbey
517e36cfb0 Update Templates.md
Amended wording.
2024-03-30 14:19:23 +00:00
Philip Abbey
7071362656 Update Templates.md
Examples with unicode characters.
2024-03-30 13:36:23 +00:00
Philip Abbey
e37b2a76aa Merge pull request #129 from jose1711/sk_translation
Corrected a few strings in Slovak.
2024-03-30 12:18:44 +00:00
Jose Riha
e3f8291299 Corrected a few strings in Slovak. 2024-03-27 10:01:00 +01:00
Philip Abbey
2f4c14d7d5 Merge pull request #126 from jose1711/typo
Fix typo
2024-03-22 20:04:03 +00:00
Jose Riha
5b9dd6d2eb Fix typo 2024-03-21 23:02:38 +01:00
Philip Abbey
6599c22664 Merge pull request #123 from house-of-abbey/103-possiblity-to-add-polling-interval-for-states-to-save-battery
103 possiblity to add polling interval for states to save battery
2024-03-21 19:34:55 +00:00
Philip Abbey
c66950cfb0 Update HISTORY.md 2024-03-21 19:32:59 +00:00
Philip Abbey
2a99069f48 Review comments 2024-03-21 19:29:52 +00:00
Philip Abbey
bb9c8b1088 Merge pull request #125 from house-of-abbey/124-add-4-more-devices
Added 4 new devices
2024-03-21 17:43:50 +00:00
Philip Abbey
34e56c5da0 Added 4 new devices
Devices are: descentmk343mm, descentmk351mm, fr165, fr165m.
2024-03-21 17:39:58 +00:00
Philip Abbey
0a93f4f9ba Additional documentation changes
Including settings screenshot.
2024-03-21 13:53:01 +00:00
philipabbey
eb0d0f5044 Apply automatic changes 2024-03-21 09:30:42 +00:00
Philip Abbey
a0fe746c1d Amended update method to entire rounds
A single larger delay is now inserted once between entire rounds of status updates,
2024-03-21 09:15:47 +00:00
philipabbey
00b071c132 Apply automatic changes 2024-03-20 23:46:54 +00:00
Philip Abbey
cacd9f856f Initial solution 2024-03-20 23:33:13 +00:00
Philip Abbey
eebf5c9dcd Update Templates.md
Removed a reference to a problem mostly associated with Widgets.
2024-03-18 21:20:56 +00:00
Philip Abbey
da645f17ad Update README.md
Removed an old reference to a known issue with Widgets.
2024-03-18 08:10:49 +00:00
Philip Abbey
dbd0a42d2e Merge pull request #120 from house-of-abbey/118-allow-turning-off-vibration
118 allow turning off vibration
2024-03-08 16:20:36 +00:00
Philip Abbey
aeeb1aa96e Documentation update 2024-03-08 09:18:48 +00:00
philipabbey
be66c282df Apply automatic changes 2024-03-07 22:31:32 +00:00
Philip Abbey
4dc31e3c65 Removed a widget only property
That should have been removed previously.
2024-03-07 22:14:25 +00:00
Philip Abbey
92d3fbee57 Initial fixes 2024-03-07 21:59:33 +00:00
Philip Abbey
181335bfd7 Update README.md
Added a new [!IMPORTANT] tag
2024-03-06 18:34:40 +00:00
Philip Abbey
b684c1172a Merge pull request #116 from house-of-abbey/113-splitting-widget-and-app-code
113 splitting widget and app code
2024-02-20 20:59:52 +00:00
Philip Abbey
0ee20de6c5 Update HISTORY.md 2024-02-18 15:04:32 +00:00
Philip Abbey
d5ed16e6d2 Amended export.cmd
And removed an old comment from HomeAssistantApp.mc
2024-02-18 15:00:36 +00:00
Philip Abbey
8e2a4333ca Reverted manifest to test app ID
Removed comments used for running the widget in simulation.
2024-02-11 19:37:43 +00:00
Philip Abbey
a65dcd6811 Removed widget specific code 2024-02-11 19:35:34 +00:00
Philip Abbey
7b6fc65bf2 Update TroubleShooting.md
Spelling.
2024-02-11 19:30:12 +00:00
Philip Abbey
b65d45c955 Update README.md
Added known issue with iPhone's Connect IQ App
2024-02-11 18:31:49 +00:00
Joseph Abbey
85b01eca91 Update issue templates 2024-02-08 21:05:53 +00:00
Joseph Abbey
3ffaa744e0 Update issue templates 2024-02-08 21:02:32 +00:00
Joseph Abbey
d488897fbd Update issue templates 2024-02-08 20:24:45 +00:00
Joseph Abbey
457dcca002 Fix spacing inconsistencies 2024-02-06 21:47:33 +00:00
Joseph Abbey
3a96f24f1d Merge pull request #110 from mymyke/patch-1
Fixed off-by-one error in Templates.md
2024-02-06 21:43:04 +00:00
Joseph Abbey
5971e7f852 Merge pull request #109 from house-of-abbey/108-bug-fixes-to-26
3 bug fixes as per the issue description
2024-02-06 21:17:10 +00:00
mymyke
f486a2c868 Update Templates.md
Round function added the brightness display part of content to correct off-by-one errors.
For example, setting brightnes to 30% would previously show 29% and now shows 30%
2024-02-05 22:44:27 +01:00
Philip Abbey
0dfcc65469 3 bug fixes as per the issue description 2024-02-05 19:09:26 +00:00
Philip Abbey
4d4a86f195 Update README.md
Added knwoon issue with Edge 540 and 840 devices.
2024-02-01 21:32:46 +00:00
Philip Abbey
9e1c5959ab Merge pull request #107 from house-of-abbey/100-help-text-for-web-based-configuration-editor
Documentation for web editor
2024-01-31 13:36:34 +00:00
Joseph Abbey
41bc27262d Add link to dashboard definition docs 2024-01-31 10:19:56 +00:00
Joseph Abbey
4119997ddd Documentation for web editor 2024-01-31 10:12:49 +00:00
philipabbey
6e842af372 Apply automatic changes 2024-01-30 20:19:10 +00:00
Joseph Abbey
9c5aad889d Merge pull request #96 from house-of-abbey/94-add-gps-reporting-to-the-background-service
GPS and current activity reporting
2024-01-30 18:09:26 +00:00
Philip Abbey
2ad0480bbf Merge branch 'main' into 94-add-gps-reporting-to-the-background-service 2024-01-29 20:41:55 +00:00
Philip Abbey
1d5ee735e8 Update corrections.xml 2024-01-29 20:41:09 +00:00
Philip Abbey
d694880969 Merge branch 'main' into 94-add-gps-reporting-to-the-background-service 2024-01-29 20:39:00 +00:00
Philip Abbey
763c9cc5e0 Merge branch 'main' into 94-add-gps-reporting-to-the-background-service 2024-01-29 20:37:56 +00:00
Philip Abbey
e332c7c466 Merge pull request #105 from tarekbecker/fix-german
Corrections for german
2024-01-29 20:37:36 +00:00
Tarek Becker
d0109fe0af Corrections for german 2024-01-29 21:27:20 +01:00
Restyled.io
28a03282a5 Restyled by whitespace 2024-01-29 21:24:44 +01:00
Tarek Becker
c148ef7080 Corrections for german 2024-01-29 21:22:17 +01:00
Philip Abbey
69ddb0f197 Amended "no activity" condition
Back to using elapsed time.
2024-01-29 19:06:58 +00:00
Philip Abbey
55423c4eb7 Using System.getDeviceSettings().activityTrackingOn
Instead of activity elapsed time. Also forgot to update the WebhookManager class code.
2024-01-28 19:52:20 +00:00
Philip Abbey
66193f080a Background service documentation 2024-01-28 18:55:33 +00:00
Philip Abbey
b31aff652f Update BackgroundServiceDelegate.mc
Amended detection of no activity reporting.
2024-01-28 18:54:47 +00:00
Philip Abbey
5e9673ba0e Merge branch '94-add-gps-reporting-to-the-background-service' of ssh://github.com/house-of-abbey/GarminHomeAssistant into 94-add-gps-reporting-to-the-background-service 2024-01-28 14:00:51 +00:00
Philip Abbey
da4f4401fe Update Templates.md
Jinja2 explained
2024-01-28 14:00:21 +00:00
Joseph Abbey
f531ad8004 Merge branch '94-add-gps-reporting-to-the-background-service' of https://github.com/house-of-abbey/GarminHomeAssistant into 94-add-gps-reporting-to-the-background-service 2024-01-28 13:59:17 +00:00
Joseph Abbey
930f1525b3 Best practices! 2024-01-28 13:59:07 +00:00
Philip Abbey
5de67382bc Update README.md
More explanation on the polling chain for status updates.
2024-01-28 13:37:54 +00:00
Philip Abbey
a45785cd88 Update Templates.md
Added template example with float number formatting.
2024-01-28 13:16:57 +00:00
Joseph Abbey
6fc639f17f Report -1 instead of null for no activity 2024-01-28 13:05:34 +00:00
Joseph Abbey
997e1c87e2 Merge pull request #101 from house-of-abbey/98-copy-button-and-fix-auto-complete-in-template 2024-01-28 12:37:27 +00:00
Joseph Abbey
2542d9e9a5 Fix scroll bars 2024-01-28 12:17:40 +00:00
Joseph Abbey
c2883f883e Merge pull request #99 from house-of-abbey/98-copy-button-and-fix-auto-complete-in-template 2024-01-28 12:03:37 +00:00
Joseph Abbey
d991f7f180 Fix autocomplete and copy button 2024-01-28 12:02:24 +00:00
Philip Abbey
9f759b1dad Documentation
Amended "BatteryReporting" to "BackgroundService". Augmented TroubleShooting.md to remind people how to verify their JSON schema. Amended wording of some of the settings.
2024-01-27 16:29:08 +00:00
Philip Abbey
bbb4d13eb2 Merge pull request #97 from house-of-abbey/restyled/94-add-gps-reporting-to-the-background-service
Restyle GPS and current activity reporting
2024-01-27 16:09:28 +00:00
Restyled.io
cf6552410e Restyled by whitespace 2024-01-27 15:39:45 +00:00
Joseph Abbey
6b3a17bea3 Add GPS accuracy to update_location webhook and changed activity reporting 2024-01-27 15:39:22 +00:00
Philip Abbey
8f372c03e3 Merge branch 'main' into 94-add-gps-reporting-to-the-background-service 2024-01-27 15:06:06 +00:00
Philip Abbey
f5f88ced4e Added web-based editor to documentation 2024-01-27 14:59:48 +00:00
Joseph Abbey
96abff9339 Fix spacing of arrows 2024-01-27 14:02:05 +00:00
Philip Abbey
4ff1509046 API level fix
Added 'has' test for Activity.getProfileInfo(). Reverted automatic changes to XML prettiness.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-27 13:57:21 +00:00
Joseph Abbey
1ec80a1704 Update restyled.yml 2024-01-27 13:39:44 +00:00
Joseph Abbey
e3288c9353 GPS and current activity in background service 2024-01-27 13:11:24 +00:00
Joseph Abbey
2ba102f8dd Merge pull request #92 from house-of-abbey/91-enhanced-web-editor 2024-01-25 19:56:40 +00:00
Joseph Abbey
3e0789e808 Update config.schema.json 2024-01-25 19:34:51 +00:00
Joseph Abbey
bd56c6b4e6 Titles for buttons 2024-01-25 15:19:39 +00:00
Joseph Abbey
6063ae8ba3 Titles for form elements 2024-01-25 14:56:28 +00:00
Joseph Abbey
f00bbdcb13 Merge pull request #93 from house-of-abbey/restyled/91-enhanced-web-editor 2024-01-25 14:30:59 +00:00
Restyled.io
2b98ed885e Restyled by whitespace 2024-01-25 14:28:38 +00:00
Restyled.io
4a8185a937 Restyled by prettier-json 2024-01-25 14:28:38 +00:00
Restyled.io
bb55ed4c69 Restyled by prettier 2024-01-25 14:28:36 +00:00
Restyled.io
4ddf8339b8 Restyled by jq 2024-01-25 14:28:34 +00:00
Restyled.io
7b227499c8 Restyled by clang-format 2024-01-25 14:28:32 +00:00
Joseph Abbey
0849524ea9 formatting 2024-01-25 14:28:03 +00:00
Joseph Abbey
b54b1d8cae Add autocomplete for entity names in templates 2024-01-25 13:40:02 +00:00
Joseph Abbey
17b1e38145 Merge branch 'main' into 91-enhanced-web-editor 2024-01-25 10:43:44 +00:00
Joseph Abbey
2afd0295b4 Error handling 2024-01-25 10:40:27 +00:00
Joseph Abbey
83f8b7bf26 Create _config.yml 2024-01-23 21:54:51 +00:00
Joseph Abbey
c4066e9fe3 Enhanced web editor 2024-01-23 21:19:07 +00:00
Philip Abbey
c062a6fcff Update HISTORY.md
Added V2.5 description.
2024-01-23 19:29:29 +00:00
Philip Abbey
7ab8246197 Merge pull request #88 from house-of-abbey/87-look-for-memory-usage-efficiencies
87 look for memory usage efficiencies
2024-01-23 07:13:22 +00:00
Philip Abbey
776134e842 Merge pull request #89 from house-of-abbey/restyled/87-look-for-memory-usage-efficiencies
Restyle 87 look for memory usage efficiencies
2024-01-22 22:25:46 +00:00
Restyled.io
a95736ebed Restyled by whitespace 2024-01-22 22:20:26 +00:00
Philip Abbey
9c001f3402 Cosmetic 2024-01-22 10:28:35 +00:00
Philip Abbey
7786efd883 Update HomeAssistantApp.mc
Removed memory metrics
2024-01-21 20:46:55 +00:00
Philip Abbey
0b80e4546d Corrected a previous incomplete commit
All now "WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String"
2024-01-21 20:43:11 +00:00
Philip Abbey
6e67c4cf2a Removed RezStrings.mc
And in-lined the resource strings fetching.
2024-01-21 20:38:01 +00:00
Philip Abbey
b80227e484 Update Settings.mc
Cosmetic
2024-01-21 20:11:47 +00:00
Philip Abbey
d9b345e5b8 Update Settings.mc
Cosmetic
2024-01-21 20:04:12 +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
Joseph Abbey
62b8f0fccf Add max size to menus 2024-01-21 13:06:44 +00:00
Philip Abbey
26954cbc60 Update RootView.mc
Memory usage decimal place was never used due to integer arithmetic. A single character changes fixed that.
2024-01-21 13:00:31 +00:00
Philip Abbey
a5b2af81bc Merge pull request #81 from house-of-abbey/80-examples
Added examples for templates and custom switches
2024-01-20 15:07:32 +00:00
Joseph Abbey
10c64c0fdc Merge pull request #86 from house-of-abbey/restyled/80-examples 2024-01-20 15:06:25 +00:00
Restyled.io
ed3dce8827 Restyled by prettier-json 2024-01-20 15:05:50 +00:00
Restyled.io
35a65ebdf4 Restyled by jq 2024-01-20 15:05:49 +00:00
Philip Abbey
b46c4d2eb4 Read through all documentation 2024-01-20 15:05:33 +00:00
Joseph Abbey
2b21c840c6 Rename Troubleshooting.md to TroubleShooting.md 2024-01-20 13:41:04 +00:00
Joseph Abbey
1448f6b0c2 Update config.schema.json 2024-01-20 12:10:17 +00:00
Philip Abbey
ce2f4d38d0 Menu for different pages of documents 2024-01-20 11:31:50 +00:00
Philip Abbey
13d3ffd1ec Documentation 2024-01-19 22:27:39 +00:00
Joseph Abbey
5620ea6695 Update config.schema.json 2024-01-19 21:17:24 +00:00
Philip Abbey
7243917103 Documentation 2024-01-19 21:14:33 +00:00
Philip Abbey
49fb42cc0f Documentation 2024-01-19 20:18:25 +00:00
Joseph Abbey
39fc04fc5c Merge branch 'main' into 80-examples 2024-01-19 19:51:03 +00:00
Philip Abbey
3c5e970892 Merge pull request #84 from house-of-abbey/79-confirm-on-toggle
Initial Solution
2024-01-19 19:43:22 +00:00
Philip Abbey
bd32d94ac7 Merge pull request #85 from house-of-abbey/restyled/79-confirm-on-toggle
Restyle Initial Solution
2024-01-19 19:40:50 +00:00
Restyled.io
b7c48db604 Restyled by prettier-json 2024-01-19 19:39:25 +00:00
Restyled.io
018d2d9611 Restyled by jq 2024-01-19 19:39:22 +00:00
Philip Abbey
44ec2e2eb1 Initial Solution 2024-01-19 19:26:02 +00:00
Philip Abbey
1325f8c382 Merge pull request #82 from house-of-abbey/52-allow-parameters-to-be-send-with-tap-menu-items
52 allow parameters to be send with tap menu items
2024-01-19 18:15:39 +00:00
Philip 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
Joseph Abbey
52d9a0ec3d Update iconResize.py 2024-01-18 21:20:34 +00:00
Joseph Abbey
6632ba6c41 Merge pull request #83 from house-of-abbey/restyled/52-allow-parameters-to-be-send-with-tap-menu-items 2024-01-18 21:18:48 +00:00
Restyled.io
a48c6a38fe Restyled by whitespace 2024-01-18 21:17:54 +00:00
Philip Abbey
4e96036d66 Removed code to dismiss the ErrorView
The automatic ErrorView.unShow() when the HTTP Request callback success was preventing errors being read. Removing to see if they are really required.
2024-01-18 21:15:59 +00:00
Joseph Abbey
f0b84856ad Added examples for templates and custom switches 2024-01-18 20:36:30 +00:00
Philip Abbey
7ffbd84785 Initial working version 2024-01-17 23:31:27 +00:00
Joseph Abbey
3bc65ecc6e Merge pull request #76 from house-of-abbey/74-cache-has-results 2024-01-15 18:22:02 +00:00
Joseph Abbey
a00ed58cf4 Create restyled.yml 2024-01-15 18:21:10 +00:00
philipabbey
1132bdf57b Apply automatic changes 2024-01-14 20:49:31 +00:00
Philip Abbey
53bd8d3c50 Documentation update
Remnants that perhaps should have been in the previous merge.
2024-01-14 20:19:40 +00:00
Philip Abbey
81762fbf7d Cached 'has' result in initialize()
Also amended a bit of README that was missed and added a memory usage in the RootView for widgets here memory is limited, to serve as a warning to users who are likely to complain.
2024-01-14 19:59:18 +00:00
Philip Abbey
84aaa44995 Merge pull request #72 from house-of-abbey/26-sensor-readings-as-text-display
Template Menu Item
2024-01-14 17:16:34 +00:00
Joseph Abbey
2cf087ed23 Remove lists left around after initialisation 2024-01-14 14:20:27 +00:00
JosephAbbey
d35c6be074 Apply automatic changes 2024-01-14 13:56:00 +00:00
Joseph Abbey
099b4db3b9 Merge pull request #75 from house-of-abbey/restyled/26-sensor-readings-as-text-display 2024-01-14 13:36:59 +00:00
Restyled.io
4b5c9ba8ba Restyled by whitespace 2024-01-14 13:34:46 +00:00
Restyled.io
31fb4a5569 Restyled by prettier-json 2024-01-14 13:34:45 +00:00
Restyled.io
3ee585d20f Restyled by jq 2024-01-14 13:34:43 +00:00
Joseph Abbey
52d12fdca6 Remove extraneous corrections 2024-01-14 13:34:28 +00:00
Joseph Abbey
1f075a8c0f Remove text versions of menu items 2024-01-14 13:29:33 +00:00
Joseph Abbey
cf2237958d Turn off debug 2024-01-14 12:07:18 +00:00
Joseph Abbey
3504264f56 Merge pull request #73 from house-of-abbey/restyled/26-sensor-readings-as-text-display 2024-01-14 12:05:53 +00:00
Restyled.io
94bc49afe2 Restyled by whitespace 2024-01-14 11:52:49 +00:00
Restyled.io
a8e1bd6247 Restyled by prettier-json 2024-01-14 11:52:48 +00:00
Restyled.io
86be286c2b Restyled by jq 2024-01-14 11:52:45 +00:00
JosephAbbey
8712d68a3c Apply automatic changes 2024-01-14 11:52:39 +00:00
Joseph Abbey
31b30788b1 add TemplateMenuItem 2024-01-14 08:00:49 +00:00
Philip Abbey
4447c35761 Updated settings documentation 2024-01-13 08:29:35 +00:00
Joseph Abbey
cec10bb89a Initial schema draft 2024-01-12 18:43:04 +00:00
Philip Abbey
398dc86cbf Battery device deletion docs
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-12 18:34:13 +00:00
Philip Abbey
4665d144c5 Merge pull request #71 from house-of-abbey/70-fix-naming-of-unsetting-functions
Fix naming of unsetting functions
2024-01-12 18:11:47 +00:00
Joseph Abbey
32ce1d2a74 Fix naming 2024-01-12 18:01:00 +00:00
Philip Abbey
cd416bc81b Merge pull request #69 from house-of-abbey/68-automatically-remove-the-webhook-id-when-battery-level-is-disabled
Automatically remove webhook id
2024-01-12 17:57:46 +00:00
Philip Abbey
f2316dc0f6 Update README.md 2024-01-12 17:54:59 +00:00
Joseph Abbey
7f8814d587 Automatically remove webhook id 2024-01-12 17:53:42 +00:00
Joseph Abbey
81ac2b9705 Add battery level migration docs 2024-01-12 17:51:03 +00:00
philipabbey
59dbd0aa0a Apply automatic changes 2024-01-12 17:46:38 +00:00
Joseph Abbey
1e49de4094 Merge pull request #67 from house-of-abbey/66-fix-webhook-id-setting 2024-01-12 17:35:18 +00:00
Philip Abbey
9df93c0c23 Read only Webhook ID property
Amended some documentation.
2024-01-12 17:34:05 +00:00
Joseph Abbey
ba40f5b3d1 Add renaming device docs 2024-01-12 17:31:19 +00:00
Joseph Abbey
e9ce5a5c97 Add documentation for fixing the icon 2024-01-12 17:20:00 +00:00
Philip Abbey
825e863a68 Update Troubleshooting.md
Fixed revised curl command for send_battery.sh
2024-01-12 17:16:45 +00:00
Philip Abbey
827d0dbeec Merge pull request #53 from house-of-abbey/51-use-webhooks-for-reporting-battery-levels
Use webhooks for reporting battery
2024-01-11 22:46:10 +00:00
Joseph Abbey
bc13fba3c0 Merge pull request #65 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 21:23:22 +00:00
Restyled.io
bd242fe06c Restyled by prettier-markdown 2024-01-11 21:22:31 +00:00
Joseph Abbey
1f626f0fdb Merge branch 'main' into 51-use-webhooks-for-reporting-battery-levels 2024-01-11 21:22:23 +00:00
Joseph Abbey
d4588f02b9 update docs 2024-01-11 21:20:58 +00:00
Joseph Abbey
22bb84e13b Handle errors for the second step 2024-01-11 20:48:46 +00:00
Philip Abbey
67731708b3 Update compile_sim.cmd
Specialised for testing Vivoactive3 under release conditions in order to check we are not running out of memory.
2024-01-11 20:04:52 +00:00
Philip Abbey
6a28cd8136 Merge pull request #62 from house-of-abbey/59-minor-fix-for-translation-script
Fix formatting in translation script output
2024-01-11 19:33:57 +00:00
Joseph Abbey
ec2debd814 Merge pull request #64 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:36:16 +00:00
Restyled.io
714da2d538 Restyled by whitespace 2024-01-11 18:23:58 +00:00
Joseph Abbey
331fd2471e Merge branch 'main' into 51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:22:34 +00:00
Joseph Abbey
cc56606105 Merge pull request #61 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:20:05 +00:00
Joseph Abbey
307b1e0453 Merge pull request #63 from house-of-abbey/restyled/59-minor-fix-for-translation-script 2024-01-11 18:17:38 +00:00
Restyled.io
65c275ae19 Restyled by yapf 2024-01-11 18:16:26 +00:00
Restyled.io
58b5c7d0c4 Restyled by reorder-python-imports 2024-01-11 18:16:22 +00:00
Restyled.io
59e3ae1441 Restyled by isort 2024-01-11 18:16:19 +00:00
Restyled.io
82d69483d6 Restyled by black 2024-01-11 18:16:17 +00:00
Restyled.io
5848cd4e17 Restyled by autopep8 2024-01-11 18:16:15 +00:00
Joseph Abbey
139e4e0a96 add new lines to generated strings files 2024-01-11 18:14:30 +00:00
Restyled.io
805a7aa075 Restyled by whitespace 2024-01-11 18:07:27 +00:00
JosephAbbey
807a4bb461 Apply automatic changes 2024-01-11 18:07:15 +00:00
Joseph Abbey
de19fc94a7 2024-01-11 17:41:05 +00:00
Joseph Abbey
a211565810 2024-01-11 17:37:18 +00:00
Joseph Abbey
f155ab0925 Added error messages for first request 2024-01-11 17:27:52 +00:00
philipabbey
52967e87d4 Apply automatic changes 2024-01-11 11:10:47 +00:00
Joseph Abbey
9f0ec9a2f8 Merge pull request #57 from house-of-abbey/56-fix-bad-translation-for-all-languages
56 fix bad translation for all languages
2024-01-11 10:50:24 +00:00
Philip Abbey
4b450065c8 Merge pull request #58 from house-of-abbey/restyled/56-fix-bad-translation-for-all-languages
Restyle 56 fix bad translation for all languages
2024-01-11 09:42:37 +00:00
Restyled.io
d0ec4aa4d8 Restyled by whitespace 2024-01-11 09:41:45 +00:00
Philip Abbey
7074940579 Update corrections.xml
Taking a user's preferred translations, checking a second.
2024-01-11 09:38:52 +00:00
Philip Abbey
8133b434b7 Merge branch 'main' into 56-fix-bad-translation-for-all-languages 2024-01-11 09:37:13 +00:00
Philip Abbey
ac5f43af54 Merge pull request #55 from jjusko/main
Taking user's preferred translation.
2024-01-11 09:34:58 +00:00
philipabbey
e77e1a76b8 Apply automatic changes 2024-01-11 09:24:14 +00:00
Philip Abbey
96ae4b231a Update strings.xml 2024-01-11 09:10:59 +00:00
jjusko
9e0b8e5145 Add files via upload 2024-01-11 09:46:34 +01:00
Joseph Abbey
5f794388e6 Resolve review comments 2024-01-11 07:16:38 +00:00
Joseph Abbey
ab071fd96d Merge pull request #54 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels
Restyle Use webhooks for reporting battery
2024-01-10 23:12:45 +00:00
Restyled.io
4190ce2362 Restyled by whitespace 2024-01-10 23:10:15 +00:00
Joseph Abbey
42e0a1b543 Use webhooks for battery 2024-01-10 23:08:08 +00:00
Philip Abbey
4e6f8bcefc Update README.md
Added details of version 2.2.
2024-01-09 21:37:46 +00:00
Philip Abbey
70e0bc3ff1 Update README.md 2024-01-09 21:31:10 +00:00
Philip Abbey
b51e2aa2a4 Update BatteryReporting.md 2024-01-09 21:03:47 +00:00
Philip Abbey
e9de9e5890 Update README.md 2024-01-09 21:03:12 +00:00
Philip Abbey
376c72d7ba Merge pull request #49 from house-of-abbey/31-reduce-startup-delay
31 reduce startup delay
2024-01-09 20:27:26 +00:00
Philip Abbey
1db885e10f Merge branch '31-reduce-startup-delay' of ssh://github.com/house-of-abbey/GarminHomeAssistant into 31-reduce-startup-delay 2024-01-09 17:37:47 +00:00
Philip Abbey
40377e6887 Amended App settings screenshot 2024-01-09 17:37:41 +00:00
Philip Abbey
3b0b3fac32 Merge pull request #50 from house-of-abbey/restyled/31-reduce-startup-delay
Restyle 31 reduce startup delay
2024-01-09 11:02:51 +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
philipabbey
9858ebbe73 Apply automatic changes 2024-01-08 00:18:56 +00:00
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
Philip Abbey
7c1082849d Merge pull request #46 from house-of-abbey/43-battery-reporting-stops-working-when-scrolling-trough-the-widget
Amend behaviour of background service for glances.
2024-01-07 20:59:37 +00:00
Philip Abbey
c78cd574b1 Merge pull request #47 from house-of-abbey/restyled/43-battery-reporting-stops-working-when-scrolling-trough-the-widget
Restyle Update Settings.mc
2024-01-07 19:13:01 +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
97273155e1 Merge pull request #45 from house-of-abbey/restyled/42-uninternationalised-string-needs-adding-to-stringsxml
Restyle 42 uninternationalised string needs adding to stringsxml
2024-01-07 18:41:18 +00:00
Restyled.io
0b35c24e65 Restyled by whitespace 2024-01-07 18:36:42 +00:00
philipabbey
6ae96cfd7c Apply automatic changes 2024-01-06 21:46:07 +00:00
Philip Abbey
c0787733b7 Amended as required
**/strings.xml need recreating server side.
2024-01-06 21:33:48 +00:00
Philip Abbey
24ebc72080 Documentation tidy
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:23:38 +00:00
Philip Abbey
3b10bb9272 Update BatteryReporting.md
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:17:28 +00:00
Philip Abbey
e8242490fd Merge branch 'main' of ssh://github.com/house-of-abbey/GarminHomeAssistant 2024-01-06 21:16:59 +00:00
Philip Abbey
a8c9085dc4 Updated troubleshooting guide.
Now includes battery level transmission debug.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:16:53 +00:00
Philip Abbey
1fa15c58a0 Update README.md 2024-01-06 19:04:47 +00:00
Philip Abbey
25205e715e Update README.md 2024-01-01 20:05:36 +00:00
Philip Abbey
5288e97b4f Merge pull request #38 from house-of-abbey/37-add-device-battery-logging-and-settings-class
37 add device battery logging and settings class
2024-01-01 19:37:37 +00:00
Philip Abbey
ff7cbee1ce Update README.md 2024-01-01 19:34:08 +00:00
Joseph Abbey
14949d061a Update BatteryReporting.md 2024-01-01 19:27:52 +00:00
Joseph Abbey
1f19341675 Add Battery_Guage_Screenshot.png 2024-01-01 19:26:40 +00:00
Philip Abbey
e07d9ddb9d Update to documentation 2024-01-01 18:29:12 +00:00
Joseph Abbey
af542d92d8 Create BatteryReporting.md 2024-01-01 16:42:35 +00:00
Philip Abbey
6b074cb3c9 Update README.md
Added instructions for finding the correct parts of HA for API Keys and URLs thanks to a user.
2024-01-01 15:29:08 +00:00
Philip Abbey
bcaea763c5 Merge branch '37-add-device-battery-logging-and-settings-class' of ssh://github.com/house-of-abbey/GarminHomeAssistant into 37-add-device-battery-logging-and-settings-class 2024-01-01 15:26:02 +00:00
philipabbey
f112a333e7 Apply automatic changes 2024-01-01 14:31:38 +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
f22dc469fb Typo updates
GarminHomeAssistant/translate.py:119: DeprecationWarning: The 'text' argument to find()-type methods is deprecated. Use 'string' instead.
2023-12-31 16:44:20 +00:00
Philip Abbey
5c593cc66a Update README.md
Added version 2.1 changes.
2023-12-31 16:30:10 +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
b2461a09e6 Screenshot for confirmation view 2023-12-24 18:52:19 +00:00
Philip Abbey
ca90cbdcff Merge pull request #35 from house-of-abbey/34-compilation-of-widget-application-plus-additional-devices
34 compilation of widget application plus additional devices
2023-12-24 17:54:29 +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
bb26e0048f Update README.md 2023-12-23 16:22:16 +00:00
Philip Abbey
5cf5e25ef5 Documentation update 2023-12-23 16:13:30 +00:00
philipabbey
d56ca9439c Apply automatic changes 2023-12-23 14:49:31 +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
philipabbey
c4e9eb1fb0 Apply automatic changes 2023-12-21 11:58:20 +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
4e739e918e Update export.cmd
Typo
2023-12-18 16:18:56 +00:00
Philip Abbey
ead7e2e658 Tweakes
export.cmd amended cosmetically.
README.md version info updated.
2023-12-18 15:14:36 +00:00
Philip Abbey
648f0c1b8a Update README.md 2023-12-18 14:41:39 +00:00
Philip Abbey
f4e6e8848e 20 new devices and export of widget & application
Added 20 new devices and batch exportation (compilation) of both widget and application. Amended documentation.
2023-12-18 14:29:59 +00:00
JosephAbbey
8a799e4099 Apply automatic changes 2023-12-17 18:28:10 +00:00
Philip Abbey
02b20dd911 Merge pull request #33 from house-of-abbey/22-add-internationalisation-for-application-settings
Settings internationalised
2023-12-17 17:13:08 +00:00
Philip Abbey
642da4bab5 Update manifest.xml 2023-12-17 14:21:16 +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
9ee842051e Merge pull request #32 from house-of-abbey/29-vivoactive-4s-crashes-user-reported-error
29 vivoactive 4s crashes user reported error
2023-12-17 12:25:01 +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
Joseph Abbey
e3a6da4c9f Merge pull request #30 from Someone0nEarth/widget_glance_prototype 2023-12-16 21:04:45 +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
3d24301a72 Settings internationalised 2023-12-16 18:33:51 +00: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
d2b9c3203d Add correction for German translation 2023-12-15 20:11:38 +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
Philip Abbey
39c77bb284 Update manifest.xml
Reversing changes made by saving from the GUI manifest editor. I would like to retain the comments with the watch face properties.
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
Philip Abbey
8c5aa820ef Update README.md
Added version information for 1.7
2023-12-13 08:53:00 +00:00
Philip Abbey
a13f04fa6c Merge pull request #28 from j-a-n/confirm_timeout
Auto close confirmation dialog after timeout
2023-12-11 08:22:10 +00: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
44d5bf8e93 Update README.md 2023-12-06 22:56:59 +00:00
Philip Abbey
fae2241f01 Merge pull request #24 from house-of-abbey/23-prevent-battery-drain-by-quitting-the-app-after-a-timeout
Initial version with "auto quit"
2023-12-06 22:43:42 +00:00
Philip Abbey
42e89906f6 Review comments 2023-12-06 22:09:22 +00: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
Joseph Abbey
ea58171b2f Merge pull request #20 from house-of-abbey/19-feature-request-confirm-dialogue 2023-12-01 11:53:17 +00:00
Philip Abbey
531c3e972e Update config.schema.json
Added missing full stops.
2023-12-01 11:42:11 +00:00
Philip Abbey
2d07eaa9c6 Update HomeAssistantView.mc
Review comment about a random space.
2023-12-01 11:28:19 +00:00
Philip Abbey
0e443e33d3 Update config.schema.json
Tidy up of help text
2023-12-01 10:19:49 +00:00
philipabbey
e616a6bd76 Apply automatic changes 2023-12-01 10:10:43 +00:00
JosephAbbey
239f8a793b Apply automatic changes 2023-12-01 10:08:12 +00:00
JosephAbbey
fc22ca3497 Apply automatic changes 2023-12-01 10:03:11 +00:00
Philip Abbey
1df64286f0 Updated README
Also missed schema changes of the previous commit. Added a photo of the confirmation view.
2023-12-01 09:54:23 +00:00
Philip Abbey
0ab9cb800a Initial solution
For optional confirmation dialogue box.
2023-12-01 09:15:59 +00:00
Philip Abbey
3fe48be756 Update README.md
Adding some hints to avoid setup errors.
2023-11-30 18:56:42 +00:00
256 changed files with 13450 additions and 1900 deletions

10
.github/ISSUE_TEMPLATE/blank-issue.md vendored Normal file
View File

@@ -0,0 +1,10 @@
---
name: Blank issue
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''
---

47
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,47 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**IMPORTANT!**
I have:
- [ ] Used HTTPS to access HomeAssistant (with a public certificate)
- [ ] Checked that my JSON Syntax is correct ([options 2, 3, or 4](https://github.com/house-of-abbey/GarminHomeAssistant#editing-the-json-file) or otherwise)
- [ ] Checked that my JSON follows the schema ([options 2, 3, or 4](https://github.com/house-of-abbey/GarminHomeAssistant#editing-the-json-file))
- [ ] Used the online editor to check my JSON against HomeAssistant ([option 1](https://github.com/house-of-abbey/GarminHomeAssistant#editing-the-json-file))
- [ ] Checked the [Docs](https://github.com/house-of-abbey/GarminHomeAssistant)
- [ ] Checked the [Troubleshooting Guide](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/TroubleShooting.md)
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Garmin Device (please complete the following information):**
- Model: [e.g. Venu 2]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

5
.github/restyled.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
exclude:
- '**/*.md'
- '**/pnpm-lock.yaml'
- 'manifest.xml'
- 'manifest-widget.xml'

View File

@@ -23,11 +23,11 @@ jobs:
uses: actions/setup-python@v4.7.1
- run: |
pip install beautifulsoup4
pip install deep-translator
pip install lxml
pip install google-genai beautifulsoup4 lxml
- run: python translate.py
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5

6
.gitignore vendored
View File

@@ -2,4 +2,8 @@ bin/
export/
**/Thumbs.db
settings.txt
export.cmd
Thumbs.db
# This file contain credentials, instead provide the empty file ClientId.mc.unpopulated
source/ClientId.mc
# Gemini API key for automated translations
gemini_api_key.txt

10
.prettierrc Normal file
View File

@@ -0,0 +1,10 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSameLine": true,
"arrowParens": "always",
"experimentalTernaries": true,
"semi": true,
"trailingComma": "es5"
}

View File

@@ -2,5 +2,10 @@
"cSpell.words": [
"usbs",
"Venu"
]
],
"files.exclude": {
"resources-*": true,
"bin": true,
"export": true
}
}

172
BackgroundService.md Normal file
View File

@@ -0,0 +1,172 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# Background Service
The background service can report the following statuses from your device to your Home Assistant:
- Battery Level with charging status.
- Location and location accuracy.
- Activity information, but only if your device supports API level 3.2.0. If your device does not support this API level, this information is simply omitted. How do you know? Easiest way is to see if the data is reported.
If your device does not support the background service, the application will clear this setting after you have enabled it. This tells you that you are unable to take advantage of the background reporting service for the functions below.
## Limits
The values are merely samples of your device's current status. They are sent by a single background service at the repetition frequency you chose in the settings. The samples are sent at that one rate only, they _do not vary_ for example on in activity, on charge, time of day. You get one refresh interval and that is it. If you want to change the refresh interval, you change your settings. We do appreciate that may not be what you would ideally like to trigger actions on Home Assistant. Messing with the repeat interval of the background service requires more code, more settings and more complexity. That means older devices using widgets would have to be taken out of support to achieve it.
**Please do not ask for these to be made 'events'.** Garmin's [Connect IQ background service](https://developer.garmin.com/connect-iq/api-docs/Toybox/System/ServiceDelegate.html) is limited in that while it does provide an `onActivityCompleted()` method, it does not provide an `onActivityStarted()` method, so you would not have the complete activity life cycle anyway. So we're keeping this implementation simple, you just get a sampling at one refresh rate. This probably limits you to updating a status on a Home Assistant Dashboard only.
## Battery Reporting
From version 2.1 the application includes a background service to report the current device battery level and charging status back to Home Assistant. This is a feature that Garmin omitted to include with the Bluetooth connection.
## Location Reporting
From version 2.6 the application includes reporting your location. The location data reported includes:
- Location (latitude and longitude)
- Location accuracy
- Speed
- Direction
- Altitude
You get whatever your device provides at the moment, i.e. at the accuracy the device currently provides. If your watch is not calibrated you get poor data. It might mean that you get more accurate location data when you are in a location tracking activity (i.e. not swimming pool lengths). The device [indicates an accuracy](https://developer.garmin.com/connect-iq/api-docs/Toybox/Position.html#Quality-module) in units of:
- `Position.QUALITY_NOT_AVAILABLE` - No update provided
- `Position.QUALITY_LAST_KNOWN` - No update provided
- `Position.QUALITY_POOR` - We translate that to 500 m arbitrarily
- `Position.QUALITY_USABLE` - We translate that to 100 m arbitrarily
- `Position.QUALITY_GOOD` - We translate that to 10 m arbitrarily
**You cannot rely on the radius of the circle of accuracy in any resulting maps as any meaningful indication of error.**
## Activity Reporting
From version 2.6 the application includes reporting your activity. The activity data includes:
- Activity - This is an integer as defined by [Toybox.Activity `SPORT`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#Sport-module)
- Sub-activity - This is an integer as defined by [Toybox.Activity `SUB_SPORT`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#SubSport-module)
The application only provides the integers without translation. When using the values in Home Assistant, you will need to provide you own mapping from the `Activity` enumerated type to the human readable text. As developers of the application we are pushing this translation to the server to keep the Garmin application code 'lean'. You will also need to add to both the list of activities (sports) and sub-activities (sub-sports) an interpretation of integer `-1` for no activity/sub-activity at present.
## Start Reporting
The main drawback of this solution is that the Garmin application must be run once with the feature enabled in the settings before reporting will start. Reporting continues after you have exited the application. This is a limit we cannot code around.
It should be as simple as starting the application (or widget). There should be a new device in the mobile app integration called `Garmin Watch` with the battery level and charging status.
[![Open your Home Assistant instance and show an integration.](https://my.home-assistant.io/badges/integration.svg)](https://my.home-assistant.io/redirect/integration/?domain=mobile_app)
If this is not the case, head over to the [troubleshooting page](Troubleshooting.md#watch-battery-level-reporting).
## Stop Reporting
To stop the reporting, the option must be turned off in the settings and then the application run once. Running the application then removes the background service. Both the enable and repeat time settings can be changed whilst the application is running (i.e. live) and the background service will be amended.
## Renaming the device
When the device is first created, it will be called `Garmin Watch`. This can be changed in the mobile app integration settings (button below).
[![Open your Home Assistant instance and show an integration.](https://my.home-assistant.io/badges/integration.svg)](https://my.home-assistant.io/redirect/integration/?domain=mobile_app)
Select the device called `Garmin Watch` and then click on the edit icon in the top right corner. You can then change the name of the device to whatever you like, then press `UPDATE` and then `RENAME`.
![Rename device](images/rename_device.png)
![Rename entity ids](images/rename_device_2.png)
## Fixing the icon
In `configuration.yaml`:
```yaml
template:
- sensor:
- name: "<device-name> Battery Level"
unique_id: "<unique-id>"
device_class: "battery"
unit_of_measurement: "%"
state_class: "measurement"
state: "{{ states('sensor.<device>_battery_level') }}"
icon: "mdi:battery{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-charging{% endif %}{% if 0 < (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 < 100 %}-{{ (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 }}{% else %}{% if (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 == 0 %}-outline{% else %}{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-100{% endif %}{% endif %}{% endif %}"
```
## Adding a sample Home Assistant UI widget
A gauge for battery level with a charging icon making use of [mushroom cards](https://github.com/piitaya/lovelace-mushroom), [card_mod](https://github.com/thomasloven/lovelace-card-mod) and [stack-in-card](https://github.com/custom-cards/stack-in-card):
<img src="images/Battery_Guage_Screenshot.png" width="120" title="Battery Gauge"/>
In lovelace:
```yaml
type: custom:stack-in-card
direction: vertical
cards:
- type: custom:mushroom-chips-card
card_mod:
style: |
ha-card {
height: 0.25rem;
}
chips:
- type: conditional
conditions:
- condition: state
entity: binary_sensor.<device>_battery_is_charging
state: "on"
chip:
type: entity
icon_color: yellow
entity: sensor.<device>_battery_level
content_info: none
use_entity_picture: false
card_mod:
style: |
ha-card {
border: none !important;
}
- type: conditional
conditions:
- condition: state
entity: binary_sensor.<device>_battery_is_charging
state: "off"
chip:
type: entity
entity: sensor.<device>_battery_level
content_info: none
use_entity_picture: false
card_mod:
style: |
ha-card {
border: none !important;
}
- type: gauge
entity: sensor.<device>_battery_level
unit: "%"
name: Watch
needle: false
severity:
green: 50
yellow: 20
red: 0
card_mod:
style: |
ha-card {
border: none !important;
}
```
N.B. `sensor.<device>_battery_level` will likely need to be changed to `sensor.<device>_battery_level_2` if you have fixed the icon as above.
## Migrating
You should remove your old template sensors before migrating to the new integration. You can do this by removing the `sensor.<device>_battery_level` and `binary_sensor.<device>_battery_is_charging` entities from `configuration.yaml` and then restarting Home Assistant or reloading the YAML.
[Here is the old configuration method for reference.](https://github.com/house-of-abbey/GarminHomeAssistant/blob/b51e2aa2a4afbc58ad466f3b81667d1cd252d091/BatteryReporting.md)
## Deletion
While all of the entries have the same name, you can identify which to delete by clicking through to its device which should have a changed name from when it was set up.
![Battery Device Deletion](images/Battery_Device_Deletion.png)

52
HISTORY.md Normal file
View File

@@ -0,0 +1,52 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# Version History
| Version | Comment |
|:-------:|---------|
| 1.0 | Initial release for 26 devices. |
| 1.1 | Updated for 54 more devices, 80 in total. Scene support. Added vibrate acknowledgement for tap-based menu items. Falls back to a custom visual confirmation in the absence of 'toast' and vibrate support. Bug fix for large menus needing status updates. |
| 1.2 | Do not crash on zero items to update. Report unreachable URLs. Verify API URL does not have a trailing slash '/'. Increased HTTP response diagnosis. Reduced minimum API Level required from 3.3.0 to 3.1.0 to allow more device "part numbers" to be satisfied. |
| 1.3 | Tap for scripts was working in emulation but not on some phones. Decision is to make the 'service' field in the JSON compulsory for 'tap' menu items. This is a breaking change, but for many might be a fix for something not working correctly. Improve language support, we can now accept language corrections and prevent the automated translation of strings from clobbering manually refined entries. Thank you to two new contributors. |
| 1.4 | New lean user Interface with thanks to [Someone0nEarth](https://github.com/Someone0nEarth) for their contribution which is now the default. If you prefer the old style you can still select it in the settings. The provision of a 'service' tag is now not just heavily suggested by the JSON schema, it is enforced in code. With apologies to anyone suffering a breakage as a result. |
| 1.5 | <img src="images/confirmation_view.png" width="200" title="Confirmation View"/><br/>Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the HomeAssistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. |
| 1.6 | Added a user configurable 'timeout' in seconds so that when no action is taken the application automatically closes, stopping the continuous polling for changes of status and hence saving the drain on the battery. This can be disabled with timeout=0. |
| 1.7 | Added timeout to confirmation views so that when used for security devices it does not linger when left unconfirmed. Thanks to [Jan Schneider](https://github.com/j-a-n) for the contribution. Known bug for devices not supporting [`WatchUi.getCurrentView()`](https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi.html#getCurrentView-instance_function) API call which is only available on API Level 3.4.0, e.g. Vivoactive 4S. |
| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, the settings have been internationalised, and there's a bug fix for older devices when trying to display a helpful error message but instead the application crashed. This version has come from a significant collaboration with [Someone0nEarth](https://github.com/Someone0nEarth). |
| 2.1 | Deployment of an idea to provide HomeAssistant with access to the watch battery level. Using this requires [significant setup](BackgroundService.md) on the HomeAssistant configuration and hence is detailed separately. Due to this, the default state for this battery option is _off_. Changed the application settings user interface to be more intuitive, and hence amended the way settings are managed in the background. |
| 2.2 | Adds a feature to cache the menu configuration and save the time taken for an HTTP request to fetch it. You as the user are responsible for managing the cache by clearing it when you update your configuration. Improvement to widget root display updates. Bug fix for battery level reporting when in the glance carousel. Fixed an uninternationalised string, "Execute". Unfixed issue with battery level updates when the user is not an administrator. |
| 2.3 | Fix for battery level updates where previously the function only worked for administrator accounts. The new solution is based on Webhooks and is simpler to implement on HomeAssistant. Language support fix where an automatic translation produced an inappropriate word, possibly in more than one language. |
| 2.4 | Sensor status reporting via HomeAssistant 'templates'. This provides a generalised way of viewing the status of any entity as long as the result can be rendered as text, e.g. 'uncovered', 'open', '76%', '21 °C'. Removal of the menu style option. The original style was kept after the introduction of the icon style solely to keep the code for a possible re-use for sensor statuses. This version delivers that new feature, hence the style option has been removed. The new JSON configuration file format allows for the old style to be replicated if you are desperate! Added a feature to provide parameters to actions (`tap` or `template`). Added a feature to confirm `toggle` menu items. |
| 2.5 | A small memory efficiency of about 1kB by removing `RezStrings.mc`. This will aid widgets on old watches that only have 60kB available to an application and are using about 45kB before the menu is fetched, hence 1kB is more significant to those devices. |
| 2.6 | Added more information reporting to the background service, in addition to the device battery level and charging status, we now include location, location accuracy, and (if supported by your device) the activity information. Note the updates are sent periodically and are not event driven. |
| 2.7 | Bug fix release: 1. Handling a settings change, 2. Avoid caching a bad menu, 3. Managing bad JSON in menu definitions. |
| 2.8 | Separation release. The application and widget are no longer joined and now have separate source code repositories. The widget version is now in "maintenance only mode" hence will not receive new features, whilst the application version can now take advantage of not being constrained by the widget's memory limitation, which should allow new features to be added in the future. |
| 2.9 | Added an option to enable confirmation vibration so it can be turned off by request of a user. Removed a redundant setting for the alternative Widget version that was not removed previously, and fixed a bug with dereferencing Null. |
| 2.10 | Added a user requested feature to slow down the rate of API calls in order to reduce battery wear for a situation where the application is kept open permanently on the device for convenience. Added 4 new devices. |
| 2.11 | Bug fix release for menu caching being turned off and language corrections (Czech & Slovenian). |
| 2.12 | Re-enabled Edge 540 and Edge 840 devices which we are unable to support due to simulator issues, but the Edge 840 device has been confirmed as working by a [Petucky](https://github.com/Petucky). |
| 2.13 | Moved the template status queries to Webhooks in order to fix the situation where an account is a non-privileged user. Added telemetry update on activity completion to make automations more timely at the end of an activity. When using a polling delay, there is no longer a startup delay for status updates and an action will trigger an immediate round of updates. |
| 2.14 | Cautionary bug fix for the background service code where refactorisation spoilt some API level guard clauses. |
| 2.15 | Better support for templates by isolating erroneous returns and marking the menu item. |
| 2.16 | Bug fix for lack of phone connection when starting the application. Includes new activity reporting features from [KPWhiver](https://github.com/KPWhiver) covering steps, heart rate, floors climbed and descended, and respiration rate. |
| 2.17 | Bug fix for reporting activity metrics that are not found on some devices. |
| 2.18 | Bug fix for reporting activity metrics that might be `null` sometimes. This is unsimulatable situation, so this version is a change based on an informed guess. |
| 2.19 | A template to evaluate is now optionally allowed on both `group` and `toggle` menu items. The template to evaluate is non-optional on a `template` menu item. All updates are performed in a single HTTP GET request for efficiency. Bug fix for negative heading values. Vibration now (optionally) confirms toggle menu items being tapped. |
| 2.20 | Simplified the code base now that templates have been requested in all menu items. This means the `template` menu item became a superset of `tap`. Therefore the `tap` code has been has been upgraded to include `template` and the latter deprecated. JSON menu definitions continue to support `template` items by instantiating a `tap` menu item, but the schema marks them as deprecated and users should migrate their menu definitions now. Use the [web editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) for assistance with changes. |
| 2.21 | Added 7 new devices (`edge1050`, `enduro3`, `fenix843mm`, `fenix847mm`, `fenix8solar47mm`, `fenix8solar51mm`, `fenixe`) and upgraded the SDK to 7.3.0. Fix for a bug on Edge devices introduced by v2.16 activity reporting improvements. |
| 2.22 | <img src="images/pin_view.png" width="200" title="PIN Entry View"/><br/>Major feature release adding an optional PIN to menu items. This significant new feature has been provided by [moesterheld](https://github.com/moesterheld). Please do not rely on this application for security. Use at your own risk! |
| 2.23 | Added "info" menu item for displaying information via a template without a tap or toggle. Essentially like the old 'template' type that was deprecated when all items were amended to display evaluated templates. That action removed the display only items too hastily. Added 5 new devices in the model range Instinct 3 and Instinct E. |
| 2.24 | Experiment to prevent new Webhook IDs being created unnecessarily. Reduced the latency for the first menu update. Added 4 new devices: approachs50, descentg2, descentmk1, and gpsmap66. |
| 2.25 | 2 Bug fixes. First time startup issues caused by v2.24 change and a fix for pure numbers in returned templates. |
| 2.26 | Retry responsive menu fix failed in v2.24. Cosmetic internal class changes. |
| 2.27 | Trivial bug fix for the glance view to prevent the "Unconfigured" result being erroneously displayed because the settings were not yet pulled from persistent storage. |
| 2.28 | Added support for Vivoactive 6 device which also required an SDK update to 8.1.0. |
| 2.29 | Added support for three new devices, Forerunners 570 42mm & 47mm and 970. |
| 2.30 | <img src="images/Venu2_glance_default.png" width="200" title="Default Glance"/><br/>Extensive re-work of the [Glance](examples/Glance.md) view, including the ability to customise it with a user supplied template. |
| 2.31 | Adding [two new options](./examples/Actions.md#exit-on-tap) to the menu items: 1) The ability to disable a menu item, e.g. temporarily for seasonal changes, 2) The option to exit after a menu item has been select. |
| 2.32 | Bug fix for a breaking change extracting options caused by the need to rearrange function parameters for an [annoying compiler error](https://github.com/house-of-abbey/GarminHomeAssistant/issues/253). |
| 3.0 | First version with the ability to use [Wi-Fi or LTE](Wi-Fi.md) instead of Bluetooth but with limited functionality, thanks to [@vincentezw](https://github.com/vincentezw). |
| 3.1 | Added the ability for users to provide [custom HTTP headers](HTTP_Headers.md) for their HomeAssistant server. Improved German language translations. Thanks to [@tispokes](https://github.com/tispokes) for assisting with both of those. Removed all groups in settings as the SDK is buggy. Fixed a bug with templates in glances causing application crash on startup. |
| 3.2 | Only enable or disable sensors on HomeAssistant when the background service options is changed, i.e. do not call the API to enable on start up every time. |
| 3.3 | Providing automatic detection for menu definition updates, but still requires an application restart. |
| 3.4 | Fixed a bug where templates failed to display in toggle menu items (at least on some devices). Fixed a bug where a menu item requesting to exit on completion appeared to indicate failure when using Wi-Fi or LTE. The fix uses a delay in exiting the application modelled as sufficient for a Venu 2 device, so this might need tweaking for other devices. Attempt to fixed an "Out of Memory" bug caused by v3.3 by making automatic checking for menu updates both optional and automatically turned off when insufficient memory is available. This last bug is device dependent and may require another attempt. Internationalisation improvements with thanks to @krzys_h for a new automated translations script. |

37
HTTP_Headers.md Normal file
View File

@@ -0,0 +1,37 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# User Specified Custom HTTP Headers
Principally for those who use HomeAssistant add-on [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) in order to provide additional security via Cloudflare's Web Application Firewall (WAF). But Garmin does not support certificates in requests. And the solution is generic enough for other use cases.
Please let us know if this solution is found to be useful for other situations.
## Setup
The settings contain two options for users to specify both the HTTP header name and the value as two free form strings.
<img src="images/http_header_settings.png" width="400" title="Application Settings"/>
If you don't know why you need these, leave them empty and ignore.
### Cloudflare WAF rule example
`(any(http.request.headers["your-header-name"][*] eq "your-header-key"))`
Make the key strong enough!
## Support
**None!**
The authors of the Garmin HomeAssistant application do not use, and hence do not know, the [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) add-on. While we have enabled the HTTP headers to support using this add-on, it does mean _you support yourself_. Please do not raise issues about this functionality unless you are supplying the answers for any required changes too!
## Credits
With thanks to Lars Pöpperl ([@tispokes](https://github.com/tispokes)) for contributing to this solution.
## References
* [Using Cloudflare ZeroTrust and mTLS to securely access HomeAssistant via the internet](https://kcore.org/2024/06/28/using-cloudflare-zerotrust-and-mtls-with-home-assistant-via-the-internet/)
* [HomeAssistant Add-on: Cloudflared](https://github.com/brenner-tobias/addon-cloudflared)

View File

@@ -4,5 +4,9 @@
"path": "."
}
],
"settings": {}
"settings": {
"cSpell.words": [
"Initialiser"
]
}
}

304
README.md
View File

@@ -1,30 +1,75 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# GarminHomeAssistant
<img src="images/Actual_Venu2_Theme.jpg" width="200" title="Venu 2"/>
A Garmin application to provide a "dashboard" to control your devices via [Home Assistant](https://www.home-assistant.io/). The application will never be as fully fledged as a Home Assistant dashboard, so it is designed to be good enough for the simple and essential things. Those things that can be activated via an on/off toggle or a tap. That should cover lights, switches, and anything requiring a single press such as an automation. For anything more complicated, e.g. thermostat, it would always be quicker and simpler to reach for your phone or tablet... or the device's own remote control!
A Garmin application to provide a "dashboard" to control your devices via [HomeAssistant](https://www.home-assistant.io/). The application will never be as fully fledged as a HomeAssistant dashboard, so it is designed to be good enough for the simple and essential things. Those things that can be activated via an on/off toggle or a tap. That should cover lights, switches, and anything requiring a single press such as an automation. For anything more complicated, e.g. thermostat, it would always be quicker and simpler to reach for your phone or tablet... or the device's own remote control!
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [Home Assistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the toggle menu item. It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [HomeAssistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the `toggle` menu item, or a text status for an entity (`info` item). It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
It is important to note that your Home Assistant instance will need to be accessible via HTTPS with public SSL or all requests from the Garmin will not work. This cannot be a self-signed certificate, it must be a public certificate (You can get one for free from [Let's Encrypt](https://letsencrypt.org/) or you can pay for [Home Assistant cloud](https://www.nabucasa.com/)).
**The intended audience for this application are those comfortable with configuring a HomeAssistant** (e.g. editing the YAML configuration files) and debugging why URLs don't work. It does not require programming skills, but the menu is configured via JSON which feels like "coding" (more like "describing"). If you are not comfortable with this relatively low level of configuration, you may like to try other Garmin applications instead.
## Application Installation
**If you are struggling with getting the application to work, please consult the [troubleshooting guide](TroubleShooting.md#menu-configuration-url) first.**
Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/61c91d28-ec5e-438d-9f83-39e9f45b199d) application page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the application.
## No HTTPS?
> [!IMPORTANT]
> The Garmin SDK allows HTTP requests only to a limited number of domains specified in their app. Therefore, for your Garmin to communicate with your HomeAssistant instance, your HomeAssistant instance must be accessible via HTTPS (with a public certificate!) or through a local DNS server that overrides one of the whitelisted domains to communicate using HTTP.
>
>New with version 3.1, you can use [Cloudflared](https://github.com/brenner-tobias/addon-cloudflared) plug-in in combination with a [custom HTTP header](HTTP_Headers.md) and do not need a public certificate for HTTPS.
>
> To make your HomeAssistant instance accessible via HTTPS, you will need a public certificate. You can get one for free from [Let's Encrypt](https://letsencrypt.org/) or you can pay for [HomeAssistant cloud](https://www.nabucasa.com/). (You can install a local [Nginx proxy server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_nginxproxymanager) to manage Let's Encrypt certificates.)
>
> If you use a local DNS server (like [Pi-Hole](https://pi-hole.net/)), you can create a local DNS record for the domain `garmincdn.com` (which is allowed for HTTP in the Garmin SDK) and map it to your HomeAssistant instance's IP. "_[About Communication Between Garmin SDK and a Raspberry Pi](https://www.instructables.com/About-Communication-Between-Garmin-SDK-and-a-Raspb/)_" provides additional workarounds for HTTP request restrictions in the Garmin SDK.
>
> **No support is offered to those circumventing the HTTPS restriction of the Connect IQ SDK.** You are supporting yourself!
## Widget or Application?
As of version 2.0, there are now two installable versions. For older devices before applications supported 'glances', there is a now widget version. These two version must be downloaded separately due to the way the Connect IQ App Store requires them to have separate application IDs. Therefore you need to choose which you want up front. Here's how they compare.
| Version | Explanation |
|------------------------|-------------|
| Application (original) | For newer devices that allow glance views in their applications, e.g. Venu 2, the GarminHomeAssistant application can be started either from a glance or from the list of applications and activities. Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/61c91d28-ec5e-438d-9f83-39e9f45b199d) application page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the application. The application can be started two different ways, either from the glance in the carousel, or as an application from the list of applications & activities. With the latter, it is worth marking the application as a favourite.<br/><img src="images/Venu2_app_start.png" width="200" title="Venu 2" style="margin:5px"/><img src="images/Vivoactive3_app_start.jpg" width="200" title="Vivoactive 3" style="margin:5px"/><br/>If you place the application on your list of favourites, and rearrange it to appear near the top, then the item is just one button press away from the watch face. This second picture here shows the application menu on a Vivoactive 3 watch.<br/><img src="images/Venu2_glance_default.png" width="200" title="Venu 2" style="margin:5px"/><br/>On newer watches, you can also start the application from the glance carousel. The glance view here typically displays some trackable status, so ours provides some early indication of availability. Older watches will still allow you to start this application from the list of applications and activities. |
| Widget | **"Maintenance only mode"** so no new features will be added to this version.<br>For older devices that use widgets, e.g. Venu (1) as opposed to applications with "glances", the GarminHomeAssistant application can instead be started from the widget carousel. This is a separate item in the Connect IQ AppStore and with this installation, the application will no longer appear in the list of applications and activities. Head over to the [GarminHomeAssistant](https://apps.garmin.com/en-US/apps/) widget page on the [Connect IQ application store](https://apps.garmin.com/en-US/) to download the widget.<br/><img src="images/Venu_Widget_sim.png" width="200" title="Venu 2" style="margin:5px"/><br/>Typically the widget view implements something similar to the glance view, e.g. status, and exists in a widget carousel to allow you to select an application to launch.<br>**Please note that memory in widgets is more limited than applications. This means a large menu definition can crash the widget without the code catching the error.**<br> This version was born out of the application version and from Ver 2.0 shared the same source code repository until Ver 2.8 when they were [separated](https://github.com/house-of-abbey/GarminHomeAssistantWidget) to allow the application version to take advantage of its increase memory availability. |
### Features
The following table lists the differences in functionality between the two. The Widget version is more limited due to memory constraints. As such new features are only being added to the Application.
| Feature | Application | Widget |
|---------|-------------|--------|
| Vibration | Optional setting | Always on |
| "Always on" support | Slow refresh option to reduce batter demand | No available |
| Metric reporting | Fuller, includes: activity, sub-activity, battery, charging, steps, heart rate, floors ascended and descended, respiration rate | Basic, includes: activity, sub-activity, battery only. |
### Source Code Repositories
* [Application](https://github.com/house-of-abbey/GarminHomeAssistant)
* [Widget](https://github.com/house-of-abbey/GarminHomeAssistantWidget)
### Connect IQ Store
* [Application](https://apps.garmin.com/en-US/apps/61c91d28-ec5e-438d-9f83-39e9f45b199d)
* [Widget](https://apps.garmin.com/en-US/apps/559f5174-177f-4f46-b170-f31c7e74dea3)
## Dashboard Definition
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [Home Assistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantage here are:
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [HomeAssistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantages of this are:
1. the file is as public as you make your Home Assistant,
2. the file is editable within Home Assistant via "Studio Code Server", and
1. the file is as public as you make your HomeAssistant,
2. the file is editable within HomeAssistant via "[Studio Code Server](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_vscode)", and
3. the schema is verifiable using [JSON Schema](https://json-schema.org/overview/what-is-jsonschema).
We have used `/config/www/garmin/<something>.json` on our Home Assistant's file system. That equates to a URL of `https://homeassistant.local/local/garmin/<something>.json`.
We have used `/config/www/garmin/<something>.json` on our home brew HomeAssistant's file system. That equates to a URL of `https://homeassistant.local/local/garmin/<something>.json`.
Schema verification is a big part of this design choice. If the application cannot read your menu definition, there's a limited amount of debug it can reasonable provide on a small screen. That responsibility now falls to you and the schema checker for help.
> [!IMPORTANT]
> However [recent reports](https://community.home-assistant.io/t/www-folder-location-for-local-documents/24903/16) suggest this path may no longer work on [Nabu Casa](https://www.nabucasa.com/) and you should use `/homeassistant/www/` instead of `/config/www/`. We are unable to verify this since our free trial of Nabu Casa has expired.
Example schema as shown in the images:
Schema verification is a big part of this design choice. If the application cannot read your menu definition, there's a limited amount of debug it can reasonably provide on a small screen. That responsibility now falls to you and the schema checker for help.
Example schema:
```json
{
@@ -35,7 +80,10 @@ Example schema as shown in the images:
"entity": "script.food_on_table",
"name": "Food is Ready!",
"type": "tap",
"service" : "script.turn_on"
"tap_action": {
"service": "script.turn_on",
"confirm": true
}
},
{
"entity": "light.bedside_light_switch",
@@ -48,7 +96,6 @@ Example schema as shown in the images:
"type": "toggle"
},
{
"entity": "menu.each_lounge_light",
"name": "Each Lounge Light",
"title": "Lounge",
"type": "group",
@@ -84,61 +131,177 @@ Example schema as shown in the images:
"entity": "automation.turn_off_usb_chargers",
"name": "Turn off USBs",
"type": "tap",
"service" : "automation.trigger"
"tap_action": {
"service": "automation.trigger"
}
},
{
"entity": "scene.tv_light",
"name": "TV Lights Scene",
"type": "tap",
"tap_action": {
"service": "scene.turn_on",
"pin": true
}
}
]
}
```
NB. Entity names are not real in case anyone's a hacker ;-).
The example above illustrates how to configure:
* Lights or switches (`toggle`), <img src="images/toggle_icon.png" height="20">
* Enables for automations (`toggle`), <img src="images/toggle_icon.png" height="20">
* Script invocation (`tap`)
* Service invocation, e.g. Scene setting, (`tap`)
* A sub-menu to open (`group`)
* You can also display the status of devices (`info`) which is essentially a `tap` with no action
* All menu items can display the results of evaluating [templates](examples/Templates.md).
The following table indicates how HomeAssistant entity types can map to the Garmin applications menu types. Presently, an automation is the only one that can be either a `tap` or a `toggle`.
| HA Entity Type | Tap | Toggle | Info (status)|
|------------------|:---:|:------:|:------------:|
| Switch | ❌ | ✅ | ✅ |
| Light | ❌ | ✅ | ✅ |
| Automation | ✅ | ✅ | ❌ |
| Script | ✅ | ❌ | ❌ |
| Scene | ✅ | ❌ | ❌ |
| Sensor | ❌ | ❌ | ✅ |
| Binary Sensor | ❌ | ❌ | ✅ |
| Any other entity | ❌ | ❌ | ✅ |
| Any service | ✅ | ❌ | ❌ |
Multiple templates are evaluated in a single HTTP request to update their status. Only the toggle items have the on/off <img src="images/toggle_icon.png" height="20"> icon. NB. All `tap` items must specify a `service` tag in the `tap_action` object (see example below).
You can now specify alternative texts to use instead of "On" and "Off", e.g. "Locked" and "Unlocked" or "Open" and "Closed" through the use of a [template menu item](examples/Templates.md). But wouldn't having locks operated from your watch be a security concern ;-) ?
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure HomeAssistant. With a submenu, there's a difference between `title` and `name`. The `name` goes on the menu item, and the `title` at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning to protect itself.
### Old deprecated format
Version 1.5 brought in a change to the JSON schema so the following old format remains useable but is no longer favoured. The schema now marks it as 'deprecated' to nudge people over.
```json
{
"entity": "scene.tv_light",
"name": "TV Lights Scene",
"type": "tap",
"service": "scene.turn_on"
}
]
}
```
NB. Entity names are not real in case anyone's a hacker.
The above should be replaced by the following:
The example above illustrates how to configure:
```json
{
"entity": "scene.tv_light",
"name": "TV Lights Scene",
"type": "tap",
"tap_action": {
"service": "scene.turn_on"
}
}
```
* Light or switch toggles
* Automation enable toggles
* Script invocation (tap)
* Service invocation, e.g. Scene setting, (tap)
* A sub-menu to open (tap)
This allows the `confirm` and `pin` fields to be accommodated in the `tap_action` along side the `service` tag, and follows the HomeAssistant YAML format more closely.
The example JSON shows an example usage of each of these Home Assistance entity types. Presently, an automation is the only one that can be either a 'tap' or a 'toggle'.
### More Examples
| HA Type | Tap | Toggle |
|------------|:---:|:------:|
| Switch | ❌ | ✅ |
| Light | ❌ | ✅ |
| Automation | ✅ | ✅ |
| Script | ✅ | ❌ |
| Scene | ✅ | ❌ |
* [Switches](examples/Switches.md)
* [Actions](examples/Actions.md)
* [Templates](examples/Templates.md)
NB. All 'tap' items must specify a 'service' tag.
## Editing the JSON file
Possible future extensions might include specifying the alternative texts to use instead of "On" and "Off", e.g. "Locked" and "Unlocked" (but wouldn't having locks operated from your watch be a security concern ;-))
You have options. The first is what we use.
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ The other method listed below do not add this convenience and checking.
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for HomeAssistant. You can then edit your JSON file in place.
3. Locally installed VSCode, or if not installed, try
4. The on-line version at https://vscode.dev/, which works really well.
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure Home Assistant. With a submenu, there's a difference between "title" and "name". The "name" goes on the menu item, and the "title" at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning.
Paste in your JSON (and change the file type to JSON if not saving), it will then verify your file format and schema for you, highlighting any errors for you to fix.
A failure to get the file format right tends to mean that the response to the application errors with `INVALID_HTTP_BODY_IN_NETWORK_RESPONSE` (code of -400). This means the response did not contain JSON, it was probably an error message in plain text that could not be parsed by the Connect IQ API call. See [Toybox.Communications](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) for the list of error code you might be presented with on your device.
There are some cases where the file format may be valid JSON, but invalid against the schema, and the failure to catch this error could cause the application to crash. Whilst we have taken care to manage many issues, there may still be cases that are uncaught.
Make sure you can browse to the URL of your JSON file in a standard web browser to make sure it is accessible.
## API Key Creation
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on Home Assistant.
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on HomeAssistant. You will need a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). This is not obvious to find and is bound to your own HomeAssistant account. Follow the menu sequence: `HA -> User Profile -> "Security" tab -> Long-lived access tokens`. Make sure you save the generated token before dismissing it.
![Long-Lived Access Token](images/Long_Lived_Access_Tokens.png)
Having created that token, before you dismiss the dialogue box with the value you will never see again, copy it somewhere safe. You need to paste this into the Garmin Application's settings.
Having created that token, before you dismiss the dialogue box with the value you will never see again, copy it somewhere safe. You need to paste this into the Garmin Application's settings. You may like to perform this task on your phone so that you can copy and paste it (and message yourself a copy too ;-)).
## API URL
If you are using [Nabu Casa](https://www.nabucasa.com/) then your Cloud API URL can be found by looking up your URL via `HA -> Settings -> HomeAssistant Cloud -> Remote Control -> Nabu Casa URL` and don't forget to add `/api` to the end of the copied string.
![Nabu Casa Remote Control](images/Nabu_Casa_Remote_Control.png)
If you have built your own infrastructure, you really don't need any assistance with the API URL!
## Settings
Unfortunately the Settings dialogue box in the Garmin IQ application "times out" in Android when you go to a different screen (a browser for example). When you go back to the Connect IQ application (select the view again) the settings dialogue box is broken and you have to open the Settings again, so you will need to save the settings every time before you switch applications to avoid losing the information you just put in. We recommend you can use an application like [Microsoft's "Phone Link"](https://apps.microsoft.com/detail/9NMPJ99VJBWV?hl=en-gb&gl=US) that allows you to *copy and paste* between your PC and your phone.
**Please, please, please!** *Copy and paste* your API key and all URLs, do not retype them as they will be wrong.
<img src="images/GarminHomeAssistantSettings.png" width="400" title="Application Settings"/>
1. Paste your API key you've just created into the top field.
2. Add the URL for your Home Assistant API, e.g. `https://<homeassistant>/api`. (No trailing slash `/`` character as one gets appended when creating the URL and you do not want two.)
1. Copy and paste your API key you've just created into the top field.
2. Add the URL for your HomeAssistant API, e.g. `https://<homeassistant>/api`. (No trailing slash `/`` character as one gets appended when creating the URL and you do not want two.)
3. Add the URL of your JSON file, e.g. `https://<homeassistant>/local/garmin/<something>.json`.
You should now have a working application on your watch and be able to operate your Home Assistant devices for as long as your watch is within Bluetooth range of your phone.
You should now have a working application on your watch and be able to operate your HomeAssistant devices for as long as your watch is within Bluetooth range of your phone.
### Changes to the (JSON) Dashboard Definition & Caching
Without caching enabled, when you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition.
You may choose to cache your menu definition on your device in order to reduce the delay in showing the menu (as it saves waiting for an HTTP GET request). If you use this option you need to be aware of how updates to the menu are managed. You may either:
1. **Choose to have the cache cleared.** The toggle option below the cache option allows you to choose to refresh the cache the next time the application starts. Once the cache has been cleared, the application will reset this toggle for you, so you do not need to return to the settings to amend it.
2. **Let the application retrieve the menu after starting and setting up the switch states** (including evaluating [templates](examples/Templates.md)), and then verify you have the latest menu. If a newer menu is retrieved you will be notified via a 'toast' or blue screen for devices without a toast in their API. You will be prompted to restart the application in order to build the menu from this latest menu definition. **This method has proven tricky in older devices with less memory.** Hence it can be turned off to avoid "Out of Memory" crashes. The application tries to protect against crashes by detecting insufficient memory and disabling the option (but note that this may require some tuning). Hence this option is off by default in case it causes a crash and new users are unaware of the potential cause.
**Summary:** The two cache options are therefore distinct, the **first is a manual** forced refresh (the old way). The menu is refreshed on start up and no restart is required. The **second enables automatic checking** after starting and after presenting a usable menu with no extra delay but then any detected changes require a restart.
Whilst it would be a smoother experience, there are no plans to make the menu definition update dynamically recreate the rendered menu items without a restart because:
1. Re-rendering the menu could change the selected item just as you action it.
2. V3.3 proved that older devices are now reaching their memory limits. If you have an old device with limited memory to spare you will probably find the App disables the automatic method for you. If your device crashes with this option turned on, best turn it off manually and let me know via a [Github issue](https://github.com/house-of-abbey/GarminHomeAssistant/issues). This will allow us to fine tune the conditions for insufficient memory. We will then ask you to perform a [small task to retrieve the debug information](https://developer.garmin.com/connect-iq/core-topics/debugging/) we need about memory usage.
3. Restarting is simple for the user and simpler for the code.
### Vibration
The application uses vibration to confirm the action has been requested, which is different to the 'toast' that appears to show the action has been successfully executed. This is enabled by default but may be turned off if you do not desire this behaviour.
### Power Management
The application timeout prevents the HomeAssistant App running on your watch when you have forgotten to close it. It prevents the refreshing of the menu statuses and therefore excessive wear on your battery level. For those users who prefer to keep the application open all the time for continuous use, they can reduce the battery wear by increasing the "poll delay". This inserts a user configurable number of seconds between each round of item update checks, hence reducing the API access activity. This also reduces the responsive of the statuses displayed when HA devices are switched externally, i.e. by another HomeAssistant client, then the watch menu display will not update as quickly. Therefore if you only use the HomeAssistant App briefly now and then, keep this setting at the default 0 seconds. NB. To be clear, all items are updated then a configurable delay is inserted before the next round of all item updates. If your poll delay is greater than zero, then your application timeout should be set to zero, otherwise you will exit the application and negate the value of the poll delay function.
| Application Timeout | Poll Delay | Comment |
|:-------------------:|:----------:|:--------|
| 0 | 0 | Permanently open, poll as fast as possible. This is the simple default, but could drain your battery |
| > 0 | 0 | Temporarily open, poll as fast as possible, responsive and limits battery drain by closing. |
| 0 | > 0 | Permanently open, but poll more gently to save battery. |
| > 0 | > 0 | Temporarily open, poll more gently to save battery, but the application closes before the benefit is realised. Not recommended. |
There is a second timeout value for confirmation views. This is intended for use with more sensitive toggles so that the confirmation view is not left open and forgotten and then confirmed accidentally without you noticing. **We cannot advise you this is safe, be careful what you toggle with the watch application!** _The developers will not be held responsible for any insecurities resulting from using this feature, including any inadvertent code changes that cause the PIN feature to not work._
The confirmation timeout is also used for the maximum time between clicks in the PIN confirmation dialog. The PIN confirmation provides a more secure alternative for toggling security-sensitive actions.
### Text Alignment
There is a toggle setting for "text alignment" that provides finer adjustment for right-to-left languages. Perhaps this could be made automatic based on device language?
### Background Service
The application and widget both include a background service to report your watch's battery level and charging status. You may enable a background service to report the battery level to your HomeAssistant. This is not available over your Bluetooth connection like with other Bluetooth devices as Garmin did not implement it. This no longer requires any setup, and we offer this [trouble shooting](TroubleShooting.md#watch-battery-level-reporting) guide. The last field here is readonly and allows the user to copy & paste the Webhook ID setup by the application when required for this trouble shooting guide.
## Tap Item Response
@@ -146,28 +309,61 @@ Its obvious that a toggle menu item has been triggered as the visible switch cha
<img src="images/SimTapResponse.png" width="400" title="Tap Triggered"/>
The application will display a 'toast' showing Home Assistant's friendly name of the triggered item. The toast will disappear after a short while if not dismissed by the user.
The application will display a 'toast' showing HomeAssistant's friendly name of the triggered item. The toast will disappear after a short while if not dismissed by the user. N.B. There are reports that on the Forerunner 55 device, the toasts do not dissapear without manual intervention. On other devices like the Venu 2 the toast can take 15 seconds to dissappear if not dismissed. Unfortunately, there is no API call to change this behaviour.
## External Device Changes
Home Assistant will inevitably change the state of devices you are also controlling via your Garmin. The Garmin application does not maintain a web socket to listen for changes. Instead it must poll the Home Assistant API with your key. Therefore the application is not that responsive to changes. Instead there will be a delay of multiples of 100 ms per item whose status needs to be checked and amended.
HomeAssistant will inevitably change the state of devices you are also controlling via your Garmin. The Garmin application does not maintain a web socket to listen for changes. Instead it must poll the HomeAssistant API with your key. Therefore the application is not that responsive to changes. Instead there will be a delay of multiples of 100 ms per item whose status needs to be checked and amended.
The per toggle item delay is caused by a queue of responses to web requests filling up a queue and giving a [Communications](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html).`BLE_QUEUE_FULL` response code. For a Venu 2 Garmin watch an API call delay of 600 ms was found to be sustainable (500 ms was still too fast). The code now chains a sequence of updates, so as one finishes it invokes the next item's update. The more items requiring a status update that you pack into your dashboard, the slower each individual item will be updated!
The per toggle item delay is caused by a queue of responses to web requests. The responses fill up a buffer and in early testing we observed [`Communications.BLE_QUEUE_FULL`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) response codes. For a Venu 2 Garmin watch an API call delay of 600 ms was found to be sustainable (500 ms was still too fast). The code now chains a sequence of updates, so as one finishes it invokes the next item's update. **The more items requiring a status update that you pack into your dashboard, the slower each individual item will be updated!**
The thinking here is that the watch application will only ever be open briefly not persistently, so the delay in picking up state changes won't be observed often for any race condition between two controllers.
The thinking here is that the watch application will only ever be open briefly not persistently, so the delay in picking up state changes won't be observed often for any race condition between two controllers. As a consequence of this update mechanism, if you request changes too quickly you will be notified that your device cannot keep up with the rate of API responses and you will have to dismiss the error in order to continue. This is a _feature not a bug_! If the application reduces the rate of "round robin" status update requests it becomes less responsive to external changes.
As a consequence of this update mechanism, if you request changes too quickly you will be notified that your device cannot keep up with the rate of API responses and you will have to dismiss the error in order to continue. The is a _feature not a bug_!
To prevent excessive battery usage, set the application timeout in the settings. This will prevent you from leaving the application open and forgotten when not being used, and the polling mechanism will then cease, saving battery life. Again, the thinking here is that the watch application will only ever be open briefly not persistently, and hence not be a constant source of battery usage unless the [background service](BackgroundService.md) for sending any watch status is used aggressively fast.
## Changes to the (JSON) Dashboard Definition
## Submitting Corrections for Translations
When you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition, but it is not automatic.
Initially all text has been created in English, and a [Python script](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/translate.py) (Google Translate under the hood) has been used to create the first version of all translations. We have been pleased to accept better translations from native language speakers, *thank you*. If you would like to submit improved translations, our preference is you do so via a [Git pull request](https://github.com/house-of-abbey/GarminHomeAssistant/pulls). If you are not comfortable doing this, then just raise an issue and someone will eventually pick the request up.
## Version History
In order to submit a language correction please create an XML file called `corrections.xml` in the same directory as your language containing the corrected text. The format of the XML file follows that of `strings.xml`. As an example here are some corrected French translations found in directory [`resources-fre/strings/corrections.xml`](https://github.com/house-of-abbey/GarminHomeAssistant/tree/main/resources-fre/strings/corrections.xml):
| Version | Comment |
|:-------:|---------|
| 1.0 | Initial release for 26 devices. |
| 1.1 | Updated for 54 more devices, 80 in total. Scene support. Added vibrate acknowledgement for tap-based menu items. Falls back to a custom visual confirmation in the absence of 'toast' and vibrate support. Bug fix for large menus needing status updates. |
| 1.2 | Do not crash on zero items to update. Report unreachable URLs. Verify API URL does not have a trailing slash '/'. Increased HTTP response diagnosis. Reduced minimum API Level required from 3.3.0 to 3.1.0 to allow more device "part numbers" to be satisfied. |
| 1.3 | Tap for scripts was working in emulation but not on some phones. Decision is to make the 'service' field in the JSON compulsory for 'tap' menu items. This is a breaking change, but for many might be a fix for something not working correctly. Improve language support, we can now accept language corrections and prevent the automated translation of strings from clobbering manually refined entries. Thank you to two new contributors. |
| 1.4 | New lean user Interface with thanks to [SomeoneOnEarth](https://github.com/Someone0nEarth) for their contribution which is now the default. If you prefer the old style you can still select it in the settings. The provision of a 'service' tag is now not just heavily suggested by the JSON schema, it is enforced in code. With appologies to anyone suffering a breakage as a result. |
```xml
<strings>
<string id="MenuItemOn">Activé</string>
<string id="MenuItemTap">Clic</string>
<string id="ApiFlood">Appels API trop rapide. Veuillez signaler cette erreur avec les détails de l'appareil.</string>
</strings>
```
The `id` attribute values are taken from the same names used in [`strings.xml`](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/resources-fre/strings/strings.xml). **Not all `id` values need to be specified as missing `id`s will then use automatic translations.** If the existing convention is followed then:
* The Python script will use the corrections in preference to translating, and
* Your pull request will be honoured without comment as we will take your corrections on trust.
## Known Issues
Check the latest unresolved [issues](https://github.com/house-of-abbey/GarminHomeAssistant/issues) on Github. Otherwise the following are persistent issues with no realistic resolution.
1. There are some cases where the file format may be valid JSON, but invalid against the schema, and the failure to catch this error could cause the application to crash. Whilst we have taken care to manage many issues, there may still be cases that are uncaught. Please verify your JSON schema, see the [trouble shooting guide](TroubleShooting.md).
2. On some (old) devices (e.g. Vivoactive 3, Fenix 5s & Edge 520+), the menu does not update correctly to reflect changes in state effected by an external HomeAssistant control. E.g. when the phone application changes the toggle status of a switch, the Garmin application does not reflect that change until the menu is touched or scrolled a little. This is a [known issue](https://forums.garmin.com/developer/connect-iq/i/bug-reports/menu2-doesn-t-allow-live-updates) already reported without a suggested software fix.
3. The iPhone Connect IQ application has a bug in it we cannot be responsible for. Thanks to user [a_smart_hoome](https://community.home-assistant.io/u/a_smart_hoome) who worked the problem with the dropped Internet connection, see his explanation at https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348/61 for details. Please complain to the Connect IQ application developers rather than us!
4. Templates can require significant definition for highly customised text. Just remember, you have the ability to crash the application by creating an excessively long menu definition. Don't be silly.
5. Parameters to tap menu items cannot have their parameter usage verified. If you get this wrong and crash the application, that's your fault not the application's. In this case, start by removing the parameters for the menu item causing the crash, and add them back one at a time until you find your fault. **Please don't give the application a poor review for your bad parameter definition!**
6. We are unable to support Edge 540, Edge 840 and Edge 1050 devices at this time. The simulation of these devices has two unexpected errors when toggling or executing taps. We get both `Communications.NETWORK_RESPONSE_OUT_OF_MEMORY` and `Communications.BLE_QUEUE_FULL` even though the memory usage is about 6% of the available RAM. Based on a lead from user @Petucky, both devices are being re-enabled as testing on a real Edge 840 device has proven successful, however we remain unable to support either devices until the simulator is fixed.
7. We are unable to support HTTP natively (without the workaround specified earlier). This is a limitation placed upon us by the Connect IQ API which for security reasons refuses to work with HTTP requests. There is nothing developers can do about this limitation. See the [Trouble Shooting](TroubleShooting.md#do-it-yourself-setup) guide for an example setup. We would appreciate it if users did not leave poor reviews for the lack of this feature which is beyond our control to fix.
8. There is a [bug in Garmin Express so that when you use that software to amend the application's settings](https://github.com/house-of-abbey/GarminHomeAssistant/issues/194), the page appears in a random language not of your choice. I would like to thank user [heviiguy](https://github.com/heviiguy) for his work researching the issue, leading to these references that indicate the authors of Garmin HomeAssistant cannot resolve this issue as its a bug in Garmin Express that Garmin are refusing to believe exists! See these pages for details:
- [Garmin Express - Wrong Language](https://forums.garmin.com/developer/connect-iq/i/bug-reports/garmin-express---wrong-language)
- [Incorrect language displayed for custom data fields](https://forums.garmin.com/developer/connect-iq/f/discussion/388137/incorrect-language-displayed-for-custom-data-fields)
9. When using Wi-Fi or LTE to toggle a light, the `toggle` will fail when the default or current state of the application's menu does not match the state of the light. The same applies to a cover or other thing that can be toggled. This is because the application is unable to initialise the menu with the current state without Bluetooth. Hence the Wi-Fi/LTE functionality is best used with `tap` items only.
# Authors & Contributors
For an up to date list of all authors and contributors, please check the [contributor's page](https://github.com/house-of-abbey/GarminHomeAssistant/graphs/contributors). Thank you all for improving this application.

350
TroubleShooting.md Normal file
View File

@@ -0,0 +1,350 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# Troubleshooting Guides
## Check your JSON Schema
Before [raising an issue](https://github.com/house-of-abbey/GarminHomeAssistant/issues) about a possible bug, _please, please_ check your JSON is compliant with both the JSON format and our schema. To do this you have options. The first is what we use.
1. **Best!** Use the GarminHomeAssistant [Web-based Editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) which includes `entity` and `service` name completion and validation by fetching data from your own HomeAssistant instance. _Pretty nifty eh?_ The other methods listed below do not add this convenience and checking.
2. Use the [Studio Code Server](https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863) addon for HomeAssistant. You can then edit your JSON file in place.
3. Locally installed VSCode, or if not installed, try
4. The on-line version at https://vscode.dev/, which works really well. Paste in your JSON (and change the file type to JSON if not saving), it will then verify your file format and schema for you, highlighting any errors for you to fix.
A failure to get the file format right tends to mean that the response to the application errors with `INVALID_HTTP_BODY_IN_NETWORK_RESPONSE` (code of -400). This means the response did not contain JSON, it was probably an error message in plain text that could not be parsed by the Connect IQ API call. See [Toybox.Communications](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) for the list of error code you might be presented with on your device.
There are some cases where the file format may be valid JSON, but invalid against the schema, and the failure to catch this error could cause the application to crash. Whilst we have taken care to manage many issues, there may still be cases that are uncaught.
Make sure you can browse to the URL of your JSON file in a standard web browser to make sure it is accessible.
## Watch Menu and API
With either of the following setups, there are inevitably some problems along the way. GarminHomeAssistant is careful to rely only on having working URLs. Getting them working is the user's responsibility. However, we have developed some fault finding tools.
### Nabu Casa Setup
You can purchase cloud-based access to your HomeAssistant from [Nabu Casa](https://www.nabucasa.com/), and then your setup will look something like this.
![Nabu Casa Setup](images/nabu_casa_setup.png)
- Your API URL would be of the format `https://<id>.ui.nabu.casa/api`
- Your Garmin Watch Menu would be of the format Menu: `https://<id>.ui.nabu.casa/local/garmin/menu.json`
Where `<id>` is your personal Nabu Casa account ID.
### Do It Yourself Setup
Before Nabu Casa, or if you wanted to manage your own infrastructure, you might have something like the following:
![Do It Yourself Setup](images/do_it_yourself_setup.png)
Now you have to manage:
- Dynamic DNS
- Public access via router port forwarding
- Security via HTTPS and URL forwarding
- Certificates for HTTPS via say [Let's Encrypt](https://letsencrypt.org/) (an Nginx proxy web server helps here)
- Proxy allow list in `configuration.yaml` as follows:
```yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.xx.xx # Server IP - AMEND THIS
- 172.30.32.0/23 # Docker IPs for NGINX
- 172.30.33.0/24 # SSL proxy server
- 172.16.0.0/12 #
```
### Menu Configuration URL
This URL is very simple, you should be able to read the contents returned in a standard web browser.
![Browser Address Bar URL](images/menu_url.png)
(Other browsers are available...)
The browser page should then display the JSON string you saved to the file on the web server. The point is this is a simple HTTP GET request with no bells and whistles.
The menu configuration can be hosted anywhere, it does not have to be on the HomeAssistant web server. Just as long as it is reachable from your phone from which you Bluetooth connect to your watch, or you watch if it has direct Internet access.
### HomeAssistant API URL
This is slightly trickier owning to the need to supply the API key. Here are three ways you can test your API URL is correctly configured. If successful, each of these should produce a JSON string output looking like:
```json
{ "message": "API running." }
```
#### API: Linux, MacOS, UNIX, Cygwin etc
Save the following as a file called `api_test.sh`, edit to include your personal values for the variables, `chmod +x api_test.sh` and then execute with `./api_test.sh`.
```shell
#!/bin/bash
API_KEY="<Your API key>"
URL="https://<Your Domain>/api"
curl -s -X GET \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
${URL}/
```
#### API: MS Windows
Save the following as a file called `api_test.cmd`, edit to include your personal values for the variables and then double click.
```cmd
@echo off
set API_KEY=<Your API key>
set URL=https://<Your Domain>/api
curl -s -X GET ^
-H "Authorization: Bearer %API_KEY%" ^
-H "Content-Type: application/json" ^
%URL%/
echo.
pause
```
![API Test MS-DOS Output](images/api_test_dos_output.png)
#### API: On-line
There's an online way of testing the API URL too, thanks to [REQBIN](https://reqbin.com/post-online). This has less setup and it can be saved if you log into the web site.
![API Test REQBIN](images/api_test_online.png)
#### SSL Certificate Chain
With thanks to [@ziceva](https://github.com/ziceva) for solving this problem. The symptoms are:
1. Using an API URL with SSL (HTTPS), the [web-based editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) running in a browser on the same phone running Garmin Connect works well.
2. The exact same configuration is set in the Garmin HomeAssistant application.
3. The Garmin HomeAssistant application reports:
```
API: not available
Menu: not available
```
**Solution: Make sure you use a _full chain_ certificate in your HTTPS proxy as some watches might be unable to validate the site certificate alone.**
Most web browsers and OSes probably have the latest Certificate Authorities (CAs) trusted out-of-the-box and so they do not need the full chain to verify the certificates. Garmin watches may not have the latest CAs and that is why the Troubleshooting web page does not catch this problem. E.g. It turns out some Garmin watches do not have the LetsEncrypt CA marked as trusted.
To verify if you have this issue you can use a tool like [SSL Shoppers's SSL Checker](https://www.sslshopper.com/ssl-checker.html), which will catch this issue. The following two screen captures illustrate the difference between partial and full chain certificates respectively.
##### Partial Chain Certificate
![Partial Chain Certificate](images/HTTPS_partial_chain.png)
##### Full Chain Certificate
![Full Chain Certificate](images/HTTPS_full_chain.png)
### Top Problems
1. Failure to copy & paste keys and URLs leading to minor and hard to see errors in strings, even with protestations they are the same! (No they weren't...)
2. Accessibility of URLs, hence the above help guide.
## Watch Battery Level Reporting
For this you will need to have already got the main application or widget working with a menu in order to prove that the API calls are successful. We have proven this works with both our home brew infrastructure as well as Nabu Casa. Now with a script similar to one of the following two, you should be able to fake the watch API call and verify receipt by HomeAssistant.
#### Battery: Linux, MacOS, UNIX, Cygwin etc
Assume a file called: `send_battery.bash`
```shell
#!/bin/bash
#
# battery% charging {0|1}
# ./send_battery.bash 19 0
#
WEBHOOK_ID="<Your Webhook ID>"
URL="https://<Your Domain>/api"
level=${1:-50}
is_charging=${2:-0}
echo "Battery Level = ${level}"
if [ ${is_charging} -eq 1 ]; then
is_charging=true
else
is_charging=false
fi
echo "Battery Charging? = ${is_charging}"
echo ""
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{ "type": "update_sensor_states", "data": [ {"state": '${level}',"type": "sensor","unique_id": "battery_level"}, {"state": '${is_charging}',"type": "binary_sensor","unique_id": "battery_is_charging"} ] }' \
${URL}/webhook/${WEBHOOK_ID}
```
Execute:
```
$ ./send_battery.bash 45 1
```
The output looks like this:
```
Battery Level = 45
Battery Charging? = true
{
"battery_level": {
"success": true
},
"battery_is_charging": {
"success": true
}
}
```
NB. The device ID can be any string for the purposes of this testing. Your Garmin device will choose this ID for you when it submits the readings.
#### Battery: MS Windows
Assume a file called: `home_assistant_battery_level.cmd`
```cmd
@echo off
rem battery% charging {0|1}
rem ./home_assistant_battery_level 19 0
rem
set WEBHOOK_ID=<Your Webhook ID>
set URL=https://<Your Domain>/api
if [%1] == [] (
set level=50
) else (
set level=%1
)
if [%1] == [] (
set is_charging=0
) else (
set is_charging=%2
)
echo "Battery Level = %level%"
if "%is_charging%"=="1" (
set is_charging=true
) else (
set is_charging=false
)
echo "Battery Charging? = %is_charging%"
echo.
curl -s -X POST ^
-H "Content-Type: application/json" ^
-d "{ \"type\": \"update_sensor_states\", \"data\": [ {\"state\": %level%,\"type\": \"sensor\",\"unique_id\": \"battery_level\"}, {\"state\": %is_charging%,\"type\": \"binary_sensor\",\"unique_id\": \"battery_is_charging\"} ] }" ^
%URL%/webhook/%WEBHOOK_ID%
echo.
pause
```
Execute:
```
> home_assistant_battery_level.cmd 41 1
```
The output looks like this:
```
"Battery Level = 41"
"Battery Charging? = true"
{
"battery_level": {
"success": true
},
"battery_is_charging": {
"success": true
}
}
Press any key to continue . . .
```
NB. The device ID can be any string for the purposes of this testing. Your Garmin device will choose this ID for you when it submits the readings.
#### Battery: On-line
There's an online way of testing the API URL too, thanks to [REQBIN](https://reqbin.com/post-online). This has less setup and it can be saved if you log into the web site.
URL for copy & paste:
```
https://<Your Domain>/api/webhook/<Your Webhook ID>
```
![API Test REQBIN](images/api_test_online_battery.png)
JSON for copy & paste:
```json
{
"type": "update_sensor_states",
"data": [
{
"state": 40,
"type": "sensor",
"unique_id": "battery_level"
},
{
"state": true,
"type": "binary_sensor",
"unique_id": "battery_is_charging"
}
]
}
```
# Failed API Calls
![No JSON](images/NoJson.png)
When the application persists in reporting "No JSON returned from HTTP request." this might be due to a mismatch between the Webhook ID and the device settings on the HomeAssistant server. We have discovered that the Webhook ID is required for HomeAssistant API calls with templates in order to work in a non-privileged account. The application options include the ability to clear the Webhook ID in the application forcing a new one to be set up. This should prevent the above error being shown on startup.
Look for this option in the application settings:
![Nabu Casa Setup](images/delete_webhook_id.png)
# Debug Logs
As a desperate measure to assist with debugging the HomeAssistant Application, you might be asked to send the authors a debug log.
![How to find the debug log file](images/debug_log_location.png)
The figure above shows how to find the file on Windows by attaching your watch by USB cable. Inside the `CIQ_LOG.YML` file there are often multiple entries, each looking like this:
```
Error: Unexpected Type Error
Details: 'Failed invoking <symbol>'
Time: 2024-08-30T12:00:25Z
Part-Number: 006-B3703-00
Firmware-Version: '19.05'
Language-Code: eng
ConnectIQ-Version: 4.2.4
Store-Id: 61c91d28-ec5e-438d-9f83-39e9f45b199d
Store-Version: 30
Filename: DCRL0437
Appname: HomeAssistant
Stack:
- pc: 0x10003b5e
```
The only useful information we can glean from this log is the first line, `Error: Unexpected Type Error`. There is no useful mapping to a line of code unless someone can explain to us how to use the `pc` line. Being able to send us the error type does serve as a clue.
More on [debugging Monkey C applications](https://developer.garmin.com/connect-iq/core-topics/debugging/#appcrashes). The filenames and line numbers must only be present for deployment of code instrumented for debug.

43
Wi-Fi.md Normal file
View File

@@ -0,0 +1,43 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Glance](examples/Glance.md) | [Background Service](BackgroundService.md) | [Wi-Fi](Wi-Fi.md) | [HTTP Headers](HTTP_Headers.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# Wi-Fi & LTE
Many watches now include the ability to synchronise data over Wi-Fi or event LTE in addition to Bluetooth. This gives users of this application the expectation that they should be able to operate HomeAssistant devices from their watch without Bluetooth and hence their phone (that they left out of contact distance). The whole point of Bluetooth after all is that it is [low power](https://en.wikipedia.org/wiki/Bluetooth#Uses). Using Wi-Fi and LTE are power hungry and therefore not something that can be left on continuously in a small device. The watch function that uses Wi-Fi & LTE is the ability to 'synchronise', e.g. activity data (FIT files) and application updates. This function then has a limited period of time for which radio is active. Neither Wi-Fi nor LTE are "always on" like Bluetooth.
With version 3.0 onwards the application now includes the ability to temporarily turn on Wi-Fi or LTE in order to perform a task on the watch. To do this, the "synchronise" function of the Connect IQ SDK has been cleverly hijacked. This appears to be a highly sought after solution from several users as **it allows the watch to operate when out of range of the associated phone**.
## Limits of Use
1. An API request issued over Wi-Fi requires the watch to open up an IP connection to your Wi-Fi access point. This means setting up a secure channel with WPA and being allocated an IP address. Establishing the communication channel takes a short while. _You will see that this adds a noticeable delay to usability._
2. **The Wi-Fi/LTE functionality can only be used when the menu is already cached.** _The watch will not perform an HTTPS GET request to retrieve the JSON menu file_. Therefore, to enable the Wifi/LTE functionality in the application settings, you must enable caching first.
3. The menu item statuses will not be set correctly. Instead you will be warned about the lack of connectivity by a 'toast', i.e. message partially occupying the top of the screen temporarily. Fetching the menu item statuses, including rendered templates, requires its own API call, hence this not performed.
4. Remember that you need to be within range of your watch's configured Wi-Fi access point to utilize this functionality. If supported by your device, LTE offers a longer range, but network charges may apply.
5. On some Garmin devices, the HTTPS handshake is performed using **TLS 1.2**. If your server or proxy enforces a higher minimum (e.g., TLS 1.3), you will encounter an SSL handshake error with the message:
```
HTTP request returned error code = 0
```
This limitation only affects **Wi-Fi/LTE connections**. When connected over **Bluetooth**, the watch routes requests through the paired phone, which handles the TLS handshake and supports newer TLS versions (such as 1.3) without issue.
To fix this, lower the minimum TLS setting to allow TLS 1.2. For example, if you are using **Cloudflare Tunneling**, go to:
`SSL/TLS → Edge Certificates → Minimum TLS Version`
and set it to **at most TLS 1.2**. _Reducing below TLS 1.2 is not recommended due to security risks._
## Video
This video using will hopefully make it obvious how slow it is to use the Wi-Fi option and illustrate the cautionary notes above.
https://github.com/user-attachments/assets/269981e9-12dc-44f2-a28f-b8e844b2b2f8
### Please Note
We emphasize that the Wi-Fi/LTE functionality should be viewed as a 'last resort' method for executing tasks when your phone is not available. It is not recommended as a continuous mode of operation.
## Credits
With thanks to Vincent, [@vincentezw](https://github.com/vincentezw) for contributing this solution, and to Ali Alaei, [@aalaei](https://github.com/aalaei) for the finer details on TLS.

3
_config.yml Normal file
View File

@@ -0,0 +1,3 @@
exclude:
- examples
- source

121
compile_sim.cmd Normal file
View File

@@ -0,0 +1,121 @@
@echo off
rem -----------------------------------------------------------------------------------
rem
rem Distributed under MIT Licence
rem See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
rem
rem -----------------------------------------------------------------------------------
rem
rem GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
rem tested on a Venu 2 device. The source code is provided at:
rem https://github.com/house-of-abbey/GarminHomeAssistant.
rem
rem J D Abbey & P A Abbey, 28 December 2022
rem
rem For use when VS Code is misbehaving and failing to recompile before starting a simulation.
rem
rem Reference:
rem * Using Monkey C from the Command Line
rem https://developer.garmin.com/connect-iq/reference-guides/monkey-c-command-line-setup/
rem
rem -----------------------------------------------------------------------------------
rem Check this path is correct for your Java installation
set JAVA_PATH=C:\Program Files\Java\jdk-22\bin
rem SDK_PATH should work for all users
set /p SDK_PATH=<"%USERPROFILE%\AppData\Roaming\Garmin\ConnectIQ\current-sdk.cfg"
set SDK_PATH=%SDK_PATH:~0,-1%\bin
rem Assume we can create and use this directory
set DEST=bin
rem Device for simulation
set DEVICE=venu2
set JUNGLE=monkey.jungle
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-d <arg>]
rem [--debug-log-level <arg>] [--debug-log-output <arg>]
rem [--disable-api-has-check-removal] [--disable-v2-opcodes] [-e]
rem [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>]
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-t]
rem [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
rem -a,--apidb <arg> API import file
rem -b,--apimir <arg> API MIR file
rem --build-stats <arg> Print build stats [0=basic]
rem -d,--device <arg> Target device
rem --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic,
rem 2=intermediate, 3=verbose]
rem --debug-log-output <arg> Output log zip file
rem --disable-api-has-check-removalDo not optimize out API has checks
rem --disable-v2-opcodes Do not use the v2 opcodes
rem -e,--package-app Create an application package.
rem --Eno-invalid-symbol Do not error when a symbol is found to be
rem invalid
rem -f,--jungles <arg> Jungle files
rem -g,--debug Print debug output
rem -h,--help Prints help information
rem -i,--import-dbg <arg> Import api.debug.xml
rem -k,--profile Enable profiling support
rem -l,--typecheck <arg> Type check [0=off, 1=gradual, 2=informative,
rem 3=strict]
rem -m,--manifest <arg> Manifest file (deprecated)
rem --no-gen-styles Do not generate Rez.Styles module
rem -o,--output <arg> Output file to create
rem -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast
rem optimizations, 3=slow optimizations]
rem [p=optimize performance, z=optimize code
rem space]
rem -p,--project-info <arg> projectInfo.xml file to use when compiling
rem -r,--release Strip debug information
rem -t,--unit-test Enables compilation of unit tests
rem -u,--devices <arg> devices.xml file to use when compiling
rem (deprecated)
rem -v,--version Prints the compiler version
rem -w,--warn Show compiler warnings
rem -x,--excludes <arg> Add annotations to the exclude list
rem (deprecated)
rem -y,--private-key <arg> Private key to sign builds with
rem -z,--rez <arg> Resource files (deprecated)
title Compiling for %DEVICE%
rem Batch file's directory where the source code is
set SRC=%~dp0
rem drop last character '\'
set SRC=%SRC:~0,-1%
if exist %DEST% (
rmdir /s /q %DEST%
)
rem The above may not successfully delete the directory if there are locked files
if not exist %DEST% (
mkdir %DEST%
)
echo.
echo Starting compilation for simulation on '%DEVICE%'.
echo.
rem call %SDK_PATH%\connectiq.bat
start "Simulator" "%SDK_PATH%\simulator.exe"
rem Compile PRG for a single device for side loading
"%JAVA_PATH%\java.exe" ^
-Xms1g ^
-Dfile.encoding=UTF-8 ^
-Dapple.awt.UIElement=true ^
-jar %SDK_PATH%\monkeybrains.jar ^
--output %SRC%\bin\HomeAssistant.prg ^
--jungles %SRC%\%JUNGLE% ^
--private-key %SRC%\..\developer_key ^
--device %DEVICE%_sim ^
--warn
rem --release
if %ERRORLEVEL% equ 0 (
%SDK_PATH%\monkeydo.bat %SRC%\bin\HomeAssistant.prg %DEVICE%
) else (
rem Wait to see errors
pause
)

View File

@@ -2,58 +2,336 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"title": { "type": "string" },
"items": { "$ref": "#/$defs/items" },
"required": ["title", "items"],
"additionalProperties": false
"$schema": {
"type": "string",
"description": "The schema will prevent JSON file errors."
},
"title": {
"type": "string",
"description": "Top level menu title"
},
"glance": {
"$ref": "#/$defs/glance"
},
"items": {
"$ref": "#/$defs/items"
}
},
"required": ["title", "items"],
"additionalProperties": false,
"$defs": {
"toggle": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "type": "string" },
"type": { "const": "toggle" }
"entity": {
"$ref": "#/$defs/entity"
},
"name": {
"$ref": "#/$defs/name"
},
"type": {
"$ref": "#/$defs/type",
"const": "toggle"
},
"content": {
"$ref": "#/$defs/content"
},
"tap_action": {
"type": "object",
"properties": {
"confirm": {
"$ref": "#/$defs/confirm"
},
"pin": {
"$ref": "#/$defs/pin"
}
},
"additionalProperties": false
},
"enabled": {
"$ref": "#/$defs/enabled"
},
"exit": {
"$ref": "#/$defs/exit"
}
},
"required": ["entity", "name", "type"],
"additionalProperties": false
},
"template": {
"oneOf": [
{
"type": "object",
"properties": {
"entity": {
"$ref": "#/$defs/entity",
"deprecated": true,
"title": "Schema change:",
"description": "Use 'tap_action' instead to mirror Home Assistant."
},
"name": {
"$ref": "#/$defs/name"
},
"content": {
"$ref": "#/$defs/content"
},
"type": {
"$ref": "#/$defs/type",
"const": "template",
"deprecated": true,
"title": "Schema change:",
"description": "Use 'info' or 'tap' instead."
},
"enabled": {
"$ref": "#/$defs/enabled"
}
},
"required": ["name", "content", "type"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"entity": {
"$ref": "#/$defs/entity"
},
"name": {
"$ref": "#/$defs/name"
},
"content": {
"$ref": "#/$defs/content"
},
"type": {
"$ref": "#/$defs/type",
"const": "template",
"deprecated": true,
"title": "Schema change:",
"description": "Use 'info' or 'tap' instead."
},
"tap_action": {
"$ref": "#/$defs/tap_action"
},
"enabled": {
"$ref": "#/$defs/enabled"
},
"exit": {
"$ref": "#/$defs/exit"
}
},
"required": ["name", "content", "type", "tap_action"],
"additionalProperties": false
}
]
},
"info": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/name"
},
"content": {
"$ref": "#/$defs/content"
},
"type": {
"$ref": "#/$defs/type",
"const": "info"
},
"enabled": {
"$ref": "#/$defs/enabled"
}
},
"required": ["name", "content", "type"],
"additionalProperties": false
},
"tap": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "type": "string" },
"type": { "const": "tap" },
"service": { "$ref": "#/$defs/entity" }
"entity": {
"$ref": "#/$defs/entity"
},
"required": ["entity", "name", "type", "service"],
"name": {
"$ref": "#/$defs/name"
},
"type": {
"$ref": "#/$defs/type",
"const": "tap"
},
"content": {
"$ref": "#/$defs/content"
},
"service": {
"$ref": "#/$defs/entity",
"deprecated": true,
"title": "Schema change:",
"description": "Use 'tap_action' instead to mirror Home Assistant."
},
"tap_action": {
"$ref": "#/$defs/tap_action"
},
"enabled": {
"$ref": "#/$defs/enabled"
},
"exit": {
"$ref": "#/$defs/exit"
}
},
"required": ["name", "type"],
"additionalProperties": false
},
"menu": {
"group": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "type": "string" },
"title": { "type": "string" },
"type": { "const": "group" },
"items": { "$ref": "#/$defs/items" }
"entity": {
"$ref": "#/$defs/entity",
"type": "string",
"deprecated": true,
"title": "Schema change:",
"description": "'entity' is no longer necessary and should now be removed."
},
"required": ["entity", "name", "title", "type", "items"],
"name": {
"title": "Menu item's familiar name.",
"type": "string"
},
"title": {
"title": "Sub menu's title once displayed.",
"type": "string"
},
"type": {
"$ref": "#/$defs/type",
"const": "group"
},
"content": {
"$ref": "#/$defs/content"
},
"items": {
"$ref": "#/$defs/items"
},
"enabled": {
"$ref": "#/$defs/enabled"
}
},
"required": ["name", "title", "type", "items"],
"additionalProperties": false
},
"type": {
"title": "Menu item type",
"description": "One of 'info', 'tap', 'toggle' or 'group'."
},
"items": {
"type": "array",
"items": {
"oneOf": [
{ "$ref": "#/$defs/toggle" },
{ "$ref": "#/$defs/tap" },
{ "$ref": "#/$defs/menu" }
{
"$ref": "#/$defs/toggle"
},
{
"$ref": "#/$defs/template"
},
{
"$ref": "#/$defs/tap"
},
{
"$ref": "#/$defs/info"
},
{
"$ref": "#/$defs/group"
}
]
}
},
"name": {
"title": "Your familiar name to display in the menu item",
"type": "string"
},
"entity": {
"type": "string",
"title": "Home Assistant entity name",
"pattern": "^[^.]+\\.[^.]+$"
},
"service": {
"type": "string",
"title": "Home Assistant service name",
"pattern": "^[^.]+\\.[^.]+$"
},
"tap_action": {
"type": "object",
"title": "Action",
"description": "'confirm' field is optional.",
"properties": {
"service": {
"$ref": "#/$defs/service"
},
"confirm": {
"$ref": "#/$defs/confirm"
},
"pin": {
"$ref": "#/$defs/pin"
},
"data": {
"type": "object",
"title": "Your services's parameters",
"description": "The object containing the parameters and their values to be passed to the entity. No schema checking can be done here, you are on your own! On application crash, remove the parameters."
}
},
"required": ["service"]
},
"content": {
"title": "Home Assistant Template",
"description": "Jinja2 template defining the text to display. Must be included in an 'info'. Optional in a 'toggle', 'tap' and 'group'. Special characters may not render in the glance context.",
"type": "string"
},
"confirm": {
"type": "boolean",
"default": false,
"title": "Confirmation",
"description": "Optional confirmation of the action before execution as a precaution."
},
"pin": {
"type": "boolean",
"default": false,
"title": "PIN Confirmation",
"description": "Optional PIN confirmation of the action before execution as a precaution. Has precedence over 'confirm': true if both are set."
},
"glance": {
"type": "object",
"title": "Glance customisation",
"oneOf": [
{
"properties": {
"type": {
"title": "Glance type",
"description": "One of 'info' or 'status'. 'info' renders the template specified in the 'content' field inside the glance view. 'status' reverts to the default glance view and ignores the 'content' field. This allows for disabling the template temporarily.",
"const": "info"
},
"content": {
"$ref": "#/$defs/content"
}
},
"required": ["type", "content"]
},
{
"properties": {
"type": {
"title": "Glance type",
"description": "One of 'info' or 'status'.",
"const": "status"
}
},
"required": ["type"]
}
]
},
"enabled": {
"type": "boolean",
"default": true,
"title": "Enable the menu item",
"description": "Typically used to temporarily disable a menu item, e.g. for seasonal variations. Enabled (true) by default."
},
"exit": {
"type": "boolean",
"default": false,
"title": "Exit on selection",
"description": "Choose to exit the application after this item has been selected. Disabled (false) by default. N.B. Only actionable menu items can have this field added."
}
}
}

110
examples/Actions.md Normal file
View File

@@ -0,0 +1,110 @@
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Actions
A simple example using a scene as a `tap` menu item.
```json
{
"entity": "scene.telly_watching",
"name": "Telly Scene",
"type": "tap",
"tap_action": {
"service": "scene.turn_on"
}
},
```
Any menu item with an action (`tap`, `template`, or `toggle`), may have a confirmation view added. For consistency this is always done via the `tap_action` JSON object, even though for a `toggle` menu item there will only ever be a single field inside. For the `toggle` menu item, the confirmation is presented on both `on` and `off` directions. There is no option for asymmetry, i.e. only in one direction.
```json
"tap_action": {
"confirm": true
}
```
<img src="../images/confirmation_view.png" width="200" title="Confirmation View"/>
For example:
```json
{
"entity": "switch.garage_door",
"name": "Garage Door",
"type": "toggle",
"tap_action": {
"confirm": true
}
}
```
**The authors do not advise the use of this application for security sensitive devices. But we suspect users are taking that risk anyway, hence a PIN confirmation is provided that can be used for additional menu item security.**
This can be enabled by setting the `pin` field in the `tap_action`. The `pin` field overrides `confirm`. Explicitly setting `confirm` is not necessary.
The 4-digit PIN is set globally for all actions in the app settings in Connect IQ.
```json
"tap_action": {
"pin": true
}
```
When entering an invalid PIN for the fifth time within 2 minutes, the PIN dialog will be locked for all actions for the next 10 minutes. Entering a valid PIN will always reset the failure counter.
<img src="../images/pin_view.png" width="200" title="Confirmation View"/>
Note that for notify events, you _must_ not supply an `entity_id` or the API call will fail. There are other examples too.
```json
{
"name": "Message",
"type": "tap",
"tap_action": {
"service": "notify.mobile_app_on_phone",
"data": {
"title": "This is a title",
"message": "This is the message"
},
"confirm": true
}
}
```
> [!IMPORTANT]
> Be careful with the value of the `service` field.
Note that the `service` field will need to be a locally custom `script.<something>` as soon as any `data` fields are populated and not something more generic like `script.turn_on`. If the `service` field is wrong, the application will fail with a [`Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) error in the response from your HomeAssistant and show the error message as _"No JSON returned from HTTP request"_ on your device. In the [web-based editor](https://house-of-abbey.github.io/GarminHomeAssistant/web/) you can use the standard developer tools to observe an `HTTP 400` error which the application does not see. Here we are limited by the [Garmin Connect IQ](https://developer.garmin.com/connect-iq/overview/) software development kit (SDK). We do not have enough information at the point of execution in the application to determine the cause of the error. Nor is there an immediately obvious way of identifying this issue using the JSON schema checks.
## Exit on Tap
You can choose individual items that will quit after they have completed their action.
```json
{
"entity": "automation.turn_off_stuff",
"name": "Turn off Stuff",
"type": "tap",
"tap_action": {
"service": "automation.trigger"
},
"exit": true
}
```
## Disable Menu Item
If you would like to temporarily disable an item in your menu, e.g. for seasonal reasons like not needing to turn on the heating in summer, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
```json
{
"entity": "automation.turn_off_stuff",
"name": "Turn off Stuff",
"type": "tap",
"tap_action": {
"service": "automation.trigger"
},
"enabled": false
}
```

80
examples/Glance.md Normal file
View File

@@ -0,0 +1,80 @@
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Glance
Since [version 2.30](../History.md), it is possible to ovverride the text displayed on the Glance view. This page explains how to customise the text.
## Default View
The default view has always been to display the status of the menu and API availability to indicate if there's a problem. This view has now been updated to be more colourful.
<img src="../images/Venu2_glance_default.png" width="200" title="Venu 2 Default Glance"/>
When either the API or the menu file is inaccessible, the fields will turn red.
## Customised View
In order to customise the Glance view you need to add a `glance` field to the top level of the JSON menu file as illustrated here:
```json
{
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
"title": "Home",
"glance": {
"type": "info",
"content": "Text: {% .. %}"
},
"items": [...]
}
```
For example:
<img src="../images/Venu2_glance_custom.png" width="200" title="Venu 2 Customised Glance"/>
```json
{
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
"glance": {
"type": "info",
"content": "Solar Battery: {{ states('sensor.battery_capacity_charge') }}%"
},
:
}
```
You may make this as complicated as you like! But you have limited space and only ASCII text characters. **It is best to turn on menu caching in order to speed up the display of the template**. The display is then nearly instantaneous.
The default view will persist showing until the errors are resolved. In order to extract the custom glance template both the menu and the API are required. So it is logical that the two tests must pass first. The exception here is if the menu is cached, in which case only the API needs to pass.
> [!IMPORTANT]
> Sadly what you cannot do is use special characters like: 🌞🔋⛅🪫. Whilst these do display in menu items, they do not seem to work on the Glance view. We really like them, so have tried but failed. Only ASCII text appears to be supported by the Garmin Connect IQ SDK's Glance View. This is not something we have any control over, please do not request this to be "fixed".
It is possible to revert to the default glance content without deleting the template by changing the `type` to `status`.
```json
{
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
"title": "Home",
"glance": {
"type": "status",
"content": "Text: {% .. %}"
},
"items": [...]
}
```
So the glance view object has a `type` field with two possible values: `info` and `status`. When the type is `status` the `content` field is not required.
## Displayed Errors
The following shows the default glance when the menu file is not available at the specified URL.
<img src="../images/Venu2_glance_no_menu.png" width="200" title="Venu 2 Glance showing errors"/>
Once the custom glance template has been retrieved and evaluated the display will change. Should the connectivity to your Home Assistant then be lost, e.g. you move out of range of your phone, the glance reflects this in the colour of the residual two rectangles. The top one remains an indicator for the API, and the bottom rectangle remains an indicator for the menu availability, reflecting the original placement in the default glance view that has now been replaced.
<img src="../images/Venu2_glance_no_bt.png" width="200" title="Venu 2 Glance showing lost connectivity"/>

136
examples/Switches.md Normal file
View File

@@ -0,0 +1,136 @@
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Switches
This is the simplest form:
```json
{
"entity": "light.bedside_light_switch",
"name": "Bedroom Light",
"type": "toggle"
},
```
And with an optional confirmation:
```json
{
"entity": "light.exterior",
"name": "Exterior Lights",
"type": "toggle",
"tap_action": {
"confirm": true
}
}
```
or an optional PIN confirmation:
```json
{
"entity": "light.exterior",
"name": "Exterior Lights",
"type": "toggle",
"tap_action": {
"pin": true
}
}
```
To support a non-standard light, switch, or automation as a toggle menu item you may like to define a custom switch. In order to facilitate custom switches at this time, you must create a template switch in HomeAssistant.
```yaml
switch:
- platform: template
switches:
<switch-name>:
friendly_name: <name>
value_template: <value>
turn_on:
service: <service>
data:
entity_id: <entity>
<attribute>: <value>
turn_off:
service: <service>
data:
entity_id: <entity>
<attribute>: <value>
```
Then you can use the following in your config:
```json
{
"entity": "switch.<switch-name>",
"name": "<name>",
"type": "toggle"
}
```
And you can optionally include a template to reflect some status. See [Templates](Templates.md) for details on hwo to use this JSON field.
```json
{
"entity": "switch.<switch-name>",
"name": "<name>",
"type": "toggle",
"content": "..."
}
```
## Example - Covers
```yaml
switch:
- platform: template
switches:
cover:
friendly_name: Cover
value_template: "{{ is_state('cover.cover', 'open') }}"
turn_on:
service: cover.open_cover
data:
entity_id: cover.cover
turn_off:
service: cover.close_cover
data:
entity_id: cover.cover
```
Then you can use the following in your config:
```json
{
"entity": "switch.cover",
"name": "Cover",
"type": "toggle"
}
```
## Exit On Toggle
You can choose individual items that will quit after they have completed their action.
```json
{
"entity": "light.hall_light",
"name": "Hall Light & Quit",
"type": "toggle",
"exit": true
}
```
## Disable Menu Item
If you would like to temporarily disable an item in your menu, e.g. for seasonal reasons like not needing to turn on Christmas tree lights outside the festive season, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
```json
{
"entity": "light.chrissmas_tree",
"name": "Christmas Lights",
"type": "toggle",
"enabled": false
}
```

236
examples/Templates.md Normal file
View File

@@ -0,0 +1,236 @@
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | [Templates](Templates.md) | [Glance](Glance.md) | [Background Service](../BackgroundService.md) | [Wi-Fi](../Wi-Fi.md) | [HTTP Headers](../HTTP_Headers.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Templates
In order to provide the most functionality possible the content of the menu item comes from a user-defined template (i.e. you generate your own text). This allows you to do some pretty cool things. It also makes the configuration a bit more complicated. This page will help you understand how to use templates.
- In this file anything between `<` and `>` is a placeholder. Replace it with the appropriate value.
- [Jinja2](https://palletsprojects.com/p/jinja/) syntax is used by HomeAssistant [Templates](https://www.home-assistant.io/docs/configuration/templating/). Templates are used to dynamically insert values into the content. The syntax includes:
- `{%` ... `%}` for Statements
- `{{` ... `}}` for Expressions to print to the template output
- `{#` ... `#}` for Comments not included in the template output
> [!IMPORTANT]
> In order to avoid "Template Error" being displayed as the return value, make sure your Jinja2 template returns a `string`, not a number of some variety. _All numbers must be formatted to strings_ so the application does not need to distinguish an `integer` from a `float`.
## States
In this example we get the battery level of the device and add the percent sign. *Very simple*
```json
{
"name": "Phone",
"type": "info",
"content": "{{ states('sensor.<device>_battery_level') }}%"
}
```
### Examples
The first two keep to the simple proposal above. The last combines them into a single menu item. Now you can start to see the utility of this menu item, composing your own formatted text.
```json
{
"name": "Hall Temp",
"type": "info",
"content": "{{ states('sensor.hallway_temperature') }}°C"
},
{
"name": "Hall Humidity",
"type": "info",
"content": "{{ states('sensor.hallway_humidity') }}%"
},
{
"name": "Hallway",
"type": "info",
"content": "{{ states('sensor.hallway_temperature') }}°C {{ states('sensor.hallway_humidity') }}%"
}
```
In order to keep the formatting of floating point numbers under control, you might also like to include a format string as follows. `states()` seems to return a `string` that needs converting to a `float` before the `format()` call can manage the conversion to the required number fo decimal places.
```json
{
"name": "Hallway",
"type": "info",
"content": "T:{{ '%.1f' | format(states('sensor.hallway_temperature') | float) }}°C, H:{{ '%.1f' | format(states('sensor.hallway_humidity') | float) }}%"
},
```
Where your device supports unicode characters these example may work.
```json
{
"name": "Charge",
"type": "info",
"content": "☎ {{ states('sensor.my_phone_battery_level') }}%{% if is_state('binary_sensor.my_phone_is_charging', 'on') %}⚡{% endif %}, ⏳ {{ '%.0f'|format(states('sensor.my_watch_battery_level') | float) }}%{% if is_state('binary_binary_sensor.my_watch_battery_is_charging', 'on') %}⚡{% endif %}"
},
{
"name": "Hallway",
"type": "info",
"content": "🌡{% if is_state('sensor.hallway_temperature', 'unavailable') %}-{% else %}{{ '%.1f'|format(states('sensor.hallway_temperature')|float) }}°C{% if is_state_attr('climate.hallway', 'hvac_action', 'heating') or is_state_attr('climate.hallway', 'hvac_action', 'preheating') -%}🔥{%- endif %}{% endif %}, 💧{% if is_state('sensor.hallway_humidity', 'unavailable') %}-{% else %}{{ '%.1f'|format(states('sensor.hallway_humidity')|float) }}%{% endif %}"
}
```
![Unicode Characters in a Template](../images/Unicode_Template.png)
## Conditionals
Anything between `{%` and `%}` is a directive (`if`, `else`, `elif`, `endif`, etc.). Conditionals are used to dynamically change the content based on the state of the entity.
In this example we get the battery level of the device and add the percent sign. If the device is charging we add a plus sign.
```json
{
"name": "Phone",
"type": "info",
"content": "{{ states('sensor.<device>_battery_level') }}%{% if is_state('binary_sensor.<device>_is_charging', 'on') %}+{% endif %}"
}
```
Here we also use the else clause as well to give proper text instead of just `on` or `off`.
```json
{
"name": "Garage Doors",
"type": "info",
"content": "{% if is_state('binary_sensor.<door-0>', 'on') %}Open{% else %}Closed{% endif %} {% if is_state('binary_sensor.<door-1>', 'on') %}Open{% else %}Closed{% endif %}"
}
```
> [!IMPORTANT]
> We advise users against adding security devices.
However, for users doing this **against our advice**, we strongly recommend to secure confirmation of the action using our PIN confirmation dialog.
This an example of toggling a garage door open and closed with a PIN confirmation. *Do this at your own risk*.
The PIN confirmation is activated for actions with `"pin": true`. The PIN is configured globally in the application settings. The PIN needs to be a 4-digit number.
The user has 5 attempts to provide a valid PIN within 2 minutes. If too many failures have been detected during this time, the PIN dialog will be locked for 10 minutes.
Note: Only when you use the `tap_action` field do you also need to include the `entity` field. This is a change to a previous version of the application, hence the presence of the `entity` field will be ignored for backwards compatibility, and the schema will provide a warning only.
```json
{
"entity": "cover.garage_door",
"name": "Garage Door",
"type": "tap",
"content": "{% if is_state('binary_sensor.garage_connected', 'on') %}{{state_translated('cover.garage_door')}} - {{state_attr('cover.garage_door', 'current_position')}}%{%else%}Unconnected{% endif %}",
"tap_action": {
"service": "cover.toggle",
"pin": true
}
}
```
## Group and Toggle Menu Items
Both `group` and `toggle` menu items accept an optional `content` field as of v2.19. This allows the use of templates to present status information.
```json
{
"name": "Each Lounge Light",
"title": "Lounge",
"type": "group",
"content": "{{'On: %d, Off: %d'|format(expand(state_attr('light.living_room_lights', 'entity_id'))|selectattr('state','eq','on')|map(attribute='entity_id')|list|count, expand(state_attr('light.living_room_lights', 'entity_id'))|selectattr('state','eq','off')|map(attribute='entity_id')|list|count)}}",
"items": [..]
}
```
## Advanced
Here we generate a bar graph of the battery level. We use the following steps to do this:
- Convert the state to a number.
- Divide by 100 to get a fraction.
- Multiply by the width to get the number of `#`s.
- Multiply by the `#` char to make a string.
- Subtract the width from the number of `#`s to get the number of `_`s.
- Multiply by the `_` char to make a string.
```json
{
"name": "Phone",
"type": "info",
"content": "{{ states('sensor.<device>_battery_level') }}%{% if is_state('binary_sensor.<device>_is_charging', 'on') %}+{% endif %} {{ '#' * (((states('sensor.<device>_battery_level') | int) / 100 * <width>) | int) }}{{ '_' * (<width> - (((states('sensor.<device>_battery_level') | int) / 100 * <width>) | int)) }}"
}
```
An example of a dimmer light with 4 brightness settings 0..3. Here our light worked on a percentage, so that had to be converted to the range 0..3.
```json
{
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
"title": "Home",
"items": [
{
"name": "LEDs",
"type": "info",
"content": "{% if not (is_state('light.green_house', 'off') or is_state('light.green_house', 'unavailable')) %}{{ (((state_attr('light.green_house', 'brightness') | float) / 255 * 100) | round(0)) | int }}%{% else %}Off{% endif %}"
},
{
"entity": "light.green_house",
"name": "LEDs 0",
"type": "tap",
"content": "{% if not (is_state('light.green_house', 'off') or is_state('light.green_house', 'unavailable')) %}{{ (((state_attr('light.green_house', 'brightness') | float) / 255 * 100) | round(0)) | int }}%{% else %}Off{% endif %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 12
}
}
},
{
"entity": "light.green_house",
"name": "LEDs 1",
"type": "tap",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 37
}
}
},
{
"entity": "light.green_house",
"name": "LEDs 2",
"type": "tap",
"content": "{% if not (is_state('light.green_house', 'off') or is_state('light.green_house', 'unavailable')) %}{{ (((state_attr('light.green_house', 'brightness') | float) / 255 * 100) | round(0)) | int }}%{% else %}Off{% endif %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 62
}
}
},
{
"entity": "light.green_house",
"name": "LEDs 3",
"type": "tap",
"content": "{% if not (is_state('light.green_house', 'off') or is_state('light.green_house', 'unavailable')) %}{{ (((state_attr('light.green_house', 'brightness') | float) / 255 * 100) | round(0))| int }}%{% else %}Off{% endif %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 87
}
}
}
]
}
```
## Disable Menu Item
If you would like to temporarily disable an item in your menu, then rather than swapping menu definition files or deleting a section of the menu you can mark the item as 'disabled'. This field applies to all menu items.
```json
{
"name": "Phone",
"type": "info",
"content": "{{ ... }}",
"enabled": false
}
```
## Warnings
Just remember, on older smaller memory devices **you have the ability to crash the application by creating an excessive menu definition**. Templates can require significant definition for highly customised text. Don't be silly.

113
export.cmd Normal file
View File

@@ -0,0 +1,113 @@
@echo off
rem -----------------------------------------------------------------------------------
rem
rem Distributed under MIT Licence
rem See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
rem
rem -----------------------------------------------------------------------------------
rem
rem GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
rem tested on a Venu 2 device. The source code is provided at:
rem https://github.com/house-of-abbey/GarminHomeAssistant.
rem
rem J D Abbey & P A Abbey, 28 December 2022
rem
rem Export both the Application and the Widget IQ files for upload to Garmin's App Store.
rem
rem Reference:
rem * Using Monkey C from the Command Line
rem https://developer.garmin.com/connect-iq/reference-guides/monkey-c-command-line-setup/
rem
rem -----------------------------------------------------------------------------------
rem Check this path is correct for your Java installation
set JAVA_PATH=C:\Program Files\Java\jdk-22\bin
rem SDK_PATH should work for all users
set /p SDK_PATH=<"%USERPROFILE%\AppData\Roaming\Garmin\ConnectIQ\current-sdk.cfg"
set SDK_PATH=%SDK_PATH:~0,-1%\bin
rem Assume we can create and use this directory
set DEST=export
set IQ=HomeAssistant-app.iq
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-d <arg>]
rem [--debug-log-level <arg>] [--debug-log-output <arg>]
rem [--disable-api-has-check-removal] [--disable-v2-opcodes] [-e]
rem [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-k] [-l <arg>]
rem [-m <arg>] [--no-gen-styles] [-o <arg>] [-O <arg>] [-p <arg>] [-r] [-t]
rem [-u <arg>] [-v] [-w] [-x <arg>] [-y <arg>] [-z <arg>]
rem -a,--apidb <arg> API import file
rem -b,--apimir <arg> API MIR file
rem --build-stats <arg> Print build stats [0=basic]
rem -d,--device <arg> Target device
rem --debug-log-level <arg> Debug logging verbosity [0=errors, 1=basic,
rem 2=intermediate, 3=verbose]
rem --debug-log-output <arg> Output log zip file
rem --disable-api-has-check-removalDo not optimize out API has checks
rem --disable-v2-opcodes Do not use the v2 opcodes
rem -e,--package-app Create an application package.
rem --Eno-invalid-symbol Do not error when a symbol is found to be
rem invalid
rem -f,--jungles <arg> Jungle files
rem -g,--debug Print debug output
rem -h,--help Prints help information
rem -i,--import-dbg <arg> Import api.debug.xml
rem -k,--profile Enable profiling support
rem -l,--typecheck <arg> Type check [0=off, 1=gradual, 2=informative,
rem 3=strict]
rem -m,--manifest <arg> Manifest file (deprecated)
rem --no-gen-styles Do not generate Rez.Styles module
rem -o,--output <arg> Output file to create
rem -O,--optimization <arg> Optimization level [0=none, 1=basic, 2=fast
rem optimizations, 3=slow optimizations]
rem [p=optimize performance, z=optimize code
rem space]
rem -p,--project-info <arg> projectInfo.xml file to use when compiling
rem -r,--release Strip debug information
rem -t,--unit-test Enables compilation of unit tests
rem -u,--devices <arg> devices.xml file to use when compiling
rem (deprecated)
rem -v,--version Prints the compiler version
rem -w,--warn Show compiler warnings
rem -x,--excludes <arg> Add annotations to the exclude list
rem (deprecated)
rem -y,--private-key <arg> Private key to sign builds with
rem -z,--rez <arg> Resource files (deprecated)
title Exporting Garmin Home Assistant Application
rem Batch file's directory where the source code is
set SRC=%~dp0
rem drop last character '\'
set SRC=%SRC:~0,-1%
set DEST=%SRC%\%DEST%
set IQ=%DEST%\%IQ%
if not exist %DEST% (
echo Creating %DEST%
md %DEST%
)
if exist %IQ% (
echo Deleting old %IQ%
del /f /q %IQ%
)
echo Starting export of HomeAssistant Application to %IQ%
echo.
"%JAVA_PATH%\java.exe" ^
-Xms1g ^
-Dfile.encoding=UTF-8 ^
-Dapple.awt.UIElement=true ^
-jar %SDK_PATH%\monkeybrains.jar ^
--output %IQ% ^
--jungles %SRC%\monkey.jungle ^
--private-key %SRC%\..\developer_key ^
--package-app ^
--release
echo.
echo Finished exporting HomeAssistant
dir %IQ%
pause

View File

@@ -91,7 +91,7 @@ for screen_size, icon_sizes in lookup.items():
svg.attrs["width"] = lookup[screen_size][Half]
svg.attrs["height"] = lookup[screen_size][Half]
with open(output_dir + "/" + entry, "wb") as o:
o.write(svg.encode("utf-8"))
o.write(svg.encode("utf-8") + b"\n")
elif entry.endswith(".xml"):
print("Create file: ", entry.ljust(40) + " XML - Copy file")
shutil.copyfile(input_dir + "/" + entry, output_dir + "/" + entry)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 720 KiB

BIN
images/HTTPS_full_chain.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
images/NoJson.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 105 KiB

BIN
images/Unicode_Template.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
images/Venu2_LeanUI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
images/Venu2_Original.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
images/Venu2_app_start.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
images/Venu_Widget_sim.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
images/api_test_online.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
images/app_crash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
images/menu_url.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
images/nabu_casa_setup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 KiB

BIN
images/pin_view.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
images/rename_device.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
images/rename_device_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 KiB

After

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 KiB

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 KiB

After

Width:  |  Height:  |  Size: 603 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 KiB

After

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 KiB

After

Width:  |  Height:  |  Size: 603 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 KiB

After

Width:  |  Height:  |  Size: 608 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
images/wi-fi.mp4 Normal file

Binary file not shown.

70
launcherIconResize.py Normal file
View File

@@ -0,0 +1,70 @@
####################################################################################
#
# Distributed under MIT Licence
# See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
#
####################################################################################
#
# GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
# tested on a Venu 2 device. The source code is provided at:
# https://github.com/house-of-abbey/GarminHomeAssistant.
#
# J D Abbey & P A Abbey, 29 December 2023
#
#
# Description:
#
# Python script to automatically resize the application launcher icon from the
# original 70x70 pixel width to something more appropriate for different screen
# sizes.
#
# Python installation:
# pip install BeautifulSoup
# NB. For XML formatting:
# pip install lxml
#
# References:
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/
# * https://realpython.com/beautiful-soup-web-scraper-python/
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#parsing-xml
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#xml
#
####################################################################################
from bs4 import BeautifulSoup, Comment
import os
import shutil
output_dir_prefix = 'resources-launcher-'
# Original icons for 416x416 screen size with 70x70 icons
input_dir = output_dir_prefix + '70-70'
# Convert icons to different screen sizes by these parameters
lookup = [26, 30, 33, 35, 36, 40, 54, 60, 61, 62, 65, 80]
# Delete all but the original 48x48 icon directories
for entry in os.listdir("."):
if entry.startswith(output_dir_prefix) and entry != input_dir:
shutil.rmtree(entry)
# (Re-)Create the resized icon directories
for icon_size in lookup:
output_dir = output_dir_prefix + str(icon_size) + "-" + str(icon_size)
print("\nCreate directory:", output_dir)
if os.path.exists(output_dir) and os.path.isdir(output_dir):
shutil.rmtree(output_dir)
os.makedirs(output_dir)
for entry in os.listdir(input_dir):
if entry.endswith(".svg"):
print("Create file: ", entry.ljust(40) + " SVG - Change file")
with open(input_dir + "/" + entry, "r") as f:
soup = BeautifulSoup(f.read(), features="xml")
svg: BeautifulSoup = list(soup.children)[0]
h = int(svg.attrs["height"])
svg.attrs["width"] = icon_size
svg.attrs["height"] = icon_size
with open(output_dir + "/" + entry, "wb") as o:
o.write(svg.encode("utf-8"))
elif entry.endswith(".xml"):
print("Create file: ", entry.ljust(40) + " XML - Copy file")
shutil.copyfile(input_dir + "/" + entry, output_dir + "/" + entry)

View File

@@ -9,131 +9,129 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
Test Application id="98c36259-498a-4458-9cef-74a273ad2bc3"
Live Application id="40131e87-31ff-454b-a8e2-92276ee399d6"
Device Information & References:
* https://developer.garmin.com/connect-iq/compatible-devices/
* https://developer.garmin.com/connect-iq/reference-guides/devices-reference/
philipabbey's Test App id="98c36259-498a-4458-9cef-74a273ad2bc3" type="watch-app"
Live Application id="40131e87-31ff-454b-a8e2-92276ee399d6" type="watch-app"
-->
<iq:manifest version="3" xmlns:iq="http://www.garmin.com/xml/connectiq">
<!--
Use "Monkey C: Edit Application" from the Visual Studio Code command palette
to update the application attributes.
-->
<iq:application id="40131e87-31ff-454b-a8e2-92276ee399d6" type="watch-app" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
<iq:application id="98c36259-498a-4458-9cef-74a273ad2bc3" type="watch-app" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
<!--
Use the following from the Visual Studio Code comand palette to edit
Use the following from the Visual Studio Code command palette to edit
the build targets:
"Monkey C: Set Products by Product Category" - Lets you add all products
that belong to the same product category
"Monkey C: Edit Products" - Lets you add or remove any product
-->
<iq:products>
<!--
Device Information & References:
* https://developer.garmin.com/connect-iq/compatible-devices/
* https://developer.garmin.com/connect-iq/reference-guides/devices-reference/
-->
<!-- Screen Size 390x390 launcher icon size 70x70 -->
<iq:product id="approachs50"/>
<iq:product id="approachs7042mm"/>
<!-- Screen Size 454x454 launcher icon size 80x80 -->
<iq:product id="approachs7047mm"/>
<!-- Screen Size 176x176 launcher icon size 62x62 -->
<iq:product id="descentg1"/>
<!-- Screen Size 280x280 launcher icon size 40x40 -->
<iq:product id="descentmk2"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="descentmk2s"/>
<!-- Screen Size 416x416 launcher icon size 70x70 -->
<iq:product id="d2air"/>
<iq:product id="d2airx10"/>
<!-- Screen Size 416x416 launcher icon size 60x60 -->
<iq:product id="d2delta"/>
<iq:product id="d2deltapx"/>
<iq:product id="d2deltas"/>
<iq:product id="d2mach1"/>
<!-- Screen Size 282x470 launcher icon size 36x36 -->
<iq:product id="descentg1"/>
<iq:product id="descentg2"/>
<iq:product id="descentmk1"/>
<iq:product id="descentmk2"/>
<iq:product id="descentmk2s"/>
<iq:product id="descentmk343mm"/>
<iq:product id="descentmk351mm"/>
<iq:product id="edge1030"/>
<iq:product id="edge1030bontrager"/>
<iq:product id="edge1030plus"/>
<!-- Screen Size 282x470 launcher icon size 40x40 -->
<iq:product id="edge1040"/>
<!-- Screen Size 246x322 launcher icon size 35x35 -->
<iq:product id="edge1050"/>
<iq:product id="edge520plus"/>
<iq:product id="edge530"/>
<iq:product id="edge540"/>
<iq:product id="edge820"/>
<iq:product id="edge830"/>
<!-- Screen Size 240x400 launcher icon size 36x36 -->
<iq:product id="edge840"/>
<iq:product id="edgeexplore"/>
<iq:product id="edgeexplore2"/>
<!-- Screen Size 280x280 launcher icon size 40x40 -->
<iq:product id="enduro"/>
<!-- Screen Size 416x416 launcher icon size 60x60 -->
<iq:product id="enduro3"/>
<iq:product id="epix2"/>
<!-- Screen Size 390x390 launcher icon size 60x60 -->
<iq:product id="epix2pro42mm"/>
<iq:product id="epix2pro47mm"/>
<!-- Screen Size 454x454 launcher icon size 60x60 -->
<iq:product id="epix2pro51mm"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fenix5"/>
<iq:product id="fenix5plus"/>
<iq:product id="fenix5s"/>
<iq:product id="fenix5splus"/>
<iq:product id="fenix5x"/>
<iq:product id="fenix5xplus"/>
<!-- Screen Size 260x260 launcher icon size 40x40 -->
<iq:product id="fenix6"/>
<iq:product id="fenix6pro"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fenix6s"/>
<iq:product id="fenix6spro"/>
<!-- Screen Size 280x280 launcher icon size 40x40 -->
<iq:product id="fenix6xpro"/>
<!-- Screen Size 260x260 launcher icon size 40x40 -->
<iq:product id="fenix7"/>
<!-- Screen Size 260x260 launcher icon size 40x40 -->
<iq:product id="fenix7pro"/>
<iq:product id="fenix7pronowifi"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fenix7s"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fenix7spro"/>
<!-- Screen Size 280x280 launcher icon size 40x40 -->
<iq:product id="fenix7x"/>
<!-- Screen Size 280x280 launcher icon size 40x40 -->
<iq:product id="fenix7xpro"/>
<iq:product id="fenix7xpronowifi"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fenix843mm"/>
<iq:product id="fenix847mm"/>
<iq:product id="fenix8solar47mm"/>
<iq:product id="fenix8solar51mm"/>
<iq:product id="fenixchronos"/>
<iq:product id="fenixe"/>
<iq:product id="fr165"/>
<iq:product id="fr165m"/>
<iq:product id="fr245"/>
<iq:product id="fr245m"/>
<!-- Screen Size 260x260 launcher icon size 40x40 -->
<iq:product id="fr255"/>
<iq:product id="fr255m"/>
<!-- Screen Size 218x218 launcher icon size 40x40 -->
<iq:product id="fr255s"/>
<iq:product id="fr255sm"/>
<!-- Screen Size 416x416 launcher icon size 60x60 -->
<iq:product id="fr265"/>
<iq:product id="fr265s"/>
<!-- Screen Size 208x208 launcher icon size 35x35 -->
<iq:product id="fr55"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="fr57042mm"/>
<iq:product id="fr57047mm"/>
<iq:product id="fr645"/>
<iq:product id="fr645m"/>
<iq:product id="fr745"/>
<iq:product id="fr935"/>
<iq:product id="fr945"/>
<iq:product id="fr945lte"/>
<!-- Screen Size 260x260 launcher icon size 40x40 -->
<iq:product id="fr955"/>
<!-- Screen Size 454x454 launcher icon size 65x65 -->
<iq:product id="fr965"/>
<!-- Screen Size 176x176 launcher icon size 62x62 -->
<iq:product id="fr970"/>
<iq:product id="gpsmap66"/>
<iq:product id="gpsmap67"/>
<iq:product id="instinct2"/>
<!-- Screen Size 163x156 launcher icon size 54x54 -->
<iq:product id="instinct2s"/>
<!-- Screen Size 176x176 launcher icon size 62x62 -->
<iq:product id="instinct2x"/>
<!-- Screen Size 176x176 launcher icon size 26x26 -->
<iq:product id="instinct3amoled45mm"/>
<iq:product id="instinct3amoled50mm"/>
<iq:product id="instinct3solar45mm"/>
<iq:product id="instinctcrossover"/>
<!-- Screen Size 218x218 launcher icon size 30x30 -->
<iq:product id="instincte40mm"/>
<iq:product id="instincte45mm"/>
<iq:product id="legacyherocaptainmarvel"/>
<!-- Screen Size 260x260 launcher icon size 35x35 -->
<iq:product id="legacyherofirstavenger"/>
<iq:product id="legacysagadarthvader"/>
<!-- Screen Size 218x218 launcher icon size 30x30 -->
<iq:product id="legacysagarey"/>
<!-- Screen Size 240x240 launcher icon size 40x40 -->
<iq:product id="marq2"/>
<iq:product id="marq2aviator"/>
<iq:product id="marqadventurer"/>
<iq:product id="marqathlete"/>
<iq:product id="marqaviator"/>
@@ -142,40 +140,35 @@
<iq:product id="marqdriver"/>
<iq:product id="marqexpedition"/>
<iq:product id="marqgolfer"/>
<!-- Screen Size 390x390 launcher icon size 60x60 -->
<iq:product id="marq2"/>
<iq:product id="marq2aviator"/>
<!-- Screen Size 390x390 launcher icon size 60x60 -->
<iq:product id="montana7xx"/>
<iq:product id="venu"/>
<!-- Screen Size 416x416 launcher icon size 70x70 -->
<iq:product id="venu2"/>
<iq:product id="venu2plus"/>
<!-- Screen Size 360x360 launcher icon size 61x61 -->
<iq:product id="venu2s"/>
<!-- Screen Size 240x240 launcher icon size 36x36 -->
<iq:product id="venu3"/>
<iq:product id="venu3s"/>
<iq:product id="venud"/>
<iq:product id="venusq"/>
<iq:product id="venusqm"/>
<!-- Screen Size 320x360 launcher icon size 40x40 -->
<iq:product id="venusq2"/>
<iq:product id="venusq2m"/>
<!-- Screen Size 454x454 launcher icon size 70x70 -->
<iq:product id="venu3"/>
<!-- Screen Size 390x390 launcher icon size 70x70 -->
<iq:product id="venu3s"/>
<!-- Screen Size 260x260 launcher icon size 35x35 -->
<iq:product id="venusqm"/>
<iq:product id="vivoactive3"/>
<iq:product id="vivoactive3m"/>
<iq:product id="vivoactive3mlte"/>
<iq:product id="vivoactive4"/>
<!-- Screen Size 218x218 launcher icon size 30x30 -->
<iq:product id="vivoactive4s"/>
<!-- Screen Size 390x390 launcher icon size 70x70 -->
<iq:product id="vivoactive5"/>
<iq:product id="vivoactive6"/>
</iq:products>
<!--
Use "Monkey C: Edit Permissions" from the Visual Studio Code command
palette to update permissions.
-->
<iq:permissions>
<iq:uses-permission id="Communications"/>
<iq:uses-permission id="Background"/>
<iq:uses-permission id="BluetoothLowEnergy"/>
<iq:uses-permission id="Communications"/>
<iq:uses-permission id="Positioning"/>
</iq:permissions>
<!--
Use "Monkey C: Edit Languages" from the Visual Studio Code command
@@ -184,19 +177,17 @@
<iq:languages>
<iq:language>ara</iq:language>
<iq:language>bul</iq:language>
<iq:language>zhs</iq:language>
<iq:language>zht</iq:language>
<iq:language>hrv</iq:language>
<iq:language>ces</iq:language>
<iq:language>dan</iq:language>
<iq:language>dut</iq:language>
<iq:language>deu</iq:language>
<iq:language>gre</iq:language>
<iq:language>dut</iq:language>
<iq:language>eng</iq:language>
<iq:language>est</iq:language>
<iq:language>fin</iq:language>
<iq:language>fre</iq:language>
<iq:language>gre</iq:language>
<iq:language>heb</iq:language>
<iq:language>hrv</iq:language>
<iq:language>hun</iq:language>
<iq:language>ind</iq:language>
<iq:language>ita</iq:language>
@@ -204,13 +195,12 @@
<iq:language>kor</iq:language>
<iq:language>lav</iq:language>
<iq:language>lit</iq:language>
<iq:language>zsm</iq:language>
<iq:language>nob</iq:language>
<iq:language>pol</iq:language>
<iq:language>por</iq:language>
<iq:language>slo</iq:language>
<iq:language>ron</iq:language>
<!-- <iq:language>rus</iq:language> -->
<iq:language>slo</iq:language>
<iq:language>slv</iq:language>
<iq:language>spa</iq:language>
<iq:language>swe</iq:language>
@@ -218,6 +208,9 @@
<iq:language>tur</iq:language>
<iq:language>ukr</iq:language>
<iq:language>vie</iq:language>
<iq:language>zhs</iq:language>
<iq:language>zht</iq:language>
<iq:language>zsm</iq:language>
</iq:languages>
<!--
Use "Monkey C: Configure Monkey Barrel" from the Visual Studio Code

View File

@@ -31,36 +31,63 @@ project.manifest = manifest.xml
#
# The icons need to scale as a ratio of screen size 48:416 pixels
#
# Icon 53 48 46 42 37 32 30 28 26 24 21 18
# Screen 454 416 390 360 320 280 260 240 218 208 176 156
# Icon 55 53 48 46 42 37 32 30 28 26 24 21 19 18
# Screen 480 454 416 390 360 320 280 260 240 218 208 176 166 156
# Screen Size 390x390 launcher icon size 56x56
approachs50.resourcePath = $(approachs50.resourcePath);resources-launcher-56-56;resources-icons-46
# Screen Size 390x390 launcher icon size 70x70
approachs7042mm.resourcePath = $(approachs7042mm.resourcePath);resources-launcher-70-70;resources-icons-46
# Screen Size 454x454 launcher icon size 80x80
approachs7047mm.resourcePath = $(approachs7047mm.resourcePath);resources-launcher-80-80;resources-icons-53
# Screen Size 390x390 launcher icon size 60x60
d2air.resourcePath = $(d2air.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 416x416 launcher icon size 70x70
d2airx10.resourcePath = $(d2airx10.resourcePath);resources-launcher-70-70;resources-icons-48
# Screen Size 240x240 launcher icon size 40x40
d2delta.resourcePath = $(d2delta.resourcePath);resources-launcher-40-40;resources-icons-28
d2deltapx.resourcePath = $(d2deltapx.resourcePath);resources-launcher-40-40;resources-icons-28
d2deltas.resourcePath = $(d2deltas.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 416x416 launcher icon size 60x60
d2mach1.resourcePath = $(d2mach1.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 176x176 launcher icon size 62x62
descentg1.resourcePath = $(descentg1.resourcePath);resources-launcher-62-62;resources-icons-21
# Screen Size 390x390 launcher icon size 60x60
descentg2.resourcePath = $(descentg2.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 240x240 launcher icon size 40x40
descentmk1.resourcePath = $(descentmk1.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 280x280 launcher icon size 40x40
descentmk2.resourcePath = $(descentmk2.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 240x240 launcher icon size 40x40
descentmk2s.resourcePath = $(descentmk2s.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 390 x 390 launcher icon size 60x60
descentmk343mm.resourcePath = $(descentmk2s.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 454 x 454 launcher icon size 60x60
descentmk351mm.resourcePath = $(descentmk2s.resourcePath);resources-launcher-60-60;resources-icons-53
# Screen Size 282x470 launcher icon size 36x36
edge1030.resourcePath = $(descentmk2s.resourcePath);resources-launcher-36-36;resources-icons-32
edge1030bontrager.resourcePath = $(edge1030bontrager.resourcePath);resources-launcher-36-36;resources-icons-32
edge1030plus.resourcePath = $(edge1030plus.resourcePath);resources-launcher-36-36;resources-icons-32
# Screen Size 282x470 launcher icon size 40x40
edge1040.resourcePath = $(edge1040.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 480x800 launcher icon size 68x68
edge1050.resourcePath = $(edge1050.resourcePath);resources-launcher-68-68;resources-icons-55
# Screen Size 200x265 launcher icon size 35x35
edge520plus.resourcePath = $(edge520plus.resourcePath);resources-launcher-35-35;resources-icons-24
# Screen Size 246x322 launcher icon size 35x35
edge530.resourcePath = $(edge530.resourcePath);resources-launcher-35-35;resources-icons-28
edge540.resourcePath = $(edge540.resourcePath);resources-launcher-35-35;resources-icons-28
# Screen Size 200x265 launcher icon size 35x35
edge820.resourcePath = $(edge820.resourcePath);resources-launcher-35-35;resources-icons-24
# Screen Size 246x322 launcher icon size 35x35
edge830.resourcePath = $(edge830.resourcePath);resources-launcher-35-35;resources-icons-28
edge840.resourcePath = $(edge840.resourcePath);resources-launcher-35-35;resources-icons-28
# Screen Size 240x400 launcher icon size 36x36
edgeexplore.resourcePath = $(edgeexplore.resourcePath);resources-launcher-36-36;resources-icons-28
edgeexplore2.resourcePath = $(edgeexplore2.resourcePath);resources-launcher-36-36;resources-icons-28
# Screen Size 280x280 launcher icon size 40x40
enduro.resourcePath = $(enduro.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 416x416 launcher icon size 70x70
d2airx10.resourcePath = $(d2airx10.resourcePath);resources-launcher-70-70;resources-icons-48
# Screen Size 416x416 launcher icon size 60x60
d2mach1.resourcePath = $(d2mach1.resourcePath);resources-launcher-60-60;resources-icons-48
enduro3.resourcePath = $(enduro3.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 416x416 launcher icon size 60x60
epix2.resourcePath = $(epix2.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 390x390 launcher icon size 60x60
@@ -69,8 +96,13 @@ epix2pro47mm.resourcePath = $(epix2pro47mm.resourcePath);resources-launcher-60-6
# Screen Size 454x454 launcher icon size 60x60
epix2pro51mm.resourcePath = $(epix2pro51mm.resourcePath);resources-launcher-60-60;resources-icons-53
# Screen Size 240x240 launcher icon size 40x40
fenix5.resourcePath = $(fenix5.resourcePath);resources-launcher-40-40;resources-icons-28
fenix5plus.resourcePath = $(fenix5plus.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 218x218 launcher icon size 36x36
fenix5s.resourcePath = $(fenix5s.resourcePath);resources-launcher-36-36;resources-icons-26
# Screen Size 240x240 launcher icon size 40x40
fenix5splus.resourcePath = $(fenix5splus.resourcePath);resources-launcher-40-40;resources-icons-28
fenix5x.resourcePath = $(fenix5x.resourcePath);resources-launcher-40-40;resources-icons-28
fenix5xplus.resourcePath = $(fenix5xplus.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 260x260 launcher icon size 40x40
fenix6.resourcePath = $(fenix6.resourcePath);resources-launcher-40-40;resources-icons-30
@@ -82,7 +114,6 @@ fenix6spro.resourcePath = $(fenix6spro.resourcePath);resources-launcher-40-40;re
fenix6xpro.resourcePath = $(fenix6xpro.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 260x260 launcher icon size 40x40
fenix7.resourcePath = $(fenix7.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 260x260 launcher icon size 40x40
fenix7pro.resourcePath = $(fenix7pro.resourcePath);resources-launcher-40-40;resources-icons-30
fenix7pronowifi.resourcePath = $(fenix7pronowifi.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 240x240 launcher icon size 40x40
@@ -91,9 +122,23 @@ fenix7s.resourcePath = $(fenix7s.resourcePath);resources-launcher-40-40;resource
fenix7spro.resourcePath = $(fenix7spro.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 280x280 launcher icon size 40x40
fenix7x.resourcePath = $(fenix7x.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 280x280 launcher icon size 40x40
fenix7xpro.resourcePath = $(fenix7xpro.resourcePath);resources-launcher-40-40;resources-icons-32
fenix7xpronowifi.resourcePath = $(fenix7xpronowifi.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 416x416 launcher icon size 60x60
fenix843mm.resourcePath = $(fenix843mm.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 454x454 launcher icon size 65x65
fenix847mm.resourcePath = $(fenix847mm.resourcePath);resources-launcher-65-65;resources-icons-53
# Screen Size 260x260 launcher icon size 40x40
fenix8solar47mm.resourcePath = $(fenix8solar47mm.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 280x280 launcher icon size 40x40
fenix8solar51mm.resourcePath = $(fenix8solar51mm.resourcePath);resources-launcher-40-40;resources-icons-32
# Screen Size 218x218 launcher icon size 36x36
fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-36;resources-icons-26
# Screen Size 416x416 launcher icon size 60x60
fenixe.resourcePath = $(fenixe.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 390 x 390 launcher icon size 54x54
fr165.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
fr165m.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
# Screen Size 240x240 launcher icon size 40x40
fr245.resourcePath = $(fr245.resourcePath);resources-launcher-40-40;resources-icons-28
fr245m.resourcePath = $(fr245m.resourcePath);resources-launcher-40-40;resources-icons-28
@@ -108,22 +153,44 @@ fr265.resourcePath = $(fr265.resourcePath);resources-launcher-60-60;resources-ic
fr265s.resourcePath = $(fr265s.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 208x208 launcher icon size 35x35
fr55.resourcePath = $(fr55.resourcePath);resources-launcher-35-35;resources-icons-24
# Screen Size 390x390 launcher icon size 54x54
fr57042mm.resourcePath = $(fr57042mm.resourcePath);resources-launcher-54-54;resources-icons-46
# Screen Size 454x454 launcher icon size 65x65
fr57047mm.resourcePath = $(fr57047mm.resourcePath);resources-launcher-65-65;resources-icons-53
# Screen Size 240x240 launcher icon size 40x40
fr645.resourcePath = $(fr645.resourcePath);resources-launcher-40-40;resources-icons-28
fr645m.resourcePath = $(fr645m.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 240x240 launcher icon size 40x40
fr745.resourcePath = $(fr745.resourcePath);resources-launcher-40-40;resources-icons-28
fr935.resourcePath = $(fr935.resourcePath);resources-launcher-40-40;resources-icons-28
fr945.resourcePath = $(fr945.resourcePath);resources-launcher-40-40;resources-icons-28
fr945lte.resourcePath = $(fr945lte.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 260x260 launcher icon size 40x40
fr955.resourcePath = $(fr955.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 454x454 launcher icon size 65x65
fr965.resourcePath = $(fr965.resourcePath);resources-launcher-65-65;resources-icons-53
fr970.resourcePath = $(fr970.resourcePath);resources-launcher-65-65;resources-icons-53
# Screen Size 240x400 launcher icon size 38x33
gpsmap66.resourcePath = $(gpsmap66.resourcePath);resources-launcher-33-33;resources-icons-28
gpsmap67.resourcePath = $(gpsmap67.resourcePath);resources-launcher-33-33;resources-icons-28
# Screen Size 176x176 launcher icon size 62x62
instinct2.resourcePath = $(instinct2.resourcePath);resources-launcher-62-62;resources-icons-21
instinct2.resourcePath = $(instinct2.resourcePath);resources-launcher-62-62;resources-icons-21-w
# Screen Size 163x156 launcher icon size 54x54
instinct2s.resourcePath = $(instinct2s.resourcePath);resources-launcher-54-54;resources-icons-18
instinct2s.resourcePath = $(instinct2s.resourcePath);resources-launcher-54-54;resources-icons-18-w
# Screen Size 176x176 launcher icon size 62x62
instinct2x.resourcePath = $(instinct2x.resourcePath);resources-launcher-62-62;resources-icons-21
instinct2x.resourcePath = $(instinct2x.resourcePath);resources-launcher-62-62;resources-icons-21-w
# Screen Size 390x390 launcher icon size 60x60, but the icon size used here is reduced as the menu items were clipped.
instinct3amoled45mm.resourcePath = $(instinct3amoled45mm.resourcePath);resources-launcher-60-60;resources-icons-32
# Screen Size 416x416 launcher icon size 60x60, but the icon size used here is reduced as the menu items were clipped.
instinct3amoled50mm.resourcePath = $(instinct3amoled50mm.resourcePath);resources-launcher-60-60;resources-icons-34
# Screen Size 176x176 launcher icon size 62x62
instinct3solar45mm.resourcePath = $(instinct3solar45mm.resourcePath);resources-launcher-62-62;resources-icons-18-w
# Screen Size 176x176 launcher icon size 26x26
instinctcrossover.resourcePath = $(instinctcrossover.resourcePath);resources-launcher-26-26;resources-icons-21
instinctcrossover.resourcePath = $(instinctcrossover.resourcePath);resources-launcher-26-26;resources-icons-21-w
# Screen Size 166x166 launcher icon size 52x52, but the icon size used here is reduced as the menu items were clipped.
instincte40mm.resourcePath = $(instincte40mm.resourcePath);resources-launcher-52-52;resources-icons-18-w
# Screen Size 176x176 launcher icon size 62x62, but the icon size used here is reduced as the menu items were clipped.
instincte45mm.resourcePath = $(instincte45mm.resourcePath);resources-launcher-62-62;resources-icons-18-w
# Screen Size 218x218 launcher icon size 30x30
legacyherocaptainmarvel.resourcePath = $(legacyherocaptainmarvel.resourcePath);resources-launcher-30-30;resources-icons-26
# Screen Size 260x260 launcher icon size 35x35
@@ -131,6 +198,9 @@ legacyherofirstavenger.resourcePath = $(legacyherofirstavenger.resourcePath);res
legacysagadarthvader.resourcePath = $(legacysagadarthvader.resourcePath);resources-launcher-35-35;resources-icons-30
# Screen Size 218x218 launcher icon size 30x30
legacysagarey.resourcePath = $(legacysagarey.resourcePath);resources-launcher-30-30;resources-icons-26
# Screen Size 390x390 launcher icon size 60x60
marq2.resourcePath = $(marq2.resourcePath);resources-launcher-60-60;resources-icons-46
marq2aviator.resourcePath = $(marq2aviator.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 240x240 launcher icon size 40x40
marqadventurer.resourcePath = $(marqadventurer.resourcePath);resources-launcher-40-40;resources-icons-28
marqathlete.resourcePath = $(marqathlete.resourcePath);resources-launcher-40-40;resources-icons-28
@@ -140,9 +210,8 @@ marqcommander.resourcePath = $(marqcommander.resourcePath);resources-launcher-40
marqdriver.resourcePath = $(marqdriver.resourcePath);resources-launcher-40-40;resources-icons-28
marqexpedition.resourcePath = $(marqexpedition.resourcePath);resources-launcher-40-40;resources-icons-28
marqgolfer.resourcePath = $(marqgolfer.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 390x390 launcher icon size 60x60
marq2.resourcePath = $(marq2.resourcePath);resources-launcher-60-60;resources-icons-46
marq2aviator.resourcePath = $(marq2aviator.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 480x800 launcher icon size 60x60
montana7xx.resourcePath = $(montana7xx.resourcePath);resources-launcher-60-60;resources-icons-53
# Screen Size 390x390 launcher icon size 60x60
venu.resourcePath = $(venu.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 416x416 launcher icon size 70x70
@@ -150,19 +219,28 @@ venu2.resourcePath = $(venu2.resourcePath);resources-launcher-70-70;resources-ic
venu2plus.resourcePath = $(venu2plus.resourcePath);resources-launcher-70-70;resources-icons-48
# Screen Size 360x360 launcher icon size 61x61
venu2s.resourcePath = $(venu2s.resourcePath);resources-launcher-61-61;resources-icons-42
# Screen Size 240x240 launcher icon size 36x36
venusq.resourcePath = $(venusq.resourcePath);resources-launcher-36-36;resources-icons-28
venusqm.resourcePath = $(venusqm.resourcePath);resources-launcher-36-36;resources-icons-28
# Screen Size 320x360 launcher icon size 40x40
venusq2.resourcePath = $(venusq2.resourcePath);resources-launcher-40-40;resources-icons-38
venusq2m.resourcePath = $(venusq2m.resourcePath);resources-launcher-40-40;resources-icons-38
# Screen Size 454x454 launcher icon size 70x70
venu3.resourcePath = $(venu3.resourcePath);resources-launcher-70-70;resources-icons-53
# Screen Size 390x390 launcher icon size 70x70
venu3s.resourcePath = $(venu3s.resourcePath);resources-launcher-70-70;resources-icons-46
# Screen Size 390x390 launcher icon size 60x60
venud.resourcePath = $(venud.resourcePath);resources-launcher-60-60;resources-icons-46
# Screen Size 240x240 launcher icon size 36x36
venusq.resourcePath = $(venusq.resourcePath);resources-launcher-36-36;resources-icons-28
# Screen Size 320x360 launcher icon size 40x40
venusq2.resourcePath = $(venusq2.resourcePath);resources-launcher-40-40;resources-icons-38
venusq2m.resourcePath = $(venusq2m.resourcePath);resources-launcher-40-40;resources-icons-38
# Screen Size 240x240 launcher icon size 36x36
venusqm.resourcePath = $(venusqm.resourcePath);resources-launcher-36-36;resources-icons-28
# Screen Size 240x240 launcher icon size 40x33
vivoactive3.resourcePath = $(vivoactive3.resourcePath);resources-launcher-33-33;resources-icons-28
vivoactive3m.resourcePath = $(vivoactive3m.resourcePath);resources-launcher-33-33;resources-icons-28
vivoactive3mlte.resourcePath = $(vivoactive3mlte.resourcePath);resources-launcher-33-33;resources-icons-28
# Screen Size 260x260 launcher icon size 35x35
vivoactive4.resourcePath = $(vivoactive4.resourcePath);resources-launcher-35-35;resources-icons-30
# Screen Size 218x218 launcher icon size 30x30
vivoactive4s.resourcePath = $(vivoactive4s.resourcePath);resources-launcher-30-30;resources-icons-26
# Screen Size 390x390 launcher icon size 70x70
vivoactive5.resourcePath = $(vivoactive5.resourcePath);resources-launcher-70-70;resources-icons-46
# Screen Size 390x390 launcher icon size 56x56
vivoactive5.resourcePath = $(vivoactive5.resourcePath);resources-launcher-56-56;resources-icons-46
# Screen Size 390x390 launcher icon size 54x54
vivoactive6.resourcePath = $(vivoactive6.resourcePath);resources-launcher-54-54;resources-icons-46

94
removeTranslations.py Normal file
View File

@@ -0,0 +1,94 @@
####################################################################################
#
# Distributed under MIT Licence
# See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
#
####################################################################################
#
# GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
# tested on a Venu 2 device. The source code is provided at:
# https://github.com/house-of-abbey/GarminHomeAssistant.
#
# J D Abbey & P A Abbey, 24 July 2025
#
#
# Description:
#
# Python script to remove all the translations of a specific id from the XML files.
#
# Usage:
# python removeTranslations.py <id>
#
# Python installation:
# pip install beautifulsoup4
# NB. For XML formatting:
# pip install lxml
#
# References:
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/
# * https://realpython.com/beautiful-soup-web-scraper-python/
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#parsing-xml
# * https://www.crummy.com/software/BeautifulSoup/bs4/doc/#xml
#
####################################################################################
import sys
# from bs4 import BeautifulSoup
import os
def remove_translations(file_path: str, translation_id: str) -> None:
"""
Remove all translations of a specific id from the XML file.
:param file_path: Path to the XML file.
:param translation_id: The id of the translation to remove.
"""
# Breaks the formatting
# with open(file_path, "r", encoding="utf-8") as file:
# soup = BeautifulSoup(file, features="xml")
# # Find all string elements with the specified id
# strings_to_remove = soup.find_all("string", {"id": translation_id})
# for string in strings_to_remove:
# string.decompose() # Remove the string element
# # Write the modified XML back to the file
# with open(file_path, "wb") as file:
# file.write(soup.encode("utf-8") + b"\n")
# Use standard string replace instead
with open(file_path, "r", encoding="utf-8") as file:
content = file.read()
new = ""
for line in content.splitlines():
if not f'id="{translation_id}"' in line:
new += line + "\n"
with open(file_path, "w", encoding="utf-8") as file:
file.write(new)
def main(translation_id: str) -> None:
"""
Main function to process all XML files.
:param translation_id: The id of the translation to remove.
"""
xml_files = []
for directory in os.listdir("."):
if os.path.isdir(directory) and "resources-" in directory:
xml_file_path = os.path.join(directory, "strings", "strings.xml")
if os.path.exists(xml_file_path):
xml_files.append(xml_file_path)
for xml_file in xml_files:
print(f"Processing file: {xml_file}")
remove_translations(xml_file, translation_id)
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: python removeTranslations.py <id>")
sys.exit(1)
translation_id = sys.argv[1]
main(translation_id)

View File

@@ -9,31 +9,93 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Arabic
تم إنشاؤها بواسطة ترجمة جوجل من الإنجليزية
Generated by Google Translate and gemini-2.5-flash from English to Arabic
تم الإنشاء بواسطة ترجمة جوجل و gemini-2.5-flash من الإنجليزية إلى العربية
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">على</string>
<string id="MenuItemOff">عن</string>
<string id="MenuItemTap">مقبض</string>
<string id="MenuItemMenu">قائمة طعام</string>
<string id="NoPhone">لا يوجد اتصال الهاتف</string>
<string id="NoInternet">لا يوجد اتصال بالإنترنت</string>
<string id="NoResponse">لا توجد استجابة، تحقق من الاتصال بالإنترنت</string>
<string id="NoMenu">خطأ في إحضار القائمة</string>
<string id="NoAPIKey">لا يوجد مفتاح API في إعدادات التطبيق</string>
<string id="NoApiUrl">لا يوجد عنوان URL لواجهة برمجة التطبيقات في إعدادات التطبيق</string>
<string id="NoConfigUrl">لا يوجد عنوان URL للتكوين في إعدادات التطبيق</string>
<string id="ApiFlood">مكالمات API سريعة جدًا. يرجى إبطاء طلباتك.</string>
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. خطأ محتمل في عنوان URL لواجهة برمجة التطبيقات في الإعدادات.</string>
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. خطأ محتمل في عنوان URL للتكوين في الإعدادات.</string>
<string id="UnhandledHttpErr">قام طلب HTTP بإرجاع رمز الخطأ =</string>
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL لواجهة برمجة التطبيقات على شرطة مائلة لاحقة '/'</string>
<string id="ApiFlood">مكالمات API سريعة للغاية. يرجى إبطاء طلباتك.</string>
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص بـ
API في الإعدادات.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">متاح</string>
<string id="Cached" scope="glance">مخزّن مؤقتًا</string>
<string id="Checking" scope="glance">التحقق ...</string>
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص
بالتكوين في الإعدادات.</string>
<string id="Confirm">بالتأكيد؟</string>
<string id="Empty">فارغ</string>
<string id="Executed" scope="glance">مؤكد</string>
<string id="GlanceMenu" scope="glance">قائمة</string>
<string id="Memory" scope="glance">ذاكرة</string>
<string id="MenuUpdated">تم تحديث القائمة، أعد التشغيل.</string>
<string id="MenuCheckDisabled">تم تعطيل تحديثات القائمة.</string>
<string id="NoAPIKey" scope="glance">لا يوجد مفتاح API في إعدادات التطبيق.</string>
<string id="NoApiUrl" scope="glance">لا يوجد عنوان URL لـ API في إعدادات التطبيق.</string>
<string id="NoConfigUrl" scope="glance">لا يوجد عنوان URL للتكوين في إعدادات التطبيق.</string>
<string id="NoInternet">لا يوجد اتصال بالإنترنت.</string>
<string id="NoJson">لم يتم إرجاع أي JSON من طلب HTTP.</string>
<string id="NoPhone" scope="glance">لا يوجد اتصال هاتفي.</string>
<string id="NoPhoneNoCache" scope="glance">لا يوجد اتصال بالهاتف، لا توجد قائمة مخزنة مؤقتًا.</string>
<string id="NoResponse">لا توجد استجابة، تحقق من اتصال الإنترنت.</string>
<string id="TimedOut">انتهت مهلة الطلب</string>
<string id="PinInputLocked">إدخال رمز PIN مغلق لمدة</string>
<string id="PotentialError">خطأ محتمل</string>
<string id="Seconds">ثوان</string>
<string id="TemplateError">خطأ قالب</string>
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL الخاص بـ API على شرطة مائلة في النهاية '/'.</string>
<string id="Unavailable" scope="glance">غير متاح</string>
<string id="Unconfigured" scope="glance">غير مهيأ</string>
<string id="UnhandledHttpErr">أرجع طلب HTTP رمز الخطأ =</string>
<string id="WebhookFailed">فشل في تسجيل Webhook</string>
<string id="WrongPin">رمز PIN خاطئ</string>
<string id="WifiLteNotAvailable">لا يتوفر Wi-Fi أو LTE</string>
<string id="WifiLtePrompt">التنفيذ عبر Wi-Fi/LTE؟</string>
<string id="WifiLteExecutionTitle">إرسال إلى Home Assistant.</string>
<string id="WifiLteExecutionDataError">لم يتم استلام البيانات.</string>
<!-- بالنسبة للإعدادات واجهة المستخدم الرسومية ، يجب أن تكون السلاسل بالترتيب المستخدمة. -->
<string id="SettingsSelect">تحديد...</string>
<string id="SettingsApiKey">مفتاح API لـ HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">رمز وصول طويل الأمد.</string>
<string id="SettingsApiUrl">عنوان URL لـ HomeAssistant API.</string>
<string id="SettingsConfigUrl">عنوان URL لتكوين القائمة (JSON).</string>
<string id="SettingsCacheConfig">هل يجب على التطبيق تخزين تكوين القائمة مؤقتًا؟</string>
<string id="SettingsClearCache">هل يجب على التطبيق مسح ذاكرة التخزين المؤقت الموجودة في المرة
القادمة التي يتم فيها بدء تشغيلها؟</string>
<string id="SettingsEnableMenuUpdateCheck">التحقق من تحديثات القائمة عند بدء تشغيل التطبيق؟ ملاحظة: يجب تمكين تخزين القائمة مؤقتًا. قد يتسبب هذا الإعداد في تعطل الأجهزة القديمة ذات الذاكرة الأقل.</string>
<string id="SettingsWifiLteExecutionEnable">تمكين تنفيذ الأوامر عبر Wi-Fi/LTE.</string>
<string id="SettingsVibration">هل يجب أن يوفر التطبيق تغذية راجعة عبر الاهتزازات؟</string>
<string id="SettingsAppTimeout">مهلة بالثواني. يتم الخروج من التطبيق بعد هذه الفترة من عدم النشاط
لحفظ بطارية الجهاز.</string>
<string id="SettingsPollDelay">تأخير استطلاع إضافي (بالثواني). يضيف تأخيرًا بين تحديث الحالة لجميع
عناصر القائمة.</string>
<string id="SettingsConfirmTimeout">بعد هذا الوقت (بالثواني)، يتم إغلاق مربع حوار تأكيد لإجراء ما
تلقائيًا ويتم إلغاء الإجراء. اضبط على 0 لتعطيل المهلة.</string>
<string id="SettingsPin">رمز PIN مكون من 4 أرقام لاستخدامه في جميع الإجراءات التي تتطلب ذلك
(0000-9999).</string>
<string id="SettingsPinError">يرجى تكوين رمز PIN رقمي مكون من 4 أرقام بين 0000 و 9999 في إعدادات
التطبيق.</string>
<string id="SettingsTextAlign">محاذاة القائمة: لليسار (إيقاف) أو لليمين (تشغيل).</string>
<string id="SettingsLeftToRight">من اليسار إلى اليمين</string>
<string id="SettingsRightToLeft">من اليمين إلى اليسار</string>
<string id="SettingsWidgetStart">(عنصر واجهة المستخدم فقط) ابدأ التطبيق تلقائيًا من عنصر واجهة
المستخدم دون انتظار النقر.</string>
<string id="SettingsEnableBatteryLevel">تمكين خدمة الخلفية لإرسال مستوى بطارية الجهاز والموقع
وبيانات النشاط (إذا كانت مدعومة) إلى Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر فيه خدمة
الخلفية إرسال البيانات.</string>
<string id="SettingsUserHttpHeader">رأس HTTP مقدم من المستخدم</string>
<string id="SettingsUserHttpHeaderDescription">تتطلب بعض عمليات تثبيت Home Assistant تحديد رأس
HTTP مخصص لكي تعمل.</string>
<string id="SettingsUserHttpHeaderName">رأس HTTP مقدم من المستخدم: الاسم</string>
<string id="SettingsUserHttpHeaderValue">رأس HTTP مقدم من المستخدم: القيمة</string>
<string id="SettingsClearWebhookId">أعد الاتصال بـ Home Assistant (مسح معرف Webhook، انظر دليل
استكشاف الأخطاء وإصلاحها).</string>
<string id="SettingsWebhookId">(للقراءة فقط) معرف Webhook الذي تم إنشاؤه بواسطة الجهاز لتحديثات
خدمة الخلفية. قد تحتاج هذا لتصحيح الأخطاء.</string>
</strings>

View File

@@ -9,31 +9,79 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Bulgarian
Генерирано от Google Translate от английски
Generated by Google Translate and gemini-2.5-flash from English to Bulgarian
Генерирано от Google Translate и gemini-2.5-flash от английски на български
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">На</string>
<string id="MenuItemOff">Изкл</string>
<string id="MenuItemTap">Докоснете</string>
<string id="MenuItemMenu">Меню</string>
<string id="NoPhone">Няма телефонна връзка</string>
<string id="NoInternet">Няма интернет връзка</string>
<string id="NoResponse">Няма отговор, проверете интернет връзката</string>
<string id="NoMenu">Грешка при извличане на менюто</string>
<string id="NoAPIKey">Няма API ключ в настройките на приложението</string>
<string id="NoApiUrl">Няма URL адрес на API в настройките на приложението</string>
<string id="NoConfigUrl">Няма конфигурационен URL адрес в настройките на приложението</string>
<string id="ApiFlood">Извикванията на API са твърде бързи. Моля, забавете вашите заявки.</string>
<string id="ApiUrlNotFound">URL не е намерен. Потенциална грешка в URL адреса на API в настройките.</string>
<string id="ConfigUrlNotFound">URL не е намерен. Потенциална грешка в URL адреса на конфигурацията в настройките.</string>
<string id="UnhandledHttpErr">HTTP заявката върна код на грешка =</string>
<string id="TrailingSlashErr">URL адресът на API не трябва да има наклонена черта '/' в края</string>
<string id="ApiFlood">API повикванията са твърде чести. Моля, забавете заявките си.</string>
<string id="ApiUrlNotFound">URL адрес не е намерен. Потенциална грешка в URL адреса на API в настройките.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">На разположение</string>
<string id="Cached" scope="glance">Кеширан</string>
<string id="Checking" scope="glance">Проверка ...</string>
<string id="ConfigUrlNotFound">URL адрес не е намерен. Възможна грешка в URL адреса за конфигурация в настройките.</string>
<string id="Confirm">Сигурно?</string>
<string id="Empty">Празен</string>
<string id="Executed" scope="glance">Потвърдено</string>
<string id="GlanceMenu" scope="glance">Меню</string>
<string id="Memory" scope="glance">Памет</string>
<string id="MenuUpdated">Менюто е обновено, рестартирайте.</string>
<string id="MenuCheckDisabled">Актуализациите на менюто са деактивирани.</string>
<string id="NoAPIKey" scope="glance">Няма ключ за API в настройките на приложението.</string>
<string id="NoApiUrl" scope="glance">Няма URL адрес на API в настройките на приложението.</string>
<string id="NoConfigUrl" scope="glance">Няма URL адрес за конфигурация в настройките на приложението.</string>
<string id="NoInternet">Няма интернет връзка.</string>
<string id="NoJson">Не е върнат JSON от HTTP заявка.</string>
<string id="NoPhone" scope="glance">Няма телефонна връзка.</string>
<string id="NoPhoneNoCache" scope="glance">Няма телефонна връзка, няма кеширано меню.</string>
<string id="NoResponse">Няма отговор, проверете интернет връзката.</string>
<string id="TimedOut">Заявка изтече</string>
<string id="PinInputLocked">Въвеждането на ПИН е заключено за</string>
<string id="PotentialError">Потенциална грешка</string>
<string id="Seconds">секунди</string>
<string id="TemplateError">Грешка в шаблона</string>
<string id="TrailingSlashErr">URL адресът на API не трябва да завършва с наклонена черта '/'.</string>
<string id="Unavailable" scope="glance">Недостъпни</string>
<string id="Unconfigured" scope="glance">Неконфигуриран</string>
<string id="UnhandledHttpErr">HTTP заявката върна код за грешка = </string>
<string id="WebhookFailed">Неуспешна регистрация на Webhook</string>
<string id="WrongPin">Грешен ПИН</string>
<string id="WifiLteNotAvailable">Няма налични Wi-Fi или LTE</string>
<string id="WifiLtePrompt">Изпълнете над Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Изпращане до Home Assistant.</string>
<string id="WifiLteExecutionDataError">Няма получени данни.</string>
<!-- За GUI на настройките, низовете трябва да са в реда, в който се използват. -->
<string id="SettingsSelect">Изберете ...</string>
<string id="SettingsApiKey">API ключ за Home Assistant.</string>
<string id="SettingsApiKeyPrompt">Дълготраен маркер за достъп.</string>
<string id="SettingsApiUrl">URL за Home Assistant API.</string>
<string id="SettingsConfigUrl">URL за конфигуриране на менюто (JSON).</string>
<string id="SettingsCacheConfig">Трябва ли приложението да кешира конфигурацията на менюто?</string>
<string id="SettingsClearCache">Трябва ли приложението да изчисти съществуващия кеш следващия път, когато бъде стартирано?</string>
<string id="SettingsEnableMenuUpdateCheck">Проверка за актуализации на менюто при стартиране на приложението? Забележка: Кеширането на менюто трябва да е активирано. Тази настройка може да доведе до срив на по-стари устройства с по-малко памет.</string>
<string id="SettingsWifiLteExecutionEnable">Активиране на изпълнение на команди над Wi-Fi/LTE.</string>
<string id="SettingsVibration">Трябва ли приложението да предоставя обратна връзка чрез вибрации?</string>
<string id="SettingsAppTimeout">Време за изчакване в секунди. Излезте от приложението след този период на бездействие, за да запазите батерията на устройството.</string>
<string id="SettingsPollDelay">Допълнително забавяне на опресняването (в секунди). Добавя забавяне между актуализацията на състоянието на всички елементи от менюто.</string>
<string id="SettingsConfirmTimeout">След това време (в секунди) диалоговият прозорец за потвърждение за действие автоматично се затваря и действието се отменя. Задайте на 0, за да деактивирате изчакването.</string>
<string id="SettingsPin">4-цифрен ПИН, който ще се използва за всички действия, които го изискват (0000-9999).</string>
<string id="SettingsPinError">Моля, конфигурирайте валиден 4-цифрен цифров ПИН между 0000 и 9999 в настройките на приложението.</string>
<string id="SettingsTextAlign">Наляво (изключено) или вдясно (включено) изравняване на менюто.</string>
<string id="SettingsLeftToRight">Отляво надясно</string>
<string id="SettingsRightToLeft">Отдясно наляво</string>
<string id="SettingsWidgetStart">(Само при джаджа) Приложението се стартира автоматично от джаджата, без да се чака докосване.</string>
<string id="SettingsEnableBatteryLevel">Активиране на фоновата услуга за изпращане на нивото на батерията на устройството, местоположението и (ако се поддържа) данни за активност към Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Скоростта на опресняване (в минути), при която фоновата услуга трябва да повтаря изпращането на данни.</string>
<string id="SettingsUserHttpHeader">Потребителска HTTP заглавка</string>
<string id="SettingsUserHttpHeaderDescription">Някои инсталации на Home Assistant изискват специфицирането на персонализирана HTTP заглавка, за да функционират.</string>
<string id="SettingsUserHttpHeaderName">Потребителска HTTP заглавка: Име</string>
<string id="SettingsUserHttpHeaderValue">Потребителска HTTP заглавка: Стойност</string>
<string id="SettingsClearWebhookId">Свържете се отново с Home Assistant (изчистване на Webhook ID, вижте ръководството за отстраняване на неизправности).</string>
<string id="SettingsWebhookId">(Само за четене) Webhook ID, създаден от устройството за актуализации на фоновите услуги. Може да ви е необходим за отстраняване на грешки.</string>
</strings>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Distributed under MIT Licence
See https://github.com/house-of-abbey/GarminHomeAssistantWidget/blob/main/LICENSE.
GarminHomeAssistantWidget is a Garmin IQ widget written in Monkey C. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistantWidget.
P A Abbey & J D Abbey & Someone0nEarth, 15 April 2024
-->
<!--
Corrections for the Czech language
Opravy pro český jazyk
-->
<strings>
<string id="Confirm">Určitě?</string>
<string id="Available">Dostupné</string>
<string id="GlanceMenu">Menu</string>
</strings>

View File

@@ -9,31 +9,79 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Czech
Generováno překladačem Google z angličtiny
Generated by Google Translate and gemini-2.5-flash from English to Czech
Vygenerováno pomocí Google Translate a gemini-2.5-flash z angličtiny do češtiny
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Na</string>
<string id="MenuItemOff">Vypnuto</string>
<string id="MenuItemTap">Klepněte</string>
<string id="MenuItemMenu">Jídelní lístek</string>
<string id="NoPhone">Žádné telefonní spojení</string>
<string id="NoInternet">Žádné internetové připojení</string>
<string id="NoResponse">Žádná odpověď, zkontrolujte připojení k internetu</string>
<string id="NoMenu">Chyba načítání nabídky</string>
<string id="NoAPIKey">V nastavení aplikace není žádný klíč API</string>
<string id="NoApiUrl">V nastavení aplikace není žádná adresa URL API</string>
<string id="NoConfigUrl">V nastavení aplikace není žádná konfigurační URL</string>
<string id="ApiFlood">Příliš rychlá volání API. Zpomalte prosím své požadavky.</string>
<string id="ApiUrlNotFound">Adresa URL nenalezena. Potenciální chyba adresy URL rozhraní API v nastavení.</string>
<string id="ConfigUrlNotFound">Adresa URL nenalezena. Potenciální chyba konfigurační adresy URL v nastavení.</string>
<string id="UnhandledHttpErr">Požadavek HTTP vrátil kód chyby =</string>
<string id="TrailingSlashErr">Adresa URL rozhraní API nesmí mít koncové lomítko „/“</string>
<string id="ApiFlood">Volání API jsou příliš rychlá. Prosím, zpomalte své požadavky.</string>
<string id="ApiUrlNotFound">URL nebyla nalezena. Potenciální chyba URL API v nastavení.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Dostupné</string>
<string id="Cached" scope="glance">V mezipaměti</string>
<string id="Checking" scope="glance">Kontrola ...</string>
<string id="ConfigUrlNotFound">URL nebyla nalezena. Potenciální chyba URL konfigurace v nastavení.</string>
<string id="Confirm">Určitě?</string>
<string id="Empty">Prázdný</string>
<string id="Executed" scope="glance">Potvrzeno</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Paměť</string>
<string id="MenuUpdated">Menu aktualizováno, restartujte.</string>
<string id="MenuCheckDisabled">Aktualizace menu zakázány.</string>
<string id="NoAPIKey" scope="glance">Žádný klíč API v nastavení aplikace.</string>
<string id="NoApiUrl" scope="glance">Žádná URL API v nastavení aplikace.</string>
<string id="NoConfigUrl" scope="glance">Žádná konfigurační URL v nastavení aplikace.</string>
<string id="NoInternet">Žádné připojení k internetu.</string>
<string id="NoJson">Žádný JSON se nevrátil z požadavku HTTP.</string>
<string id="NoPhone" scope="glance">Žádné telefonní připojení.</string>
<string id="NoPhoneNoCache" scope="glance">Žádné připojení telefonu, žádné menu v mezipaměti.</string>
<string id="NoResponse">Žádná odpověď, zkontrolujte připojení k internetu.</string>
<string id="TimedOut">Vypršel časový limit požadavku.</string>
<string id="PinInputLocked">Vstup PIN uzamčen na</string>
<string id="PotentialError">Potenciální chyba</string>
<string id="Seconds">sekundy</string>
<string id="TemplateError">Chyba šablony</string>
<string id="TrailingSlashErr">URL API nesmí mít koncové lomítko '/'.</string>
<string id="Unavailable" scope="glance">Nedostupné</string>
<string id="Unconfigured" scope="glance">Nekonfigurované</string>
<string id="UnhandledHttpErr">HTTP požadavek vrátil chybový kód =</string>
<string id="WebhookFailed">Nepodařilo se zaregistrovat Webhook</string>
<string id="WrongPin">Špatný PIN</string>
<string id="WifiLteNotAvailable">Není k dispozici žádné Wi-Fi nebo LTE</string>
<string id="WifiLtePrompt">Provést přes Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Odesílám do Home Assistant.</string>
<string id="WifiLteExecutionDataError">Nebyla přijata žádná data.</string>
<!-- Pro GUI nastavení by měly být řetězce v pořadí, které jsou použity. -->
<string id="SettingsSelect">Vybrat...</string>
<string id="SettingsApiKey">Klíč API pro HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Dlouhodobý přístupový token.</string>
<string id="SettingsApiUrl">URL pro HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL pro konfiguraci nabídky (JSON).</string>
<string id="SettingsCacheConfig">Měla by aplikace ukládat konfiguraci nabídky?</string>
<string id="SettingsClearCache">Měla by aplikace vymazat stávající mezipaměť při příštím spuštění?</string>
<string id="SettingsEnableMenuUpdateCheck">Kontrolovat aktualizace menu při spuštění aplikace? Poznámka: Ukládání menu do mezipaměti musí být povoleno. Toto nastavení může způsobit pád starších zařízení s menší pamětí.</string>
<string id="SettingsWifiLteExecutionEnable">Povolit provádění příkazů přes Wi-Fi/LTE.</string>
<string id="SettingsVibration">Měla by aplikace poskytovat zpětnou vazbu prostřednictvím vibrací?</string>
<string id="SettingsAppTimeout">Časový limit v sekundách. Ukončete aplikaci po této době nečinnosti, abyste šetřili baterii zařízení.</string>
<string id="SettingsPollDelay">Další zpoždění dotazování (v sekundách). Přidá zpoždění mezi aktualizací stavu všech položek nabídky.</string>
<string id="SettingsConfirmTimeout">Po této době (v sekundách) je potvrzovací dialog pro akci automaticky uzavřen a akce je zrušena. Nastavte na 0 pro deaktivaci časového limitu.</string>
<string id="SettingsPin">4místný PIN, který se má použít pro všechny akce, které jej vyžadují (0000-9999).</string>
<string id="SettingsPinError">Nakonfigurujte prosím platný čtyřmístný číselný PIN mezi 0000 a 9999 v nastavení aplikace.</string>
<string id="SettingsTextAlign">Vlevo (vypnuto) nebo vpravo (zapnuto) zarovnání nabídky.</string>
<string id="SettingsLeftToRight">Zleva doprava</string>
<string id="SettingsRightToLeft">Vpravo doleva</string>
<string id="SettingsWidgetStart">(Pouze widget) Automatické spuštění aplikace z widgetu bez čekání na klepnutí.</string>
<string id="SettingsEnableBatteryLevel">Povolit službě na pozadí odesílat úroveň baterie zařízení, jeho polohu a (pokud je podporováno) údaje o aktivitě do Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Frekvence aktualizace (v minutách), s jakou má služba na pozadí opakovaně odesílat data.</string>
<string id="SettingsUserHttpHeader">Uživatelská hlavička HTTP</string>
<string id="SettingsUserHttpHeaderDescription">Některé instalace Home Assistant vyžadují specifikaci vlastní hlavičky HTTP pro správnou funkci.</string>
<string id="SettingsUserHttpHeaderName">Uživatelská hlavička HTTP: Název</string>
<string id="SettingsUserHttpHeaderValue">Uživatelská hlavička HTTP: Hodnota</string>
<string id="SettingsClearWebhookId">Znovu se připojte k Home Assistant (vymazat ID Webhooku, viz příručka pro odstraňování problémů).</string>
<string id="SettingsWebhookId">(Pouze pro čtení) ID Webhooku vytvořené zařízením pro aktualizace služby na pozadí. Možná to budete potřebovat pro ladění.</string>
</strings>

View File

@@ -9,31 +9,79 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Danish
Genereret af Google Translate fra engelsk
Generated by Google Translate and gemini-2.5-flash from English to Danish
Genereret af Google Translate og gemini-2.5-flash fra engelsk til dansk
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">Af</string>
<string id="MenuItemTap">Tryk på</string>
<string id="MenuItemMenu">Menu</string>
<string id="NoPhone">Ingen telefonforbindelse</string>
<string id="NoInternet">Ingen internetforbindelse</string>
<string id="NoResponse">Intet svar, tjek internetforbindelse</string>
<string id="NoMenu">Fejl ved menuhentning</string>
<string id="NoAPIKey">Ingen API-nøgle i applikationsindstillingerne</string>
<string id="NoApiUrl">Ingen API-URL i applikationsindstillingerne</string>
<string id="NoConfigUrl">Ingen konfigurations-URL i applikationsindstillingerne</string>
<string id="ApiFlood">API-kald for hurtigt. Sænk venligst dine anmodninger.</string>
<string id="ApiUrlNotFound">URL ikke fundet. Potentiel API URL-fejl i indstillinger.</string>
<string id="ApiFlood">API-kald er for hyppige. Sænk venligst dine anmodninger.</string>
<string id="ApiUrlNotFound">URL ikke fundet. Potentiel API-URL-fejl i indstillinger.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Tilgængelig</string>
<string id="Cached" scope="glance">Cachelagret</string>
<string id="Checking" scope="glance">Kontrollerer...</string>
<string id="ConfigUrlNotFound">URL ikke fundet. Potentiel konfigurations-URL-fejl i indstillinger.</string>
<string id="UnhandledHttpErr">HTTP-anmodning returnerede fejlkode =</string>
<string id="TrailingSlashErr">API URL må ikke have en efterfølgende skråstreg '/'</string>
<string id="Confirm">Sikker?</string>
<string id="Empty">Tom</string>
<string id="Executed" scope="glance">Bekræftet</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Hukommelse</string>
<string id="MenuUpdated">Menu opdateret, genstart.</string>
<string id="MenuCheckDisabled">Menuopdateringer deaktiveret.</string>
<string id="NoAPIKey" scope="glance">Ingen API-nøgle i applikationsindstillingerne.</string>
<string id="NoApiUrl" scope="glance">Ingen API-URL i applikationsindstillingerne.</string>
<string id="NoConfigUrl" scope="glance">Ingen konfigurations-URL i applikationsindstillingerne.</string>
<string id="NoInternet">Ingen internetforbindelse.</string>
<string id="NoJson">Ingen JSON modtaget fra HTTP-anmodning.</string>
<string id="NoPhone" scope="glance">Ingen telefonforbindelse.</string>
<string id="NoPhoneNoCache" scope="glance">Ingen telefonforbindelse, ingen cachelagret menu.</string>
<string id="NoResponse">Intet svar, tjek internetforbindelsen.</string>
<string id="TimedOut">Anmodning udløb</string>
<string id="PinInputLocked">PIN-indtastning låst i</string>
<string id="PotentialError">Potentiel fejl</string>
<string id="Seconds">sekunder</string>
<string id="TemplateError">Skabelonfejl</string>
<string id="TrailingSlashErr">API-URL må ikke have en afsluttende skråstreg '/'.</string>
<string id="Unavailable" scope="glance">Utilgængelig</string>
<string id="Unconfigured" scope="glance">Ukonfigureret</string>
<string id="UnhandledHttpErr">HTTP-anmodning returnerede fejlkode = </string>
<string id="WebhookFailed">Kunne ikke registrere webhook</string>
<string id="WrongPin">Forkert PIN</string>
<string id="WifiLteNotAvailable">Ingen Wi-Fi eller LTE tilgængelig</string>
<string id="WifiLtePrompt">Udfør via Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Sender til Home Assistant.</string>
<string id="WifiLteExecutionDataError">Ingen data modtaget.</string>
<!-- For indstillingerne GUI skal strenge være i den rækkefølge, de bruges. -->
<string id="SettingsSelect">Vælg...</string>
<string id="SettingsApiKey">API-nøgle til Home Assistant.</string>
<string id="SettingsApiKeyPrompt">Langvarig adgangstoken.</string>
<string id="SettingsApiUrl">URL til Home Assistant API.</string>
<string id="SettingsConfigUrl">URL til menukonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Skal applikationen cachelagre menukonfigurationen?</string>
<string id="SettingsClearCache">Bør applikationen rydde den eksisterende cache næste gang den startes?</string>
<string id="SettingsEnableMenuUpdateCheck">Kontroller for menuopdateringer på applikationsstart? Bemærk: Menu Cache skal være aktiveret. Denne indstilling kan forårsage, at ældre enheder med mindre hukommelse går ned.</string>
<string id="SettingsWifiLteExecutionEnable">Aktivér udførelse af kommandoer over Wi-Fi/LTE.</string>
<string id="SettingsVibration">Bør applikationen give feedback via vibrationer?</string>
<string id="SettingsAppTimeout">Timeout i sekunder. Afslut applikationen efter denne periode med inaktivitet for at spare på enhedens batteri.</string>
<string id="SettingsPollDelay">Yderligere afstemningsforsinkelse (i sekunder). Tilføjer en forsinkelse mellem statusopdateringen af alle menupunkter.</string>
<string id="SettingsConfirmTimeout">Efter denne tid (i sekunder) lukkes en bekræftelsesdialog for en handling automatisk, og handlingen annulleres. Indstil til 0 for at deaktivere timeout.</string>
<string id="SettingsPin">4-cifret PIN, der skal bruges til alle handlinger, der kræver det (0000-9999).</string>
<string id="SettingsPinError">Konfigurer venligst en gyldig 4-cifret numerisk PIN mellem 0000 og 9999 i applikationsindstillingerne.</string>
<string id="SettingsTextAlign">Venstre (fra) eller højre (til) menujustering.</string>
<string id="SettingsLeftToRight">Venstre til højre</string>
<string id="SettingsRightToLeft">Højre til venstre</string>
<string id="SettingsWidgetStart">(Kun widget) Start automatisk applikationen fra widgetten uden at vente på et tryk.</string>
<string id="SettingsEnableBatteryLevel">Aktivér baggrundstjenesten til at sende enhedens batteriniveau, lokation og (hvis understøttet) aktivitetsdata til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Opdateringshastigheden (i minutter), hvormed baggrundstjenesten skal gentage afsendelse af data.</string>
<string id="SettingsUserHttpHeader">Brugerdefineret HTTP-header</string>
<string id="SettingsUserHttpHeaderDescription">Nogle Home Assistant-installationer kræver angivelse af en brugerdefineret HTTP-header for at fungere.</string>
<string id="SettingsUserHttpHeaderName">Brugerdefineret HTTP-header: Navn</string>
<string id="SettingsUserHttpHeaderValue">Brugerdefineret HTTP-header: Værdi</string>
<string id="SettingsClearWebhookId">Opret forbindelse igen til Home Assistant (ryd Webhook-ID, se fejlfindingsguide).</string>
<string id="SettingsWebhookId">(Kun læsning) Webhook-ID'et oprettet af enheden til opdateringer fra baggrundstjenesten. Du kan få brug for dette til fejlfinding.</string>
</strings>

View File

@@ -9,17 +9,72 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 14 November 2023
P A Abbey & J D Abbey & Someone0nEarth, 14 November 2023
-->
<!--
Corrections for the German language
Korrekturen für die deutsche Sprache
Contributors:
Someone0nEarth
tarekbecker
moesterheld
tispokes
-->
<strings>
<string id="MenuItemTap">Antippen</string>
<string id="MenuItemMenu">Menü</string>
<string id="ApiFlood">Zu viele API-Aufrufe in kurzer Zeit. Bitte verlangsame deine Anfragen.</string>
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher Fehler in der API-URL in den Einstellungen.</string>
<string id="Available" scope="glance">OK</string>
<string id="Cached" scope="glance">gecacht</string>
<string id="Checking" scope="glance">Prüfe...</string>
<string id="ConfigUrlNotFound">URL nicht gefunden. Möglicherweise falsche Konfigurations-URL in den Einstellungen.</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Speicher</string>
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den App-Einstellungen hinterlegt.</string>
<string id="NoApiUrl" scope="glance">Keine API-URL in den App-Einstellungen hinterlegt.</string>
<string id="NoConfigUrl" scope="glance">Keine Menükonfigurations-URL (JSON) in den App-Einstellungen hinterlegt.</string>
<string id="NoJson">Keine JSON-Datei aus der HTTP-Anfrage zurückbekommen.</string>
<string id="NoPhoneNoCache" scope="glance">Keine Telefonverbindung und kein gecachtes Menü.</string>
<string id="NoResponse">Keine Antwort, bitte Internetverbindung prüfen.</string>
<string id="TimedOut">Anfragezeit überschritten.</string>
<string id="PinInputLocked">PIN-Eingabe gesperrt für</string>
<string id="PotentialError">Möglicher Fehler</string>
<string id="TemplateError">Template konnte nicht gerendert werden</string>
<string id="TrailingSlashErr">API-URL darf nicht mit einem Schrägstrich '/' enden.</string>
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
<string id="WebhookFailed">Webhook-Registrierung fehlgeschlagen.</string>
<string id="WrongPin">Falsche PIN.</string>
<string id="WifiLteNotAvailable">Kein WLAN oder LTE verfügbar.</string>
<string id="WifiLtePrompt">Über WLAN/LTE ausführen?</string>
<string id="WifiLteExecutionTitle">Sende an Home Assistant.</string>
<string id="WifiLteExecutionDataError">Keine Daten empfangen.</string>
<!-- Für die Einstellungs-GUI: Reihenfolge entspricht der Nutzung -->
<string id="SettingsSelect">Auswählen...</string>
<string id="SettingsApiKey">API-Schlüssel für HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Langzeit-Zugangstoken.</string>
<string id="SettingsApiUrl">URL der HomeAssistant-API.</string>
<string id="SettingsConfigUrl">URL für die Menükonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Soll die App die Menükonfiguration cachen?</string>
<string id="SettingsClearCache">Soll die Anwendung beim nächsten Start den vorhandenen Cache löschen?</string>
<string id="SettingsWifiLteExecutionEnable">Befehlsausführung über WLAN/LTE aktivieren.</string>
<string id="SettingsVibration">Soll die App Rückmeldung per Vibration geben?</string>
<string id="SettingsAppTimeout">Timeout in Sekunden. Beendet die App nach dieser Inaktivitätszeit, um Akku zu sparen.</string>
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt zwischen den Status-Updates der Menüeinträge eine Pause ein.</string>
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird ein Bestätigungsdialog automatisch geschlossen und die Aktion abgebrochen. Mit 0 deaktivieren.</string>
<string id="SettingsPin">4-stellige PIN für alle Aktionen, die diese erfordern (0000-9999).</string>
<string id="SettingsPinError">Bitte eine gültige 4-stellige numerische PIN in den App Einstellungen eingeben (0000-9999).</string>
<string id="SettingsTextAlign">Menüausrichtung: Links (aus) oder Rechts (ein).</string>
<string id="SettingsRightToLeft">Von rechts nach links</string>
<string id="SettingsWidgetStart">(Nur Widget) App automatisch aus dem Widget starten, ohne auf Tippen zu warten.</string>
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um Akkustand, Standort und (falls unterstützt) Aktivitätsdaten an Home Assistant zu senden.</string>
<string id="SettingsBatteryLevelRefreshRate">Intervall (in Minuten), in dem der Hintergrunddienst die Daten erneut senden soll.</string>
<string id="SettingsUserHttpHeader">Zusätzlicher HTTP-Header</string>
<string id="SettingsUserHttpHeaderDescription">Einige Home Assistant-Installationen erfordern die Angabe eines benutzerdefinierten HTTP-Headers, um zu funktionieren.</string>
<string id="SettingsUserHttpHeaderName">Zusätzlicher HTTP-Header: Name</string>
<string id="SettingsUserHttpHeaderValue">Zusätzlicher HTTP-Header: Value</string>
<string id="SettingsWebhookId">(Nur lesen) Die vom Gerät erstellte Webhook-ID für Hintergrund-Updates. Kann zum Debuggen benötigt werden.</string>
</strings>

View File

@@ -9,31 +9,79 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to German
Erstellt durch Google Translate aus dem Englischen
Generated by Google Translate and gemini-2.5-flash from English to German
Generiert von Google Translate und gemini-2.5-flash aus dem Englischen ins Deutsche
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">An</string>
<string id="MenuItemOff">Aus</string>
<string id="MenuItemTap">Antippen</string>
<string id="MenuItemMenu">Menü</string>
<string id="NoPhone">Keine Telefonverbindung</string>
<string id="NoInternet">Keine Internetverbindung</string>
<string id="NoResponse">Keine Antwort, überprüfen Sie die Internetverbindung</string>
<string id="NoMenu">Fehler beim Abrufen des Menüs</string>
<string id="NoAPIKey">Kein API-Schlüssel in den Anwendungseinstellungen</string>
<string id="NoApiUrl">Keine API-URL in den Anwendungseinstellungen</string>
<string id="NoConfigUrl">Keine Konfigurations-URL in den Anwendungseinstellungen</string>
<string id="ApiFlood">API-Aufrufe zu schnell. Bitte verlangsamen Sie Ihre Anfragen.</string>
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher API-URL-Fehler in den Einstellungen.</string>
<string id="ConfigUrlNotFound">URL nicht gefunden. Möglicher Konfigurations-URL-Fehler in den Einstellungen.</string>
<string id="ApiFlood">Zu viele API-Aufrufe in kurzer Zeit. Bitte verlangsame deine Anfragen.</string>
<string id="ApiUrlNotFound">URL nicht gefunden. Möglicher Fehler in der API-URL in den Einstellungen.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">OK</string>
<string id="Cached" scope="glance">gecacht</string>
<string id="Checking" scope="glance">Prüfe...</string>
<string id="ConfigUrlNotFound">URL nicht gefunden. Möglicherweise falsche Konfigurations-URL in den Einstellungen.</string>
<string id="Confirm">Sicher?</string>
<string id="Empty">Leer</string>
<string id="Executed" scope="glance">Bestätigt</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Speicher</string>
<string id="MenuUpdated">Menü aktualisiert, neu starten.</string>
<string id="MenuCheckDisabled">Menü -Updates deaktiviert.</string>
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den App-Einstellungen hinterlegt.</string>
<string id="NoApiUrl" scope="glance">Keine API-URL in den App-Einstellungen hinterlegt.</string>
<string id="NoConfigUrl" scope="glance">Keine Menükonfigurations-URL (JSON) in den App-Einstellungen hinterlegt.</string>
<string id="NoInternet">Keine Internetverbindung.</string>
<string id="NoJson">Keine JSON-Datei aus der HTTP-Anfrage zurückbekommen.</string>
<string id="NoPhone" scope="glance">Keine Telefonverbindung.</string>
<string id="NoPhoneNoCache" scope="glance">Keine Telefonverbindung und kein gecachtes Menü.</string>
<string id="NoResponse">Keine Antwort, bitte Internetverbindung prüfen.</string>
<string id="TimedOut">Anfragezeit überschritten.</string>
<string id="PinInputLocked">PIN-Eingabe gesperrt für</string>
<string id="PotentialError">Möglicher Fehler</string>
<string id="Seconds">Sekunden</string>
<string id="TemplateError">Template konnte nicht gerendert werden</string>
<string id="TrailingSlashErr">API-URL darf nicht mit einem Schrägstrich '/' enden.</string>
<string id="Unavailable" scope="glance">Nicht verfügbar</string>
<string id="Unconfigured" scope="glance">Nicht konfiguriert</string>
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
<string id="TrailingSlashErr">Die API-URL darf keinen abschließenden Schrägstrich „/“ enthalten.</string>
<string id="WebhookFailed">Webhook-Registrierung fehlgeschlagen.</string>
<string id="WrongPin">Falsche PIN.</string>
<string id="WifiLteNotAvailable">Kein WLAN oder LTE verfügbar.</string>
<string id="WifiLtePrompt">Über WLAN/LTE ausführen?</string>
<string id="WifiLteExecutionTitle">Sende an Home Assistant.</string>
<string id="WifiLteExecutionDataError">Keine Daten empfangen.</string>
<!-- Für die Einstellungs-Benutzeroberfläche sollten die Texte in der Reihenfolge ihrer Verwendung angeordnet sein. -->
<string id="SettingsSelect">Auswählen...</string>
<string id="SettingsApiKey">API-Schlüssel für HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Langzeit-Zugangstoken.</string>
<string id="SettingsApiUrl">URL der HomeAssistant-API.</string>
<string id="SettingsConfigUrl">URL für die Menükonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Soll die App die Menükonfiguration cachen?</string>
<string id="SettingsClearCache">Soll die Anwendung beim nächsten Start den vorhandenen Cache löschen?</string>
<string id="SettingsEnableMenuUpdateCheck">Überprüfen Sie die Menü -Updates für Anwendungsstart? HINWEIS: Das Menü Caching muss aktiviert sein. Diese Einstellung kann dazu führen, dass ältere Geräte mit weniger Speicher abstürzen.</string>
<string id="SettingsWifiLteExecutionEnable">Befehlsausführung über WLAN/LTE aktivieren.</string>
<string id="SettingsVibration">Soll die App Rückmeldung per Vibration geben?</string>
<string id="SettingsAppTimeout">Timeout in Sekunden. Beendet die App nach dieser Inaktivitätszeit, um Akku zu sparen.</string>
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt zwischen den Status-Updates der Menüeinträge eine Pause ein.</string>
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird ein Bestätigungsdialog automatisch geschlossen und die Aktion abgebrochen. Mit 0 deaktivieren.</string>
<string id="SettingsPin">4-stellige PIN für alle Aktionen, die diese erfordern (0000-9999).</string>
<string id="SettingsPinError">Bitte eine gültige 4-stellige numerische PIN in den App Einstellungen eingeben (0000-9999).</string>
<string id="SettingsTextAlign">Menüausrichtung: Links (aus) oder Rechts (ein).</string>
<string id="SettingsLeftToRight">Von links nach rechts</string>
<string id="SettingsRightToLeft">Von rechts nach links</string>
<string id="SettingsWidgetStart">(Nur Widget) App automatisch aus dem Widget starten, ohne auf Tippen zu warten.</string>
<string id="SettingsEnableBatteryLevel">Hintergrunddienst aktivieren, um Akkustand, Standort und (falls unterstützt) Aktivitätsdaten an Home Assistant zu senden.</string>
<string id="SettingsBatteryLevelRefreshRate">Intervall (in Minuten), in dem der Hintergrunddienst die Daten erneut senden soll.</string>
<string id="SettingsUserHttpHeader">Zusätzlicher HTTP-Header</string>
<string id="SettingsUserHttpHeaderDescription">Einige Home Assistant-Installationen erfordern die Angabe eines benutzerdefinierten HTTP-Headers, um zu funktionieren.</string>
<string id="SettingsUserHttpHeaderName">Zusätzlicher HTTP-Header: Name</string>
<string id="SettingsUserHttpHeaderValue">Zusätzlicher HTTP-Header: Value</string>
<string id="SettingsClearWebhookId">Neu mit Home Assistant verbinden (Webhook-ID löschen, siehe Fehlerbehebungshandbuch).</string>
<string id="SettingsWebhookId">(Nur lesen) Die vom Gerät erstellte Webhook-ID für Hintergrund-Updates. Kann zum Debuggen benötigt werden.</string>
</strings>

View File

@@ -9,31 +9,94 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Dutch
Gegenereerd door Google Translate uit het Engels
Generated by Google Translate and gemini-2.5-flash from English to Dutch
Gegenereerd door Google Translate en gemini-2.5-flash van Engels naar Nederlands
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Op</string>
<string id="MenuItemOff">Uit</string>
<string id="MenuItemTap">Kraan</string>
<string id="MenuItemMenu">Menu</string>
<string id="NoPhone">Geen telefoonverbinding</string>
<string id="NoInternet">Geen internet verbinding</string>
<string id="NoResponse">Geen reactie, controleer de internetverbinding</string>
<string id="NoMenu">Fout bij ophalen van menu</string>
<string id="NoAPIKey">Geen API-sleutel in de applicatie-instellingen</string>
<string id="NoApiUrl">Geen API-URL in de applicatie-instellingen</string>
<string id="NoConfigUrl">Geen configuratie-URL in de applicatie-instellingen</string>
<string id="ApiFlood">API-aanroepen te snel. Vertraag uw verzoeken.</string>
<string id="ApiUrlNotFound">URL niet gevonden. Mogelijke API-URL-fout in instellingen.</string>
<string id="ConfigUrlNotFound">URL niet gevonden. Mogelijke configuratie-URL-fout in de instellingen.</string>
<string id="ApiUrlNotFound">URL niet gevonden. Potentiële API-URL-fout in instellingen.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Beschikbaar</string>
<string id="Cached" scope="glance">In cache</string>
<string id="Checking" scope="glance">Controleren ...</string>
<string id="ConfigUrlNotFound">URL niet gevonden. Potentiële configuratie-URL-fout in
instellingen.</string>
<string id="Confirm">Zeker?</string>
<string id="Empty">Leeg</string>
<string id="Executed" scope="glance">Bevestigd</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Geheugen</string>
<string id="MenuUpdated">Menu bijgewerkt, opnieuw opstarten.</string>
<string id="MenuCheckDisabled">Menu-updates uitgeschakeld.</string>
<string id="NoAPIKey" scope="glance">Geen API-sleutel in de toepassingsinstellingen.</string>
<string id="NoApiUrl" scope="glance">Geen API-URL in de toepassingsinstellingen.</string>
<string id="NoConfigUrl" scope="glance">Geen configuratie-URL in de toepassingsinstellingen.</string>
<string id="NoInternet">Geen internetverbinding.</string>
<string id="NoJson">Geen JSON ontvangen van het HTTP-verzoek.</string>
<string id="NoPhone" scope="glance">Geen telefoonverbinding.</string>
<string id="NoPhoneNoCache" scope="glance">Geen telefoonverbinding, geen menu in de cache.</string>
<string id="NoResponse">Geen antwoord, controleer internetverbinding</string>
<string id="TimedOut">Verzoek is verlopen</string>
<string id="PinInputLocked">PIN-invoer vergrendeld voor</string>
<string id="PotentialError">Potentiële fout</string>
<string id="Seconds">seconden</string>
<string id="TemplateError">Sjabloonfout</string>
<string id="TrailingSlashErr">API-URL mag geen afsluitende schuine streep '/' hebben.</string>
<string id="Unavailable" scope="glance">Niet beschikbaar</string>
<string id="Unconfigured" scope="glance">Niet geconfigureerd</string>
<string id="UnhandledHttpErr">HTTP-verzoek retourneerde foutcode =</string>
<string id="TrailingSlashErr">API-URL mag geen afsluitende slash '/' bevatten</string>
<string id="WebhookFailed">Kon Webhook niet registreren</string>
<string id="WrongPin">Verkeerde PIN</string>
<string id="WifiLteNotAvailable">Geen Wi-Fi of LTE beschikbaar</string>
<string id="WifiLtePrompt">Uitvoeren via Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Verzenden naar homeassistent.</string>
<string id="WifiLteExecutionDataError">Geen gegevens ontvangen.</string>
<!-- Voor de instellingen-GUI moeten strings in de volgorde staan waarin ze worden gebruikt. -->
<string id="SettingsSelect">Selecteer ...</string>
<string id="SettingsApiKey">API-sleutel voor Home Assistant.</string>
<string id="SettingsApiKeyPrompt">Langdurige Access Token.</string>
<string id="SettingsApiUrl">URL voor Home Assistant API.</string>
<string id="SettingsConfigUrl">URL voor menuconfiguratie (JSON).</string>
<string id="SettingsCacheConfig">Moet de applicatie de menuconfiguratie cachen?</string>
<string id="SettingsClearCache">Moet de applicatie de bestaande cache wissen bij de volgende
start?</string>
<string id="SettingsEnableMenuUpdateCheck">Controleren op menu-updates bij het starten van de applicatie? Let op: Menu-caching moet zijn ingeschakeld. Deze instelling kan ervoor zorgen dat oudere apparaten met minder geheugen crashen.</string>
<string id="SettingsWifiLteExecutionEnable">Schakel het uitvoeren van opdrachten via Wi-Fi/LTE in.</string>
<string id="SettingsVibration">Moet de applicatie feedback geven via trillingen?</string>
<string id="SettingsAppTimeout">Time-out in seconden. Sluit de applicatie af na deze periode van
inactiviteit om de batterij van het apparaat te sparen.</string>
<string id="SettingsPollDelay">Extra pollingvertraging (in seconden). Voegt een vertraging toe
tussen de statusupdate van alle menu-items.</string>
<string id="SettingsConfirmTimeout">Na deze tijd (in seconden) wordt een
bevestigingsdialoogvenster voor een actie automatisch gesloten en wordt de actie geannuleerd.
Stel in op 0 om de time-out uit te schakelen.</string>
<string id="SettingsPin">4-cijferige PIN die moet worden gebruikt voor alle acties die dit
vereisen (0000-9999).</string>
<string id="SettingsPinError">Configureer een geldige 4-cijferige numerieke PIN tussen 0000 en
9999 in de toepassingsinstellingen.</string>
<string id="SettingsTextAlign">Links (uit) of rechts (aan) menu-uitlijning.</string>
<string id="SettingsLeftToRight">Van links naar rechts</string>
<string id="SettingsRightToLeft">Van rechts naar links</string>
<string id="SettingsWidgetStart">(Alleen widget) Start de toepassing automatisch vanuit de widget
zonder te wachten op een tik.</string>
<string id="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om het batterijniveau van
het apparaat, de locatie en (indien ondersteund) activiteitsgegevens naar Home Assistant te
verzenden.</string>
<string id="SettingsBatteryLevelRefreshRate">De verversingssnelheid (in minuten) waarbij de
achtergrondservice het verzenden van gegevens moet herhalen.</string>
<string id="SettingsUserHttpHeader">Door gebruiker opgegeven HTTP-header</string>
<string id="SettingsUserHttpHeaderDescription">Sommige Home Assistant-installaties vereisen de
specificatie van een aangepaste HTTP-header om te functioneren.</string>
<string id="SettingsUserHttpHeaderName">Door gebruiker opgegeven HTTP-header: Naam</string>
<string id="SettingsUserHttpHeaderValue">Door gebruiker opgegeven HTTP-header: Waarde</string>
<string id="SettingsClearWebhookId">Opnieuw verbinden met Home Assistant (Webhook-ID wissen, zie
Gids voor probleemoplossing).</string>
<string id="SettingsWebhookId">(Alleen lezen) De Webhook-ID die door het apparaat is gemaakt voor
updates van de achtergrondservice. Mogelijk heeft u dit nodig voor foutopsporing.</string>
</strings>

View File

@@ -9,31 +9,91 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Estonian
Loodud Google'i tõlke abil inglise keelest
Generated by Google Translate and gemini-2.5-flash from English to Estonian
Genereeritud Google Translate'i ja gemini-2.5-flashi poolt inglise keelest eesti keelde
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Peal</string>
<string id="MenuItemOff">Väljas</string>
<string id="MenuItemTap">Puudutage</string>
<string id="MenuItemMenu">Menüü</string>
<string id="NoPhone">Telefoniühendus puudub</string>
<string id="NoInternet">Interneti-ühendus puudub</string>
<string id="NoResponse">Ei reageeri, kontrollige Interneti-ühendust</string>
<string id="NoMenu">Menüü toomise viga</string>
<string id="NoAPIKey">Rakenduse seadetes pole API-võtit</string>
<string id="NoApiUrl">Rakenduse seadetes pole API URL-i</string>
<string id="NoConfigUrl">Rakenduse seadetes pole konfiguratsiooni URL-i</string>
<string id="ApiFlood">API-kõned liiga kiired. Palun aeglustage oma taotlusi.</string>
<string id="ApiFlood">API kõned on liiga kiired. Palun aeglustage oma päringuid.</string>
<string id="ApiUrlNotFound">URL-i ei leitud. Võimalik API URL-i viga seadetes.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Saadav</string>
<string id="Cached" scope="glance">Vahemällu salvestatud</string>
<string id="Checking" scope="glance">Kontrollin...</string>
<string id="ConfigUrlNotFound">URL-i ei leitud. Võimalik konfiguratsiooni URL-i viga seadetes.</string>
<string id="UnhandledHttpErr">HTTP päring tagastas veakoodi =</string>
<string id="TrailingSlashErr">API URL-i lõpus ei tohi olla kaldkriipsu „/”</string>
<string id="Confirm">Kindel?</string>
<string id="Empty">Tühi</string>
<string id="Executed" scope="glance">Kinnitatud</string>
<string id="GlanceMenu" scope="glance">Menüü</string>
<string id="Memory" scope="glance">Mälu</string>
<string id="MenuUpdated">Menüü värskendatud, taaskäivita.</string>
<string id="MenuCheckDisabled">Menüü värskendused keelatud.</string>
<string id="NoAPIKey" scope="glance">Rakenduse seadetes pole API võtit.</string>
<string id="NoApiUrl" scope="glance">Rakenduse seadetes pole API URL-i.</string>
<string id="NoConfigUrl" scope="glance">Rakenduse seadetes pole konfiguratsiooni URL-i.</string>
<string id="NoInternet">Interneti-ühendust pole.</string>
<string id="NoJson">HTTP päring ei tagastanud JSON-i.</string>
<string id="NoPhone" scope="glance">Telefoniühendust pole.</string>
<string id="NoPhoneNoCache" scope="glance">Pole telefoniühendust ega vahemällu salvestatud menüüd.</string>
<string id="NoResponse">Vastust pole, kontrollige Interneti-ühendust</string>
<string id="TimedOut">Päring aegus</string>
<string id="PinInputLocked">PIN-koodi sisestus lukustatud</string>
<string id="PotentialError">Potentsiaalne viga</string>
<string id="Seconds">sekundid</string>
<string id="TemplateError">Malli viga</string>
<string id="TrailingSlashErr">API URL-il ei tohi olla lõpus kaldkriipsu '/'.</string>
<string id="Unavailable" scope="glance">Kättesaamatu</string>
<string id="Unconfigured" scope="glance">Konfigureerimata</string>
<string id="UnhandledHttpErr">HTTP päring tagastas veakoodi = </string>
<string id="WebhookFailed">Webhooki registreerimine ebaõnnestus</string>
<string id="WrongPin">Vale PIN-kood</string>
<string id="WifiLteNotAvailable">Wi-Fi ega LTE pole saadaval</string>
<string id="WifiLtePrompt">Täita üle Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Saadan Home Assistantile.</string>
<string id="WifiLteExecutionDataError">Andmeid pole laekunud.</string>
<!-- Seadete GUI jaoks peaksid stringid olema kasutamise järjekorras. -->
<string id="SettingsSelect">Valige...</string>
<string id="SettingsApiKey">API võti Home Assistantile.</string>
<string id="SettingsApiKeyPrompt">Pikaajaline juurdepääsuluba.</string>
<string id="SettingsApiUrl">URL Home Assistanti API jaoks.</string>
<string id="SettingsConfigUrl">URL menüü konfiguratsiooni jaoks (JSON).</string>
<string id="SettingsCacheConfig">Kas rakendus peaks menüü konfiguratsiooni vahemällu salvestama?</string>
<string id="SettingsClearCache">Kas rakendus peaks järgmisel käivitamisel olemasoleva vahemälu
tühjendama?</string>
<string id="SettingsEnableMenuUpdateCheck">Kontrolli menüü värskendusi rakenduse käivitamisel? Märkus: Menüü vahemällu salvestamine peab olema lubatud. See säte võib põhjustada vanemate, vähem mälu omavate seadmete kokkujooksmise.</string>
<string id="SettingsWifiLteExecutionEnable">Luba käskude täitmine Wi-Fi/LTE kaudu.</string>
<string id="SettingsVibration">Kas rakendus peaks vibratsiooni kaudu tagasisidet andma?</string>
<string id="SettingsAppTimeout">Aegumine sekundites. Väljuge rakendusest pärast seda tegevusetuse
perioodi, et säästa seadme akut.</string>
<string id="SettingsPollDelay">Täiendav päringuviivitus (sekundites). Lisab viivituse kõigi
menüüelementide olekuvärskenduste vahele.</string>
<string id="SettingsConfirmTimeout">Pärast seda aega (sekundites) suletakse toimingu
kinnitusdialoog automaatselt ja toiming tühistatakse. Määra 0, et aegumine keelata.</string>
<string id="SettingsPin">4-kohaline PIN-kood, mida kasutatakse kõigi seda nõudvate toimingute
jaoks (0000-9999).</string>
<string id="SettingsPinError">Palun konfigureerige rakenduse seadetes kehtiv 4-kohaline numbriline
PIN-kood vahemikus 0000 kuni 9999.</string>
<string id="SettingsTextAlign">Vasak (väljas) või parem (sees) menüü joondus.</string>
<string id="SettingsLeftToRight">Vasakult paremale</string>
<string id="SettingsRightToLeft">Paremale vasakule</string>
<string id="SettingsWidgetStart">(Ainult vidin) Käivitage rakendus vidinast automaatselt, ilma
puudutust ootamata.</string>
<string id="SettingsEnableBatteryLevel">Luba taustateenusel saata seadme aku tase, asukoht ja (kui
toetatud) tegevusandmed Home Assistantile.</string>
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), millega taustateenus
peaks andmete saatmist kordama.</string>
<string id="SettingsUserHttpHeader">Kasutaja määratud HTTP päis</string>
<string id="SettingsUserHttpHeaderDescription">Mõned Home Assistanti installatsioonid vajavad
toimimiseks kohandatud HTTP päise määramist.</string>
<string id="SettingsUserHttpHeaderName">Kasutaja määratud HTTP päis: Nimi</string>
<string id="SettingsUserHttpHeaderValue">Kasutaja määratud HTTP päis: Väärtus</string>
<string id="SettingsClearWebhookId">Ühenda uuesti Home Assistantiga (tühjenda Webhooki ID, vt
tõrkeotsingu juhendit).</string>
<string id="SettingsWebhookId">(Ainult lugemiseks) Seadme loodud Webhooki ID taustateenuse
värskenduste jaoks. Võite seda silumiseks vajada.</string>
</strings>

View File

@@ -9,31 +9,94 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Finnish
Luonut Google Translate englannista
Generated by Google Translate and gemini-2.5-flash from English to Finnish
Generoinut Google Translate ja gemini-2.5-flash englannista suomeksi
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Päällä</string>
<string id="MenuItemOff">Vinossa</string>
<string id="MenuItemTap">Napauta</string>
<string id="MenuItemMenu">Valikko</string>
<string id="NoPhone">Ei puhelinyhteyttä</string>
<string id="NoInternet">Ei Internet-yhteyttä</string>
<string id="ApiFlood">API-kutsut liian tiheitä. Hidasta pyyntöjäsi.</string>
<string id="ApiUrlNotFound">URL-osoitetta ei löydy. Mahdollinen API-URL-virhe asetuksissa.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Käytettävissä</string>
<string id="Cached" scope="glance">Välimuistissa</string>
<string id="Checking" scope="glance">Tarkistetaan...</string>
<string id="ConfigUrlNotFound">URL-osoitetta ei löydy. Mahdollinen määritys-URL-virhe asetuksissa.</string>
<string id="Confirm">Varma?</string>
<string id="Empty">Tyhjä</string>
<string id="Executed" scope="glance">Vahvistettu</string>
<string id="GlanceMenu" scope="glance">Valikko</string>
<string id="Memory" scope="glance">Muisti</string>
<string id="MenuUpdated">Valikko päivitetty, käynnistä uudelleen.</string>
<string id="MenuCheckDisabled">Valikkopäivitykset poistettu käytöstä.</string>
<string id="NoAPIKey" scope="glance">Ei API-avainta sovellusasetuksissa.</string>
<string id="NoApiUrl" scope="glance">Ei API-URL-osoitetta sovellusasetuksissa.</string>
<string id="NoConfigUrl" scope="glance">Ei määritys-URL-osoitetta sovellusasetuksissa.</string>
<string id="NoInternet">Ei Internet-yhteyttä.</string>
<string id="NoJson">HTTP-pyynnöstä ei palautettu JSONia.</string>
<string id="NoPhone" scope="glance">Ei puhelinyhteyttä.</string>
<string id="NoPhoneNoCache" scope="glance">Ei puhelinyhteyttä, ei välimuistissa olevaa valikkoa.</string>
<string id="NoResponse">Ei vastausta, tarkista Internet-yhteys</string>
<string id="NoMenu">Valikkohakuvirhe</string>
<string id="NoAPIKey">Sovellusasetuksissa ei ole API-avainta</string>
<string id="NoApiUrl">Sovellusasetuksissa ei ole API URL-osoitetta</string>
<string id="NoConfigUrl">Sovelluksen asetuksissa ei ole konfigurointi-URL-osoitetta</string>
<string id="ApiFlood">API-kutsut liian nopeita. Hidasta pyyntöjäsi.</string>
<string id="ApiUrlNotFound">URL-osoitetta ei löydy. Mahdollinen API URL -virhe asetuksissa.</string>
<string id="ConfigUrlNotFound">URL-osoitetta ei löydy. Mahdollinen konfigurointi-URL-virhe asetuksissa.</string>
<string id="TimedOut">Pyyntö aikakatkaistu</string>
<string id="PinInputLocked">PIN-syöttö lukittu ajaksi</string>
<string id="PotentialError">Mahdollinen virhe</string>
<string id="Seconds">sekuntia</string>
<string id="TemplateError">Mallivirhe</string>
<string id="TrailingSlashErr">API-URL-osoitteessa ei saa olla loppukauttaviivaa '/'.</string>
<string id="Unavailable" scope="glance">Ei käytettävissä</string>
<string id="Unconfigured" scope="glance">Määrittelemätön</string>
<string id="UnhandledHttpErr">HTTP-pyyntö palautti virhekoodin =</string>
<string id="TrailingSlashErr">API-URL-osoitteessa ei saa olla perässä olevaa kauttaviivaa '/'</string>
<string id="WebhookFailed">Webhookin rekisteröinti epäonnistui</string>
<string id="WrongPin">Väärä PIN-koodi</string>
<string id="WifiLteNotAvailable">Ei Wi-Fiä tai LTE:tä käytettävissä.</string>
<string id="WifiLtePrompt">Suoritetaanko Wi-Fi/LTE-yhteyden kautta?</string>
<string id="WifiLteExecutionTitle">Lähetetään Home Assistantille.</string>
<string id="WifiLteExecutionDataError">Tietoja ei vastaanotettu.</string>
<!-- Asetusten käyttöliittymän osalta merkkijonojen tulisi olla siinä järjestyksessä, jossa niitä
käytetään. -->
<string id="SettingsSelect">Valitse...</string>
<string id="SettingsApiKey">API-avain HomeAssistantille.</string>
<string id="SettingsApiKeyPrompt">Pitkäikäinen käyttöoikeustunnus.</string>
<string id="SettingsApiUrl">URL-osoite HomeAssistantin API:lle.</string>
<string id="SettingsConfigUrl">Valikon määrityksen URL-osoite (JSON).</string>
<string id="SettingsCacheConfig">Pitäisikö sovelluksen tallentaa valikon kokoonpano välimuistiin?</string>
<string id="SettingsClearCache">Pitäisikö sovelluksen tyhjentää olemassa oleva välimuisti
seuraavalla käynnistyksellä?</string>
<string id="SettingsEnableMenuUpdateCheck">Tarkistetaanko valikkopäivitykset sovelluksen käynnistyksen yhteydessä? Huomaa: Valikon välimuistiin tallennus on oltava käytössä. Tämä asetus voi aiheuttaa vanhempien, vähemmän muistia omaavien laitteiden kaatumisen.</string>
<string id="SettingsWifiLteExecutionEnable">Ota komentojen suorittaminen käyttöön
Wi-Fi/LTE-yhteyden kautta.</string>
<string id="SettingsVibration">Pitäisikö sovelluksen antaa palautetta värähtelyjen kautta?</string>
<string id="SettingsAppTimeout">Aikakatkaisu sekunneissa. Poistu sovelluksesta tämän
toimettomuuden jälkeen säästääksesi laitteen akkua.</string>
<string id="SettingsPollDelay">Lisäkyselyviive (sekunneissa). Lisää viive kaikkien
valikkokohteiden tilapäivityksen välillä.</string>
<string id="SettingsConfirmTimeout">Tämän ajan jälkeen (sekunneissa) toiminnan
vahvistusvalintaikkuna suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoon 0
poistamaan aikakatkaisu käytöstä.</string>
<string id="SettingsPin">4-numeroinen PIN-koodi, jota käytetään kaikkiin sitä vaativiin toimiin
(0000-9999).</string>
<string id="SettingsPinError">Määritä kelvollinen 4-numeroinen numeerinen PIN-koodi välillä
0000-9999 sovellusasetuksissa.</string>
<string id="SettingsTextAlign">Vasen (pois päältä) tai oikea (on) valikon kohdistus.</string>
<string id="SettingsLeftToRight">Vasemmalta oikealle</string>
<string id="SettingsRightToLeft">Oikealta vasemmalle</string>
<string id="SettingsWidgetStart">(Vain widget) Käynnistä sovellus automaattisesti widgetistä
odottamatta napautusta.</string>
<string id="SettingsEnableBatteryLevel">Ota taustapalvelu käyttöön laitteen akkutason, sijainnin
ja (jos tuettu) aktiivisuustietojen lähettämiseksi Home Assistantille.</string>
<string id="SettingsBatteryLevelRefreshRate">Päivitysnopeus (minuuteissa), jolla taustapalvelun
tulisi toistaa tietojen lähettäminen.</string>
<string id="SettingsUserHttpHeader">Käyttäjän määrittämä HTTP-otsake</string>
<string id="SettingsUserHttpHeaderDescription">Jotkut Home Assistant -asennukset vaativat
mukautetun HTTP-otsakkeen määrittelyn toimiakseen.</string>
<string id="SettingsUserHttpHeaderName">Käyttäjän määrittämä HTTP-otsake: Nimi</string>
<string id="SettingsUserHttpHeaderValue">Käyttäjän määrittämä HTTP-otsake: Arvo</string>
<string id="SettingsClearWebhookId">Yhdistä uudelleen Home Assistantiin (tyhjennä Webhook ID,
katso vianetsintäopas).</string>
<string id="SettingsWebhookId">(Vain luku) Laitteen luoma Webhook ID taustapalvelun päivityksiä
varten. Saatat tarvita tätä virheenkorjaukseen.</string>
</strings>

View File

@@ -9,7 +9,7 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 14 November 2023
P A Abbey & J D Abbey & Someone0nEarth, 14 November 2023
-->
@@ -19,7 +19,5 @@
-->
<strings>
<string id="MenuItemOn">Activé</string>
<string id="MenuItemTap">Clic</string>
<string id="ApiFlood">Appels API trop rapide. Veuillez signaler cette erreur avec les détails de l'appareil.</string>
</strings>

View File

@@ -9,31 +9,98 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to French
Généré par Google Translate de l'anglais
Generated by Google Translate and gemini-2.5-flash from English to French
Généré par Google Translate et gemini-2.5-flash de l'anglais au français
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Activé</string>
<string id="MenuItemOff">Désactivé</string>
<string id="MenuItemTap">Clic</string>
<string id="MenuItemMenu">Menu</string>
<string id="NoPhone">Pas de connexion téléphonique</string>
<string id="NoInternet">Pas de connexion Internet</string>
<string id="NoResponse">Pas de réponse, vérifiez la connexion Internet</string>
<string id="NoMenu">Erreur de récupération du menu</string>
<string id="NoAPIKey">Pas de clé API dans les paramètres de l'application</string>
<string id="NoApiUrl">Aucune URL API dans les paramètres de l'application</string>
<string id="NoConfigUrl">Aucune URL de configuration dans les paramètres de l'application</string>
<string id="ApiFlood">Appels API trop rapide. Veuillez signaler cette erreur avec les détails de l'appareil.</string>
<string id="ApiUrlNotFound">URL introuvable. Erreur potentielle d'URL d'API dans les paramètres.</string>
<string id="ConfigUrlNotFound">URL introuvable. Erreur potentielle d'URL de configuration dans les paramètres.</string>
<string id="UnhandledHttpErr">La requête HTTP a renvoyé un code d'erreur =</string>
<string id="TrailingSlashErr">L'URL de l'API ne doit pas comporter de barre oblique finale '/'</string>
<string id="ApiUrlNotFound">URL introuvable. L'URL de l'API est potentiellement erronée dans les
paramètres.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Disponible</string>
<string id="Cached" scope="glance">Mis en cache</string>
<string id="Checking" scope="glance">Vérification...</string>
<string id="ConfigUrlNotFound">URL introuvable. L'URL de configuration est potentiellement erronée
dans les paramètres.</string>
<string id="Confirm">Confirmer ?</string>
<string id="Empty">Vide</string>
<string id="Executed" scope="glance">Exécuté</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Mémoire</string>
<string id="MenuUpdated">Menu mis à jour, redémarrez.</string>
<string id="MenuCheckDisabled">Mises à jour du menu désactivées.</string>
<string id="NoAPIKey" scope="glance">Aucune clé API dans les paramètres de l'application.</string>
<string id="NoApiUrl" scope="glance">Aucune URL de l'API dans les paramètres de l'application.</string>
<string id="NoConfigUrl" scope="glance">Aucune URL de configuration dans les paramètres de
l'application.</string>
<string id="NoInternet">Pas de connexion Internet.</string>
<string id="NoJson">Aucun JSON n'est retourné par la requête HTTP.</string>
<string id="NoPhone" scope="glance">Aucune connexion téléphonique.</string>
<string id="NoPhoneNoCache" scope="glance">Pas de connexion téléphonique, pas de menu en cache.</string>
<string id="NoResponse">Aucune réponse, vérifiez la connexion Internet</string>
<string id="TimedOut">Délai d'attente dépassé</string>
<string id="PinInputLocked">Saisie du code PIN verrouillée pour</string>
<string id="PotentialError">Erreur potentielle</string>
<string id="Seconds">secondes</string>
<string id="TemplateError">Erreur de modèle</string>
<string id="TrailingSlashErr">L'URL de l'API ne doit pas se terminer par une barre oblique '/'.</string>
<string id="Unavailable" scope="glance">Indisponible</string>
<string id="Unconfigured" scope="glance">Non configuré</string>
<string id="UnhandledHttpErr">La requête HTTP a renvoyé le code d'erreur =</string>
<string id="WebhookFailed">Échec de l'enregistrement du Webhook</string>
<string id="WrongPin">Code PIN incorrect</string>
<string id="WifiLteNotAvailable">Pas de Wi-Fi ou de LTE disponible</string>
<string id="WifiLtePrompt">Exécuter sur Wi-Fi / LTE ?</string>
<string id="WifiLteExecutionTitle">Envoi à Home Assistant.</string>
<string id="WifiLteExecutionDataError">Aucune donnée reçue.</string>
<!-- Pour l'interface graphique des paramètres, les chaînes doivent être dans l'ordre où elles
sont utilisées. -->
<string id="SettingsSelect">Sélectionner...</string>
<string id="SettingsApiKey">Clé API pour HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Jeton d'accès de longue durée.</string>
<string id="SettingsApiUrl">URL pour l'API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL pour la configuration du menu (JSON).</string>
<string id="SettingsCacheConfig">L'application devrait-elle mettre en cache la configuration du
menu ?</string>
<string id="SettingsClearCache">L'application devrait-elle effacer le cache existant la prochaine
fois qu'elle sera démarrée ?</string>
<string id="SettingsEnableMenuUpdateCheck">Vérifier les mises à jour du menu au démarrage de l'application ? Remarque : la mise en cache du menu doit être activée. Ce paramètre peut entraîner le plantage des appareils plus anciens avec moins de mémoire.</string>
<string id="SettingsWifiLteExecutionEnable">Activer l'exécution des commandes sur Wi-Fi / LTE.</string>
<string id="SettingsVibration">L'application devrait-elle fournir un retour par vibrations ?</string>
<string id="SettingsAppTimeout">Délai d'expiration en secondes. L'application se fermera après
cette période d'inactivité pour économiser la batterie de l'appareil.</string>
<string id="SettingsPollDelay">Délai d'interrogation supplémentaire (en secondes). Ajoute un délai
entre la mise à jour de l'état de tous les éléments de menu.</string>
<string id="SettingsConfirmTimeout">Après ce délai (en secondes), une boîte de dialogue de
confirmation pour une action est automatiquement fermée et l'action est annulée. Définir à 0
pour désactiver le délai d'attente.</string>
<string id="SettingsPin">Code PIN à 4 chiffres à utiliser pour toutes les actions qui l'exigent
(0000-9999).</string>
<string id="SettingsPinError">Veuillez configurer un code PIN numérique à 4 chiffres valide entre
0000 et 9999 dans les paramètres de l'application.</string>
<string id="SettingsTextAlign">Alignement du menu : Gauche (désactivé) ou Droit (activé).</string>
<string id="SettingsLeftToRight">De gauche à droite</string>
<string id="SettingsRightToLeft">De droite à gauche</string>
<string id="SettingsWidgetStart">(Widget uniquement) Démarre automatiquement l'application depuis
le widget sans attendre une pression.</string>
<string id="SettingsEnableBatteryLevel">Activer le service d'arrière-plan pour envoyer le niveau
de la batterie de l'appareil, l'emplacement et (le cas échéant) les données d'activité à Home
Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Le taux de rafraîchissement (en minutes) auquel le
service d'arrière-plan doit répéter l'envoi de données.</string>
<string id="SettingsUserHttpHeader">En-tête HTTP fourni par l'utilisateur</string>
<string id="SettingsUserHttpHeaderDescription">Certaines installations Home Assistant nécessitent
la spécification d'un en-tête HTTP personnalisé pour fonctionner.</string>
<string id="SettingsUserHttpHeaderName">En-tête HTTP fourni par l'utilisateur : Nom</string>
<string id="SettingsUserHttpHeaderValue">En-tête HTTP fourni par l'utilisateur : Valeur</string>
<string id="SettingsClearWebhookId">Se reconnecter à Home Assistant (effacer l'ID du Webhook, voir
le guide de dépannage).</string>
<string id="SettingsWebhookId">(Lecture seule) L'ID Webhook créé par l'appareil pour les mises à
jour du service d'arrière-plan. Vous pourriez en avoir besoin pour le débogage.</string>
</strings>

View File

@@ -9,31 +9,96 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Greek
Δημιουργήθηκε από τη Μετάφραση Google από τα Αγγλικά
Generated by Google Translate and gemini-2.5-flash from English to Greek
Δημιουργήθηκε από το Google Translate και το gemini-2.5-flash από Αγγλικά σε Ελληνικά
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Επί</string>
<string id="MenuItemOff">Μακριά από</string>
<string id="MenuItemTap">Παρακέντηση</string>
<string id="MenuItemMenu">Μενού</string>
<string id="NoPhone">Δεν υπάρχει σύνδεση τηλεφώνου</string>
<string id="NoInternet">Δεν υπάρχει σύνδεση στο διαδίκτυο</string>
<string id="NoResponse">Καμία απάντηση, ελέγξτε τη σύνδεση στο Διαδίκτυο</string>
<string id="NoMenu">Σφάλμα ανάκτησης μενού</string>
<string id="NoAPIKey">Δεν υπάρχει κλειδί API στις ρυθμίσεις της εφαρμογής</string>
<string id="NoApiUrl">Δεν υπάρχει διεύθυνση URL API στις ρυθμίσεις της εφαρμογής</string>
<string id="NoConfigUrl">Δεν υπάρχει διεύθυνση URL διαμόρφωσης στις ρυθμίσεις της εφαρμογής</string>
<string id="ApiFlood">Κλήσεις API πολύ γρήγορες. Παρακαλώ επιβραδύνετε τα αιτήματά σας.</string>
<string id="ApiUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL API στις ρυθμίσεις.</string>
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL διαμόρφωσης στις ρυθμίσεις.</string>
<string id="UnhandledHttpErr">Το αίτημα HTTP επέστρεψε κωδικό σφάλματος =</string>
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει τελική κάθετο "/"</string>
<string id="ApiFlood">Οι κλήσεις API είναι πολύ συχνές. Παρακαλούμε επιβραδύνετε τα αιτήματά σας.</string>
<string id="ApiUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα URL API στις ρυθμίσεις.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Διαθέσιμο</string>
<string id="Cached" scope="glance">Αποθηκευμένο</string>
<string id="Checking" scope="glance">Έλεγχος...</string>
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα URL διαμόρφωσης στις
ρυθμίσεις.</string>
<string id="Confirm">Σίγουρα;</string>
<string id="Empty">Κενό</string>
<string id="Executed" scope="glance">Επιβεβαιωμένο</string>
<string id="GlanceMenu" scope="glance">Μενού</string>
<string id="Memory" scope="glance">Μνήμη</string>
<string id="MenuUpdated">Ενημερώθηκε το μενού, επανεκκίνηση.</string>
<string id="MenuCheckDisabled">Οι ενημερώσεις μενού απενεργοποιήθηκαν.</string>
<string id="NoAPIKey" scope="glance">Δεν υπάρχει κλειδί API στις ρυθμίσεις εφαρμογής.</string>
<string id="NoApiUrl" scope="glance">Δεν υπάρχει διεύθυνση URL API στις ρυθμίσεις εφαρμογής.</string>
<string id="NoConfigUrl" scope="glance">Δεν υπάρχει διεύθυνση URL διαμόρφωσης στις ρυθμίσεις
εφαρμογής.</string>
<string id="NoInternet">Χωρίς σύνδεση στο Διαδίκτυο.</string>
<string id="NoJson">Κανένα JSON δεν επεστράφη από το αίτημα HTTP.</string>
<string id="NoPhone" scope="glance">Χωρίς σύνδεση τηλεφώνου.</string>
<string id="NoPhoneNoCache" scope="glance">Δεν υπάρχει σύνδεση τηλεφώνου, δεν υπάρχει αποθηκευμένο
μενού.</string>
<string id="NoResponse">Χωρίς απάντηση, ελέγξτε τη σύνδεση στο Διαδίκτυο</string>
<string id="TimedOut">Το αίτημα έληξε</string>
<string id="PinInputLocked">Είσοδος PIN κλειδωμένη για</string>
<string id="PotentialError">Πιθανό σφάλμα</string>
<string id="Seconds">δευτερόλεπτα</string>
<string id="TemplateError">Σφάλμα προτύπου</string>
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει τελική κάθετο '/'.</string>
<string id="Unavailable" scope="glance">Μη διαθέσιμο</string>
<string id="Unconfigured" scope="glance">Μη διαμορφωμένο</string>
<string id="UnhandledHttpErr">Η αίτηση HTTP επέστρεψε κωδικό σφάλματος =</string>
<string id="WebhookFailed">Αποτυχία εγγραφής webhook</string>
<string id="WrongPin">Λάθος PIN</string>
<string id="WifiLteNotAvailable">Χωρίς Wi-Fi ή LTE διαθέσιμο</string>
<string id="WifiLtePrompt">Εκτέλεση μέσω Wi-Fi/LTE;</string>
<string id="WifiLteExecutionTitle">Αποστολή στο Home Assistant.</string>
<string id="WifiLteExecutionDataError">Δεν λαμβάνονται δεδομένα.</string>
<!-- Για το GUI ρυθμίσεων, οι συμβολοσειρές πρέπει να είναι με τη σειρά που χρησιμοποιούνται. -->
<string id="SettingsSelect">Επιλογή...</string>
<string id="SettingsApiKey">Κλειδί API για το Home Assistant.</string>
<string id="SettingsApiKeyPrompt">Διακριτικό πρόσβασης μακράς διάρκειας.</string>
<string id="SettingsApiUrl">URL για το API του Home Assistant.</string>
<string id="SettingsConfigUrl">URL για διαμόρφωση μενού (JSON).</string>
<string id="SettingsCacheConfig">Να αποθηκεύει προσωρινά η εφαρμογή τη διαμόρφωση του μενού;</string>
<string id="SettingsClearCache">Πρέπει η εφαρμογή να διαγράψει την υπάρχουσα μνήμη cache την
επόμενη φορά που θα ξεκινήσει;</string>
<string id="SettingsEnableMenuUpdateCheck">Έλεγχος για ενημερώσεις μενού κατά την εκκίνηση της εφαρμογής; Σημείωση: Η προσωρινή αποθήκευση μενού πρέπει να είναι ενεργοποιημένη. Αυτή η ρύθμιση μπορεί να προκαλέσει σφάλματα σε παλαιότερες συσκευές με λιγότερη μνήμη.</string>
<string id="SettingsWifiLteExecutionEnable">Ενεργοποιήστε την εκτέλεση εντολών μέσω Wi-Fi/LTE.</string>
<string id="SettingsVibration">Πρέπει η εφαρμογή να παρέχει ανατροφοδότηση μέσω δονήσεων;</string>
<string id="SettingsAppTimeout">Χρονικό όριο σε δευτερόλεπτα. Η εφαρμογή θα κλείσει μετά από αυτήν
την περίοδο αδράνειας για εξοικονόμηση μπαταρίας της συσκευής.</string>
<string id="SettingsPollDelay">Πρόσθετη καθυστέρηση ανανέωσης (σε δευτερόλεπτα). Προσθέτει μια
καθυστέρηση μεταξύ της ενημέρωσης κατάστασης όλων των στοιχείων μενού.</string>
<string id="SettingsConfirmTimeout">Μετά από αυτό το χρονικό διάστημα (σε δευτερόλεπτα), ένα
παράθυρο διαλόγου επιβεβαίωσης για μια ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται.
Ρυθμίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
<string id="SettingsPin">4-ψήφιο PIN που χρησιμοποιείται για όλες τις ενέργειες που το απαιτούν
(0000-9999).</string>
<string id="SettingsPinError">Παρακαλούμε διαμορφώστε ένα έγκυρο 4-ψήφιο αριθμητικό PIN μεταξύ
0000 και 9999 στις ρυθμίσεις της εφαρμογής.</string>
<string id="SettingsTextAlign">Ευθυγράμμιση μενού: Αριστερά (απενεργοποιημένο) ή Δεξιά (ενεργό).</string>
<string id="SettingsLeftToRight">Από αριστερά προς τα δεξιά</string>
<string id="SettingsRightToLeft">Δεξιά προς τα αριστερά</string>
<string id="SettingsWidgetStart">(Μόνο widget) Αυτόματη εκκίνηση της εφαρμογής από το widget χωρίς
να περιμένετε άγγιγμα.</string>
<string id="SettingsEnableBatteryLevel">Ενεργοποιήστε την υπηρεσία παρασκηνίου για την αποστολή
της στάθμης μπαταρίας της συσκευής, της τοποθεσίας και (αν υποστηρίζονται) δεδομένων
δραστηριότητας στο Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Ο ρυθμός ανανέωσης (σε λεπτά) με τον οποίο η υπηρεσία
παρασκηνίου θα πρέπει να επαναλαμβάνει την αποστολή δεδομένων.</string>
<string id="SettingsUserHttpHeader">Κεφαλίδα HTTP που παρέχεται από τον χρήστη</string>
<string id="SettingsUserHttpHeaderDescription">Ορισμένες εγκαταστάσεις Home Assistant απαιτούν την
προδιαγραφή μιας προσαρμοσμένης κεφαλίδας HTTP για να λειτουργήσουν.</string>
<string id="SettingsUserHttpHeaderName">Κεφαλίδα HTTP που παρέχεται από τον χρήστη: Όνομα</string>
<string id="SettingsUserHttpHeaderValue">Κεφαλίδα HTTP που παρέχεται από τον χρήστη: Τιμή</string>
<string id="SettingsClearWebhookId">Επανασύνδεση στο Home Assistant (εκκαθάριση Webhook ID, δείτε
τον οδηγό αντιμετώπισης προβλημάτων).</string>
<string id="SettingsWebhookId">(Μόνο για ανάγνωση) Το Webhook ID που δημιουργήθηκε από τη συσκευή
για ενημερώσεις υπηρεσιών παρασκηνίου. Μπορεί να το χρειαστείτε για εντοπισμό σφαλμάτων.</string>
</strings>

View File

@@ -9,31 +9,88 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Hebrew
נוצר על ידי Google Translate מאנגלית
Generated by Google Translate and gemini-2.5-flash from English to Hebrew
נוצר על ידי Google Translate ו-gemini-2.5-flash מאנגלית לעברית
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">עַל</string>
<string id="MenuItemOff">כבוי</string>
<string id="MenuItemTap">בֶּרֶז</string>
<string id="MenuItemMenu">תַפרִיט</string>
<string id="NoPhone">אין חיבור לטלפון</string>
<string id="NoInternet">אין חיבור אינטרנט</string>
<string id="NoResponse">אין תגובה, בדוק חיבור לאינטרנט</string>
<string id="NoMenu">שגיאת אחזור תפריט</string>
<string id="NoAPIKey">אין מפתח API בהגדרות האפליקציה</string>
<string id="NoApiUrl">אין כתובת API בהגדרות האפליקציה</string>
<string id="NoConfigUrl">אין כתובת אתר תצורה בהגדרות האפליקציה</string>
<string id="ApiFlood">קריאות API מהירות מדי. נא להאט את הבקשות שלך.</string>
<string id="ApiUrlNotFound">כתובת האתר לא נמצאה. שגיאה פוטנציאלית של כתובת ה-API בהגדרות.</string>
<string id="ConfigUrlNotFound">כתובת האתר לא נמצאה. שגיאת כתובת אתר פוטנציאלית של תצורה בהגדרות.</string>
<string id="UnhandledHttpErr">בקשת HTTP החזירה קוד שגיאה =</string>
<string id="TrailingSlashErr">כתובת ה-API לא חייבת לכלול לוכסן אחורי '/'</string>
<string id="ApiFlood">קריאות API מהירות מדי. אנא האט את בקשותיך.</string>
<string id="ApiUrlNotFound">כתובת URL לא נמצאה. שגיאת כתובת URL פוטנציאלית בהגדרות.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">זמין</string>
<string id="Cached" scope="glance">במטמון</string>
<string id="Checking" scope="glance">בודק...</string>
<string id="ConfigUrlNotFound">כתובת URL לא נמצאה. שגיאת כתובת URL פוטנציאלית של התצורה בהגדרות.</string>
<string id="Confirm">בטוח?</string>
<string id="Empty">ריק</string>
<string id="Executed" scope="glance">בוצע</string>
<string id="GlanceMenu" scope="glance">תפריט</string>
<string id="Memory" scope="glance">זיכרון</string>
<string id="MenuUpdated">התפריט עודכן, הפעל מחדש.</string>
<string id="MenuCheckDisabled">עדכוני תפריט מושבתים.</string>
<string id="NoAPIKey" scope="glance">אין מפתח API בהגדרות היישום.</string>
<string id="NoApiUrl" scope="glance">אין כתובת URL של ה-API בהגדרות היישום.</string>
<string id="NoConfigUrl" scope="glance">אין כתובת URL לתצורה בהגדרות היישום.</string>
<string id="NoInternet">אין חיבור לאינטרנט.</string>
<string id="NoJson">לא התקבל JSON מבקשת HTTP.</string>
<string id="NoPhone" scope="glance">אין חיבור לטלפון.</string>
<string id="NoPhoneNoCache" scope="glance">אין חיבור לטלפון, אין תפריט במטמון.</string>
<string id="NoResponse">אין תגובה, בדוק את חיבור האינטרנט.</string>
<string id="TimedOut">פסק זמן לבקשה</string>
<string id="PinInputLocked">קלט PIN נעול עבור</string>
<string id="PotentialError">שגיאה פוטנציאלית</string>
<string id="Seconds">שניות</string>
<string id="TemplateError">שגיאת תבנית</string>
<string id="TrailingSlashErr">כתובת ה-URL של ה-API אסור שתכלול קו נטוי בסוף '/'.</string>
<string id="Unavailable" scope="glance">לא זמין</string>
<string id="Unconfigured" scope="glance">לא מוגדר</string>
<string id="UnhandledHttpErr">בקשת HTTP החזירה קוד שגיאה = </string>
<string id="WebhookFailed">נכשל רישום Webhook</string>
<string id="WrongPin">PIN שגוי</string>
<string id="WifiLteNotAvailable">אין Wi-Fi או LTE זמינים</string>
<string id="WifiLtePrompt">לבצע דרך Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">שולח אל Home Assistant.</string>
<string id="WifiLteExecutionDataError">לא התקבלו נתונים.</string>
<!-- עבור ה- GUI של הגדרות, המיתרים צריכים להיות בסדר שהם משתמשים בהם. -->
<string id="SettingsSelect">בחר...</string>
<string id="SettingsApiKey">מפתח API עבור HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">אסימון גישה ארוך טווח.</string>
<string id="SettingsApiUrl">כתובת URL עבור ה-API של HomeAssistant.</string>
<string id="SettingsConfigUrl">כתובת URL לתצורת תפריט (JSON).</string>
<string id="SettingsCacheConfig">האם היישום צריך לשמור את תצורת התפריט במטמון?</string>
<string id="SettingsClearCache">האם היישום צריך לנקות את המטמון הקיים בהפעלה הבאה?</string>
<string id="SettingsEnableMenuUpdateCheck">בדוק עדכוני תפריט בהפעלת היישום? הערה: שמירת תפריט במטמון חייבת להיות מופעלת. הגדרה זו עלולה לגרום למכשירים ישנים יותר עם פחות זיכרון לקרוס.</string>
<string id="SettingsWifiLteExecutionEnable">אפשר לבצע פקודות דרך Wi-Fi/LTE.</string>
<string id="SettingsVibration">האם היישום צריך לספק משוב באמצעות רעידות?</string>
<string id="SettingsAppTimeout">פסק זמן בשניות. היישום ייצא לאחר תקופת חוסר פעילות זו כדי לחסוך
בסוללת המכשיר.</string>
<string id="SettingsPollDelay">עיכוב סקר נוסף (בשניות). מוסיף עיכוב בין עדכוני הסטטוס של כל פריטי
התפריט.</string>
<string id="SettingsConfirmTimeout">לאחר זמן זה (בשניות), תיבת דו-שיח לאישור פעולה נסגרת אוטומטית
והפעולה מבוטלת. הגדר ל-0 כדי להשבית את פסק הזמן.</string>
<string id="SettingsPin">PIN בן 4 ספרות שישמש לכל הפעולות הדורשות אותו (0000-9999).</string>
<string id="SettingsPinError">אנא הגדר PIN מספרי תקין בן 4 ספרות בין 0000 ל-9999 בהגדרות היישום.</string>
<string id="SettingsTextAlign">יישור תפריט: שמאל (כבוי) או ימין (מופעל).</string>
<string id="SettingsLeftToRight">משמאל לימין</string>
<string id="SettingsRightToLeft">מימין לשמאל</string>
<string id="SettingsWidgetStart">(ווידג'ט בלבד) הפעל אוטומטית את היישום מהווידג'ט מבלי לחכות
להקשה.</string>
<string id="SettingsEnableBatteryLevel">אפשר לשירות הרקע לשלוח את רמת סוללת המכשיר, מיקום ו(אם
נתמך) נתוני פעילות אל Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">קצב הרענון (בדקות) שבו שירות הרקע ישלח נתונים באופן
חוזר.</string>
<string id="SettingsUserHttpHeader">כותרת HTTP שסופקה על ידי המשתמש</string>
<string id="SettingsUserHttpHeaderDescription">חלק מהתקנות Home Assistant דורשות הגדרה של כותרת
HTTP מותאמת אישית כדי לתפקד.</string>
<string id="SettingsUserHttpHeaderName">כותרת HTTP שסופקה על ידי המשתמש: שם</string>
<string id="SettingsUserHttpHeaderValue">כותרת HTTP שסופקה על ידי המשתמש: ערך</string>
<string id="SettingsClearWebhookId">התחבר מחדש אל Home Assistant (נקה מזהה Webhook, ראה מדריך
לפתרון בעיות).</string>
<string id="SettingsWebhookId">(קריאה בלבד) מזהה Webhook שנוצר על ידי המכשיר לעדכוני שירות רקע.
ייתכן שתזדקק לכך לצורך ניפוי באגים.</string>
</strings>

View File

@@ -9,31 +9,93 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Croatian
Generirano Google prevoditeljem s engleskog
Generated by Google Translate and gemini-2.5-flash from English to Croatian
Generirano putem Google Prevoditelja i gemini-2.5-flash s engleskog na hrvatski
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Na</string>
<string id="MenuItemOff">Isključeno</string>
<string id="MenuItemTap">Dodirnite</string>
<string id="MenuItemMenu">Jelovnik</string>
<string id="NoPhone">Nema telefonske veze</string>
<string id="NoInternet">Nema internetske veze</string>
<string id="NoResponse">Nema odgovora, provjerite internetsku vezu</string>
<string id="NoMenu">Pogreška dohvaćanja izbornika</string>
<string id="NoAPIKey">Nema API ključa u postavkama aplikacije</string>
<string id="NoApiUrl">Nema API URL-a u postavkama aplikacije</string>
<string id="NoConfigUrl">Nema konfiguracijskog URL-a u postavkama aplikacije</string>
<string id="ApiFlood">API pozivi su prebrzi. Molimo usporite svoje zahtjeve.</string>
<string id="ApiFlood">API pozivi prebrzi. Usporite svoje zahtjeve.</string>
<string id="ApiUrlNotFound">URL nije pronađen. Potencijalna pogreška API URL-a u postavkama.</string>
<string id="ConfigUrlNotFound">URL nije pronađen. Potencijalna pogreška URL-a konfiguracije u postavkama.</string>
<string id="UnhandledHttpErr">HTTP zahtjev vratio je kod greške =</string>
<string id="TrailingSlashErr">API URL ne smije imati kosu crtu na kraju '/'</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Dostupan</string>
<string id="Cached" scope="glance">Predmemorirano</string>
<string id="Checking" scope="glance">Provjera...</string>
<string id="ConfigUrlNotFound">URL nije pronađen. Potencijalna pogreška URL-a konfiguracije u
postavkama.</string>
<string id="Confirm">Potvrdi?</string>
<string id="Empty">Prazan</string>
<string id="Executed" scope="glance">Potvrđen</string>
<string id="GlanceMenu" scope="glance">Izbornik</string>
<string id="Memory" scope="glance">Memorija</string>
<string id="MenuUpdated">Izbornik ažuriran, ponovno pokrenite.</string>
<string id="MenuCheckDisabled">Ažuriranja izbornika onemogućena.</string>
<string id="NoAPIKey" scope="glance">Nema API ključa u postavkama aplikacije.</string>
<string id="NoApiUrl" scope="glance">Nema API URL-a u postavkama aplikacije.</string>
<string id="NoConfigUrl" scope="glance">Nema URL-a konfiguracije u postavkama aplikacije.</string>
<string id="NoInternet">Nema internetske veze.</string>
<string id="NoJson">Nije primljen JSON odgovor na HTTP zahtjev.</string>
<string id="NoPhone" scope="glance">Nema telefonske veze.</string>
<string id="NoPhoneNoCache" scope="glance">Nema telefonske veze, nema predmemoriranog izbornika.</string>
<string id="NoResponse">Nema odgovora, provjerite internetsku vezu</string>
<string id="TimedOut">Zahtjev je istekao</string>
<string id="PinInputLocked">Unos PIN-a zaključan na</string>
<string id="PotentialError">Potencijalna pogreška</string>
<string id="Seconds">sekundi</string>
<string id="TemplateError">Pogreška predloška</string>
<string id="TrailingSlashErr">API URL ne smije sadržavati kosu crtu '/' na kraju.</string>
<string id="Unavailable" scope="glance">Nedostupan</string>
<string id="Unconfigured" scope="glance">Nekonfiguriran</string>
<string id="UnhandledHttpErr">HTTP zahtjev vratio je kod pogreške = </string>
<string id="WebhookFailed">Registracija Webhooka nije uspjela</string>
<string id="WrongPin">Pogrešan PIN</string>
<string id="WifiLteNotAvailable">Wi-Fi ili LTE nije dostupno</string>
<string id="WifiLtePrompt">Izvršiti putem Wi-Fi/LTE?</string>
<string id="WifiLteExecutionTitle">Slanje u Home Assistant.</string>
<string id="WifiLteExecutionDataError">Nema primljenih podataka.</string>
<!-- Za GUI postavki, nizovi znakova trebaju biti poredani redoslijedom kojim se koriste. -->
<string id="SettingsSelect">Odaberite...</string>
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Dugotrajni pristupni token.</string>
<string id="SettingsApiUrl">URL za HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL za konfiguraciju izbornika (JSON).</string>
<string id="SettingsCacheConfig">Treba li aplikacija predmemorirati konfiguraciju izbornika?</string>
<string id="SettingsClearCache">Treba li aplikacija očistiti postojeću predmemoriju sljedeći put
kad se pokrene?</string>
<string id="SettingsEnableMenuUpdateCheck">Provjeriti ažuriranja izbornika pri pokretanju aplikacije? Napomena: Predmemoriranje izbornika mora biti omogućeno. Ova postavka može uzrokovati rušenje starijih uređaja s manje memorije.</string>
<string id="SettingsWifiLteExecutionEnable">Omogući izvršavanje naredbi putem Wi-Fi/LTE.</string>
<string id="SettingsVibration">Treba li aplikacija davati povratne informacije putem vibracija?</string>
<string id="SettingsAppTimeout">Istek vremena u sekundama. Izađite iz aplikacije nakon ovog
razdoblja neaktivnosti radi uštede baterije uređaja.</string>
<string id="SettingsPollDelay">Dodatno kašnjenje provjere (u sekundama). Dodaje kašnjenje između
ažuriranja statusa svih stavki izbornika.</string>
<string id="SettingsConfirmTimeout">Nakon tog vremena (u sekundama), dijaloški okvir za potvrdu
radnje automatski se zatvara i radnja se otkazuje. Postavite na 0 za onemogućavanje isteka
vremena.</string>
<string id="SettingsPin">Četveroznamenkasti PIN koji se koristi za sve radnje koje ga zahtijevaju
(0000-9999).</string>
<string id="SettingsPinError">Molimo konfigurirajte valjani četveroznamenkasti numerički PIN
između 0000 i 9999 u postavkama aplikacije.</string>
<string id="SettingsTextAlign">Poravnanje izbornika: lijevo (isključeno) ili desno (uključeno).</string>
<string id="SettingsLeftToRight">Slijeva na desno</string>
<string id="SettingsRightToLeft">Zdesna nalijevo</string>
<string id="SettingsWidgetStart">(Samo widget) Automatski pokrenite aplikaciju iz widgeta bez
čekanja na dodir.</string>
<string id="SettingsEnableBatteryLevel">Omogućite pozadinsku uslugu za slanje razine baterije
uređaja, lokacije i (ako je podržano) podataka o aktivnosti u Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Brzina osvježavanja (u minutama) u kojoj bi
pozadinska usluga trebala ponoviti slanje podataka.</string>
<string id="SettingsUserHttpHeader">Korisnički HTTP zaglavlje</string>
<string id="SettingsUserHttpHeaderDescription">Neke instalacije Home Assistanta zahtijevaju
specifikaciju prilagođenog HTTP zaglavlja za funkcioniranje.</string>
<string id="SettingsUserHttpHeaderName">Korisnički HTTP zaglavlje: Naziv</string>
<string id="SettingsUserHttpHeaderValue">Korisnički HTTP zaglavlje: Vrijednost</string>
<string id="SettingsClearWebhookId">Ponovno se povežite s Home Assistantom (očisti ID Webhooka,
pogledajte vodič za rješavanje problema).</string>
<string id="SettingsWebhookId">(Samo za čitanje) ID Webhooka koji je uređaj stvorio za ažuriranja
pozadinske usluge. Možda će vam ovo trebati za otklanjanje pogrešaka.</string>
</strings>

View File

@@ -9,31 +9,95 @@
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
P A Abbey & J D Abbey, 31 October 2023
P A Abbey & J D Abbey & Someone0nEarth & vincentezw, 31 October 2023
-->
<!--
Generated by Google Translate: English to Hungarian
A Google Fordító generálta angolból
Generated by Google Translate and gemini-2.5-flash from English to Hungarian
Fordította: Google Translate és gemini-2.5-flash angolról magyarra
-->
<strings>
<string id="AppName">HomeAssistant</string>
<string id="MenuItemOn">Tovább</string>
<string id="MenuItemOff">Ki</string>
<string id="MenuItemTap">Koppintson a</string>
<string id="MenuItemMenu">Menü</string>
<string id="NoPhone">Nincs telefonkapcsolat</string>
<string id="NoInternet">Nincs internetkapcsolat</string>
<string id="ApiFlood">Az API hívások túl gyorsak. Kérjük, lassítsa a kéréseit.</string>
<string id="ApiUrlNotFound">URL nem található. Lehetséges API URL hiba a beállításokban.</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Available" scope="glance">Elérhető</string>
<string id="Cached" scope="glance">Gyorsítótárazott</string>
<string id="Checking" scope="glance">Ellenőrzés ...</string>
<string id="ConfigUrlNotFound">URL nem található. Lehetséges konfigurációs URL hiba a
beállításokban.</string>
<string id="Confirm">Biztos?</string>
<string id="Empty">Üres</string>
<string id="Executed" scope="glance">Megerősített</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Memória</string>
<string id="MenuUpdated">Menü frissítve, indítsa újra.</string>
<string id="MenuCheckDisabled">Menüfrissítések letiltva.</string>
<string id="NoAPIKey" scope="glance">Nincs API kulcs az alkalmazás beállításaiban.</string>
<string id="NoApiUrl" scope="glance">Nincs API URL az alkalmazás beállításaiban.</string>
<string id="NoConfigUrl" scope="glance">Nincs konfigurációs URL az alkalmazás beállításaiban.</string>
<string id="NoInternet">Nincs internetkapcsolat.</string>
<string id="NoJson">A HTTP kérés nem adott vissza JSON-t.</string>
<string id="NoPhone" scope="glance">Nincs telefonkapcsolat.</string>
<string id="NoPhoneNoCache" scope="glance">Nincs telefonkapcsolat, nincs gyorsítótárazott menü.</string>
<string id="NoResponse">Nincs válasz, ellenőrizze az internetkapcsolatot</string>
<string id="NoMenu">Menü Lekérési hiba</string>
<string id="NoAPIKey">Nincs API kulcs az alkalmazás beállításaiban</string>
<string id="NoApiUrl">Nincs API URL az alkalmazás beállításai között</string>
<string id="NoConfigUrl">Nincs konfigurációs URL az alkalmazás beállításai között</string>
<string id="ApiFlood">Az API-hívások túl gyorsak. Kérjük, lassítsa a kérések teljesítését.</string>
<string id="ApiUrlNotFound">Az URL nem található. Lehetséges API URL hiba a beállításokban.</string>
<string id="ConfigUrlNotFound">Az URL nem található. Lehetséges konfigurációs URL hiba a beállításokban.</string>
<string id="UnhandledHttpErr">A HTTP-kérés = hibakódot adott vissza</string>
<string id="TrailingSlashErr">Az API URL-ben nem lehet perjel a „/”</string>
<string id="TimedOut">A kérés időtúllépés</string>
<string id="PinInputLocked">PIN bevitel zárolva</string>
<string id="PotentialError">Lehetséges hiba</string>
<string id="Seconds">másodperc</string>
<string id="TemplateError">Sablonhiba</string>
<string id="TrailingSlashErr">Az API URL nem tartalmazhat záró perjelet '/'.</string>
<string id="Unavailable" scope="glance">Nem érhető el</string>
<string id="Unconfigured" scope="glance">Konfigurálatlan</string>
<string id="UnhandledHttpErr">HTTP kérés hibakóddal tért vissza: </string>
<string id="WebhookFailed">Nem sikerült regisztrálni a webhookot</string>
<string id="WrongPin">Hibás PIN</string>
<string id="WifiLteNotAvailable">Nincs elérhető Wi-Fi vagy LTE</string>
<string id="WifiLtePrompt">Végrehajtás a Wi-Fi/LTE-n keresztül?</string>
<string id="WifiLteExecutionTitle">Küldés a Home Assistantnek.</string>
<string id="WifiLteExecutionDataError">Nem érkezett adat.</string>
<!-- A beállítások GUI -jához a karakterláncoknak a használt sorrendben kell lenniük. -->
<string id="SettingsSelect">Válasszon...</string>
<string id="SettingsApiKey">API kulcs a Home Assistanthez.</string>
<string id="SettingsApiKeyPrompt">Hosszú élettartamú hozzáférési token.</string>
<string id="SettingsApiUrl">URL a Home Assistant API-hoz.</string>
<string id="SettingsConfigUrl">URL a menükonfigurációhoz (JSON).</string>
<string id="SettingsCacheConfig">Gyorsítótárazza az alkalmazás a menükonfigurációt?</string>
<string id="SettingsClearCache">Törölje az alkalmazás a meglévő gyorsítótárat a következő
indításkor?</string>
<string id="SettingsEnableMenuUpdateCheck">Menüfrissítések ellenőrzése az alkalmazás indításakor? Megjegyzés: A menü gyorsítótárazásának engedélyezve kell lennie. Ez a beállítás régebbi, kevesebb memóriával rendelkező eszközök összeomlását okozhatja.</string>
<string id="SettingsWifiLteExecutionEnable">Parancsok végrehajtásának engedélyezése Wi-Fi/LTE-n
keresztül.</string>
<string id="SettingsVibration">Adjon visszajelzést az alkalmazás rezgésekkel?</string>
<string id="SettingsAppTimeout">Időtúllépés másodpercben. Az eszköz akkumulátorának kímélése
érdekében az alkalmazás kilép ennyi inaktivitás után.</string>
<string id="SettingsPollDelay">További lekérdezési késleltetés (másodpercben). Késleltetést ad az
összes menüelem állapotfrissítése közé.</string>
<string id="SettingsConfirmTimeout">Ezen idő (másodpercben) elteltével egy művelet megerősítő
párbeszédablaka automatikusan bezáródik, és a művelet megszakad. Állítsa 0-ra az időtúllépés
kikapcsolásához.</string>
<string id="SettingsPin">4 számjegyű PIN-kód, amelyet minden szükséges művelethez használni kell
(0000-9999).</string>
<string id="SettingsPinError">Kérjük, konfiguráljon egy érvényes 4 számjegyű numerikus PIN-kódot
0000 és 9999 között az alkalmazás beállításaiban.</string>
<string id="SettingsTextAlign">Menü igazítása: Balra (ki) vagy Jobbra (be).</string>
<string id="SettingsLeftToRight">Balról jobbra</string>
<string id="SettingsRightToLeft">Jobbról balra</string>
<string id="SettingsWidgetStart">(Csak widget) Az alkalmazás automatikus indítása a widgetről,
érintés nélkül.</string>
<string id="SettingsEnableBatteryLevel">Engedélyezze a háttérszolgáltatásnak, hogy elküldje az
eszköz akkumulátorának töltöttségi szintjét, helyét és (ha támogatott) tevékenységi adatait a
Home Assistantnek.</string>
<string id="SettingsBatteryLevelRefreshRate">Az adatküldés ismétlési gyakorisága (percekben),
amellyel a háttérszolgáltatásnak adatokat kell küldenie.</string>
<string id="SettingsUserHttpHeader">Felhasználó által megadott HTTP fejléc</string>
<string id="SettingsUserHttpHeaderDescription">Néhány Home Assistant telepítéshez egyéni HTTP
fejléc megadása szükséges a működéshez.</string>
<string id="SettingsUserHttpHeaderName">Felhasználó által megadott HTTP-fejléc: Név</string>
<string id="SettingsUserHttpHeaderValue">Felhasználó által megadott HTTP-fejléc: Érték</string>
<string id="SettingsClearWebhookId">Csatlakozás újra a Home Assistanthez (webhook azonosító
törlése, lásd a hibaelhárítási útmutatót).</string>
<string id="SettingsWebhookId">(Csak olvasható) Az eszköz által létrehozott webhook azonosító a
háttérszolgáltatás frissítéseihez. Szüksége lehet rá a hibakereséshez.</string>
</strings>

View File

@@ -0,0 +1,23 @@
<!--
Distributed under MIT Licence
See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/LICENSE.
GarminHomeAssistant is a Garmin IQ application written in Monkey C and routinely
tested on a Venu 2 device. The source code is provided at:
https://github.com/house-of-abbey/GarminHomeAssistant.
J D Abbey & P A Abbey, 28 December 2022
References:
* https://fonts.google.com/icons
-->
<drawables>
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@@ -0,0 +1 @@
<svg height="18" viewBox="0 0 48 48" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M24 34q.7 0 1.175-.475.475-.475.475-1.175 0-.7-.475-1.175Q24.7 30.7 24 30.7q-.7 0-1.175.475-.475.475-.475 1.175 0 .7.475 1.175Q23.3 34 24 34Zm-1.35-7.65h3V13.7h-3ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 23.95q0-4.1 1.575-7.75 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24.05 4q4.1 0 7.75 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm.05-3q7.05 0 12-4.975T41 23.95q0-7.05-4.95-12T24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24.05 41ZM24 24Z" fill="white" stroke="white"/></svg>

After

Width:  |  Height:  |  Size: 716 B

View File

@@ -0,0 +1,7 @@
<svg height="18" viewBox="0 0 200 500" width="18" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1, 0, 0, 1, 0, 0)">
<rect fill="white" height="100" rx="40" ry="40" width="200" x="0" y="0"/>
<rect fill="white" height="100" rx="40" ry="40" width="200" x="0" y="200"/>
<rect fill="white" height="100" rx="40" ry="40" width="200" x="0" y="400"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 364 B

Some files were not shown because too many files have changed in this diff Show More