Compare commits

...

95 Commits

Author SHA1 Message Date
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
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
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
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
51081ee2e6 Update HISTORY.md
Added v2.16
2024-08-18 13:03:30 +01:00
7c7130367f Update Settings.mc
Rearranged 'else' clauses.
2024-08-18 12:26:45 +01:00
42d1a7233c Update Settings.mc
Test the phone is connected before attempting WebHook HTTP requests.
2024-08-18 12:04:34 +01:00
43378bfe8c Set icons for sent sensor values 2024-08-05 19:34:26 +02:00
700e7ca822 Send heartrate, floor, and respiration rate values to Home Assistant 2024-08-05 18:02:37 +02:00
19642c6679 Update HomeAssistantTemplateMenuItem.mc (#158)
Template errors now displayed per item.
2024-07-26 18:37:27 +00:00
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
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
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
97030dc1b8 Apply automatic changes 2024-07-26 08:16:05 +00:00
6a2a791146 Update strings.xml
Removed glance scope
2024-07-26 08:56:52 +01:00
1eb2fbed0e Added internationalisation of new strings 2024-07-26 08:50:10 +01:00
a86133fd87 Update HISTORY.md
v2.15 added
2024-07-25 23:36:11 +01:00
0ae39a029f Update HomeAssistantTemplateMenuItem.mc
Template errors now displayed per item.
2024-07-25 20:38:17 +01:00
3cebd106eb Update HISTORY.md
v2.14
2024-07-25 08:51:53 +01:00
9471259181 Update BackgroundServiceDelegate.mc (#156)
Put check for methods with 'has' back in.
2024-07-24 09:19:15 +00:00
9030a00d7d Update BackgroundServiceDelegate.mc
Put check for methods with 'has' back in.
2024-07-22 22:18:27 +01:00
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
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
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
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
61f6d69e64 Update HISTORY.md
Added a second feature to 2.13 in anticipation.
2024-07-20 17:39:59 +01:00
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
98af5578f0 Added update to telemetry on completion of an activity 2024-07-20 17:28:57 +01:00
c18736e40d Update Templates.md
Examples now up to date with schema changes.
2024-07-20 17:23:00 +01:00
822c6ccca6 Moved template status updates to webhooks (#150)
This seems to work for non-privileged users.
2024-07-20 15:49:04 +00:00
a139742265 Update HISTORY.md
Ver 2.13 text added in anticipation.
2024-07-19 17:05:19 +01:00
dfa4cdd9b8 Moved template status updates to webhooks
This seems to work for non-privileged users.
2024-07-19 15:15:32 +01:00
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
e6544b5b20 Update monkey.jungle top up 145 (#147)
Missed the Jungle file.
2024-06-15 11:32:35 +01:00
83914e8d8d Update monkey.jungle
Missed the Jungle file.
2024-06-15 11:13:10 +01:00
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
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
5d34db7b6a Update README.md
Typo
2024-05-04 14:29:54 +01:00
cfaa31d5ee Update README.md
Typo
2024-05-04 14:28:33 +01:00
52ee270788 Update README.md
Note about HTTP
2024-05-04 10:06:59 +01:00
dec38889a5 Update HISTORY.md
Added version 2.11
2024-04-17 14:06:34 +01:00
586d85e706 Update export.cmd
Commit directly to main as not application code.
2024-04-17 08:26:52 +01:00
30b55aec3e Merge branch 'main' of https://github.com/house-of-abbey/GarminHomeAssistant 2024-04-17 08:24:52 +01:00
93d672dd40 Apply automatic changes 2024-04-17 07:09:18 +00:00
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
a6e386c5e6 Removed scope="glance" from another language corrections.xml file 2024-04-17 07:52:28 +01:00
2ffd83ebf5 When the cache is deactivated is now also cleared. 2024-04-16 22:58:53 +01:00
48b7e7efe5 Apply automatic changes 2024-04-16 06:35:49 +00:00
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
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
8f685af8ca Missed two System.println() string corrections. 2024-04-15 21:12:08 +01:00
b17d12fe54 Corrected Czech language strings as advised
Also amended some trivial System.println() strings
2024-04-15 19:29:32 +01:00
d5c39fa7f0 Documentation: Screenshot for Unicode Characters 2024-03-31 16:45:31 +01:00
b4b113f4e1 Apply automatic changes 2024-03-30 20:26:40 +00:00
517e36cfb0 Update Templates.md
Amended wording.
2024-03-30 14:19:23 +00:00
7071362656 Update Templates.md
Examples with unicode characters.
2024-03-30 13:36:23 +00:00
e37b2a76aa Merge pull request #129 from jose1711/sk_translation
Corrected a few strings in Slovak.
2024-03-30 12:18:44 +00:00
e3f8291299 Corrected a few strings in Slovak. 2024-03-27 10:01:00 +01:00
2f4c14d7d5 Merge pull request #126 from jose1711/typo
Fix typo
2024-03-22 20:04:03 +00:00
5b9dd6d2eb Fix typo 2024-03-21 23:02:38 +01:00
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
c66950cfb0 Update HISTORY.md 2024-03-21 19:32:59 +00:00
2a99069f48 Review comments 2024-03-21 19:29:52 +00:00
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
34e56c5da0 Added 4 new devices
Devices are: descentmk343mm, descentmk351mm, fr165, fr165m.
2024-03-21 17:39:58 +00:00
0a93f4f9ba Additional documentation changes
Including settings screenshot.
2024-03-21 13:53:01 +00:00
eb0d0f5044 Apply automatic changes 2024-03-21 09:30:42 +00:00
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
00b071c132 Apply automatic changes 2024-03-20 23:46:54 +00:00
cacd9f856f Initial solution 2024-03-20 23:33:13 +00:00
eebf5c9dcd Update Templates.md
Removed a reference to a problem mostly associated with Widgets.
2024-03-18 21:20:56 +00:00
da645f17ad Update README.md
Removed an old reference to a known issue with Widgets.
2024-03-18 08:10:49 +00:00
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
aeeb1aa96e Documentation update 2024-03-08 09:18:48 +00:00
be66c282df Apply automatic changes 2024-03-07 22:31:32 +00:00
4dc31e3c65 Removed a widget only property
That should have been removed previously.
2024-03-07 22:14:25 +00:00
92d3fbee57 Initial fixes 2024-03-07 21:59:33 +00:00
181335bfd7 Update README.md
Added a new [!IMPORTANT] tag
2024-03-06 18:34:40 +00:00
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
0ee20de6c5 Update HISTORY.md 2024-02-18 15:04:32 +00:00
d5ed16e6d2 Amended export.cmd
And removed an old comment from HomeAssistantApp.mc
2024-02-18 15:00:36 +00:00
8e2a4333ca Reverted manifest to test app ID
Removed comments used for running the widget in simulation.
2024-02-11 19:37:43 +00:00
a65dcd6811 Removed widget specific code 2024-02-11 19:35:34 +00:00
7b6fc65bf2 Update TroubleShooting.md
Spelling.
2024-02-11 19:30:12 +00:00
b65d45c955 Update README.md
Added known issue with iPhone's Connect IQ App
2024-02-11 18:31:49 +00:00
85b01eca91 Update issue templates 2024-02-08 21:05:53 +00:00
3ffaa744e0 Update issue templates 2024-02-08 21:02:32 +00:00
d488897fbd Update issue templates 2024-02-08 20:24:45 +00:00
457dcca002 Fix spacing inconsistencies 2024-02-06 21:47:33 +00:00
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
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
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
0dfcc65469 3 bug fixes as per the issue description 2024-02-05 19:09:26 +00:00
4d4a86f195 Update README.md
Added knwoon issue with Edge 540 and 840 devices.
2024-02-01 21:32:46 +00:00
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
66 changed files with 1211 additions and 1300 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.

View File

@ -8,6 +8,8 @@ The background service can report the following statuses from your device to you
- 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.

View File

@ -18,4 +18,14 @@
| 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 Home Assistant. Language support fix where an automatic translation produced an inappropriate word, possibly in more than one language. |
| 2.4 | Sensor status reporting via Home Assistant '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.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. |

View File

@ -10,7 +10,8 @@ The application is designed around a simple scrollable menu where menu items hav
**The intended audience for this application are those comfortable with configuring a Home Assistant** (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". If you are not comfortable with this relatively low level of configuration, you may like to try other Garmin applications instead.
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/). (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.)
> [!IMPORTANT]
> 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/). (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 are struggling with getting the application to work, please consult the [trouble shooting](TroubleShooting.md#menu-configuration-url) guide first.**
@ -22,9 +23,17 @@ As of version 2.0, there are now two installable versions. For older devices bef
| 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="Venu 2" 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_start.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 | 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.** |
| 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. |
As the source code base for both is the same, the version numbers of each will be kept in step. That means that the widget version starts version numbering at 2.0.
### 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
@ -34,7 +43,10 @@ Setup for this menu is more complicated than the Connect IQ settings menu really
2. the file is editable within Home Assistant 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 Home Assistant's file system. That equates to a URL of `https://homeassistant.local/local/garmin/<something>.json`.
> [!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.
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.
@ -193,6 +205,8 @@ Paste in your JSON (and change the file type to JSON if not saving), it will the
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
@ -227,12 +241,21 @@ You should now have a working application on your watch and be able to operate y
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 are responsible for managing the cache when the menu is updated at source. 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.
The application timeout prevents the 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. 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 application uses vibration to confirm the action has been requested, as opposed to the 'toast' 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.
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 Home Assistant 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!**
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?
Another toggle setting for the **Widget version only** allows the user to select a non-standard user interface behaviour. As soon as the menu is retrieved the widget view is replaced by the menu without waiting for a user selection. This has been included as requested by a user, but defaults to off which retains the expected user interactions.
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 Home Assistant. 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
@ -278,13 +301,16 @@ The `id` attribute values are taken from the same names used in [`strings.xml`](
## Known Issues
1. 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 Home Assistant 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.
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. Widgets have less memory than applications. With the new template based sensor display, widgets are more likely to run out of memory. E.g. a Vivoactive 3 device has a memory limit of 60 kB runtime memory for widgets (compared with 124 kB for applications) and memory is likely to be ~90% used. This makes it very likely that a larger menu will crash the application. We cannot predict what will take the application "over the edge", but we can provide this feedback to users to raise awareness, hence the widget displays menu usage as a reminder. If the widget is crashing but the application variant is not, then your menu configuration is too big for the widget. **Please don't give the application a poor review for crashing on your excessive menu definition!**
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 Home Assistant 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.
<img src="images/Venu_Widget_sim.png" width="200" title="Venu 2" style="margin:5px"/>
<img src="images/app_crash.png" width="200" title="Venu 2" style="margin:5px;border: 2px solid black;"/>
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!
3. 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.
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.
4. 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!**
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 and Edge 840 devices at this time. The simulation of both 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 without HTTPS. 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. You will have to put an HTTPS proxy in front of your local Home Assistant to work with this application. 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.

View File

@ -6,13 +6,15 @@
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 Home Assistant instance. _Pretty nifty eh?_ The other method listed below do not add this convenience and checking.
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 Home Assistant 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 Home Assistant. 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

View File

@ -21,7 +21,7 @@ rem
rem -----------------------------------------------------------------------------------
rem Check this path is correct for your Java installation
set JAVA_PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath
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
@ -29,13 +29,8 @@ rem Assume we can create and use this directory
set DEST=export
rem Device for simulation
rem set DEVICE=venu2
set DEVICE=vivoactive3
rem Application
rem set JUNGLE=monkey.jungle
rem Or Widget
set JUNGLE=monkey-widget.jungle
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>] [-c <arg>] [-d <arg>]
@ -104,7 +99,7 @@ rem Compile PRG for a single device for side loading
-Dapple.awt.UIElement=true ^
-jar %SDK_PATH%\monkeybrains.jar ^
--output %SRC%\bin\HomeAssistant.prg ^
--jungles %SRC%\monkey-widget.jungle ^
--jungles %SRC%\%JUNGLE% ^
--private-key %SRC%\..\developer_key ^
--device %DEVICE%_sim ^
--warn ^

View File

@ -5,7 +5,7 @@
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.
- [Jinga2](https://palletsprojects.com/p/jinja/) syntax is used by Home Assistant [Templates](https://www.home-assistant.io/docs/configuration/templating/). Templates are used to dynamically insert values into the content. The syntax includes:
- [Jinja2](https://palletsprojects.com/p/jinja/) syntax is used by Home Assistant [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
@ -16,7 +16,6 @@ In this example we get the battery level of the device and add the percent sign.
```json
{
"entity": "sensor.<device>_battery_level",
"name": "Phone",
"type": "template",
"content": "{{ states('sensor.<device>_battery_level') }}%"
@ -29,19 +28,16 @@ The first two keep to the simple proposal above. The last combines them into a s
```json
{
"entity": "sensor.hallway_temperature",
"name": "Hall Temp",
"type": "template",
"content": "{{ states('sensor.hallway_temperature') }}°C"
},
{
"entity": "sensor.hallway_humidity",
"name": "Hall Humidity",
"type": "template",
"content": "{{ states('sensor.hallway_humidity') }}%"
},
{
"entity": "sensor.hallway_temperature",
"name": "Hallway",
"type": "template",
"content": "{{ states('sensor.hallway_temperature') }}°C {{ states('sensor.hallway_humidity') }}%"
@ -54,10 +50,27 @@ In order to keep the formatting of floating point numbers under control, you mig
{
"name": "Hallway",
"type": "template",
"content": "T:{{ '%.1f'|format(states('sensor.hallway_temperature')|float) }}°C, H:{{ '%.1f'|format(states('sensor.hallway_humidity')|float) }}%"
"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": "template",
"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": "template",
"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.
@ -66,7 +79,6 @@ In this example we get the battery level of the device and add the percent sign.
```json
{
"entity": "sensor.<device>_battery_level",
"name": "Phone",
"type": "template",
"content": "{{ states('sensor.<device>_battery_level') }}%{% if is_state('binary_sensor.<device>_is_charging', 'on') %}+{% endif %}"
@ -77,13 +89,32 @@ Here we also use the else clause as well to give proper text instead of just `on
```json
{
"entity": "binary_sensor.garage_doors",
"name": "Garage Doors",
"type": "template",
"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, users are doing this **against our advice** and asking how to operate 'covers'. This is an example of toggling a garage door open and closed with confirmation. *Do this at your own risk*.
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": "template",
"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",
"confirm": true
}
}
```
## Advanced
Here we generate a bar graph of the battery level. We use the following steps to do this:
@ -97,7 +128,6 @@ Here we generate a bar graph of the battery level. We use the following steps to
```json
{
"entity": "sensor.<device>_battery_level",
"name": "Phone",
"type": "template",
"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)) }}"
@ -108,20 +138,19 @@ An example of a dimmer light with 4 brightness settings 0..3. Here our light wor
```json
{
"$schema": "./schema.json",
"$schema": "https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json",
"title": "Home",
"items": [
{
"entity": "light.green_house",
"name": "LEDs",
"type": "template",
"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) | int }}%{% else %}Off{% endif %}"
"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": "template",
"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) | int }}%{% else %}Off{% endif %}",
"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": {
@ -144,7 +173,7 @@ An example of a dimmer light with 4 brightness settings 0..3. Here our light wor
"entity": "light.green_house",
"name": "LEDs 2",
"type": "template",
"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) | int }}%{% else %}Off{% endif %}",
"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": {
@ -156,7 +185,7 @@ An example of a dimmer light with 4 brightness settings 0..3. Here our light wor
"entity": "light.green_house",
"name": "LEDs 3",
"type": "template",
"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) | int }}%{% else %}Off{% endif %}",
"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": {
@ -170,7 +199,4 @@ An example of a dimmer light with 4 brightness settings 0..3. Here our light wor
## Warnings
Just remember, **you have the ability to crash the application by creating an excessive menu definition**. Older devices running as a widget can be limited in memory such that the JSON definition causes an "Out of Memory" error. Widgets have less memory than applications. Templates can require significant definition for highly customised text. Don't be silly. With the new template based sensor display, widgets are more likely to run out of memory. E.g. a Vivoactive 3 device has a memory limit of 60 kB runtime memory for widgets (compared with 124 kB for applications) and is likely to be ~90% used. This makes it very likely that a larger menu will crash the application. We cannot predict what will take the application "over the edge", but we can provide this feedback to users to raise awareness, hence the widget displays menu usage as a reminder. If the widget is crashing but the application variant is not, then your menu configuration is too big for the widget.
<img src="../images/Venu_Widget_sim.png" width="200" title="Venu 2" style="margin:5px"/>
<img src="../images/app_crash.png" width="200" title="Venu 2" style="margin:5px;border: 2px solid black;"/>
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.

View File

@ -21,12 +21,13 @@ rem
rem -----------------------------------------------------------------------------------
rem Check this path is correct for your Java installation
set JAVA_PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath
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 C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
@ -72,17 +73,20 @@ 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 %SRC%\export\HomeAssistant*.iq (
del /f /q %SRC%\export\HomeAssistant*.iq
if exist %IQ% (
echo Deleting old %IQ%
del /f /q %IQ%
)
echo.
echo Starting export of HomeAssistant Application
echo Starting export of HomeAssistant Application to %IQ%
echo.
"%JAVA_PATH%\java.exe" ^
@ -91,32 +95,15 @@ echo.
-Dapple.awt.UIElement=true ^
-jar %SDK_PATH%\monkeybrains.jar ^
--api-level 3.1.0 ^
--output %SRC%\export\HomeAssistant-app.iq ^
--output %IQ% ^
--jungles %SRC%\monkey.jungle ^
--private-key %SRC%\..\developer_key ^
--package-app ^
--release
rem --warn
echo.
echo Starting export of HomeAssistant Widget
echo.
"%JAVA_PATH%\java.exe" ^
-Xms1g ^
-Dfile.encoding=UTF-8 ^
-Dapple.awt.UIElement=true ^
-jar %SDK_PATH%\monkeybrains.jar ^
--api-level 3.1.0 ^
--output %SRC%\export\HomeAssistant-widget.iq ^
--jungles %SRC%\monkey-widget.jungle ^
--private-key %SRC%\..\developer_key ^
--package-app ^
--release
rem --warn
echo.
echo Finished exporting HomeAssistant
dir %SRC%\export\HomeAssistant*.iq
dir %IQ%
pause

Binary file not shown.

Before

Width:  |  Height:  |  Size: 777 KiB

After

Width:  |  Height:  |  Size: 697 KiB

BIN
images/Unicode_Template.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -1,28 +0,0 @@
//-----------------------------------------------------------------------------------
//
// 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.
//
// P A Abbey & J D Abbey & Someone0nEarth, 20 December 2023
//
//
// Description:
//
// A tedious diversion intended to make it possible to have the same source code for
// both a widget and an application. This file provides a single constant to
// determine which, and then the source file is conditionally included by the each
// .jungle file.
//
//-----------------------------------------------------------------------------------
using Toybox.Lang;
class WidgetApp {
static const isWidget = false;
}

View File

@ -1,28 +0,0 @@
//-----------------------------------------------------------------------------------
//
// 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.
//
// P A Abbey & J D Abbey & Someone0nEarth, 20 December 2023
//
//
// Description:
//
// A tedious diversion intended to make it possible to have the same source code for
// both a widget and an application. This file provides a single constant to
// determine which, and then the source file is conditionally included by the each
// .jungle file.
//
//-----------------------------------------------------------------------------------
using Toybox.Lang;
class WidgetApp {
static const isWidget = true;
}

View File

@ -1,196 +0,0 @@
<?xml version="1.0"?>
<!--
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.
P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
Device Information & References:
* https://developer.garmin.com/connect-iq/compatible-devices/
* https://developer.garmin.com/connect-iq/reference-guides/devices-reference/
Someone0nEarth's Test Widget id="bf69be91-5833-4d96-92ea-c5f1a9db5dcc" type="widget"
philipabbey's Test Widget id="4901cdfb-b4a2-4f33-96c7-f5be5992809e" type="widget"
Live Widget id="585af26f-6ff7-44e8-80dc-b3670e5b8648" type="widget"
-->
<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="4901cdfb-b4a2-4f33-96c7-f5be5992809e" type="widget" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
<!--
Use the following from the Visual Studio Code comand 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>
<iq:product id="approachs7042mm" />
<iq:product id="approachs7047mm" />
<iq:product id="d2air" />
<iq:product id="d2airx10" />
<iq:product id="d2delta" />
<iq:product id="d2deltapx" />
<iq:product id="d2deltas" />
<iq:product id="d2mach1" />
<iq:product id="descentg1" />
<iq:product id="descentmk2" />
<iq:product id="descentmk2s" />
<iq:product id="edge1030" />
<iq:product id="edge1030bontrager" />
<iq:product id="edge1030plus" />
<iq:product id="edge1040" />
<iq:product id="edge520plus" />
<iq:product id="edge530" />
<iq:product id="edge820" />
<iq:product id="edge830" />
<iq:product id="edgeexplore" />
<iq:product id="edgeexplore2" />
<iq:product id="enduro" />
<iq:product id="epix2" />
<iq:product id="epix2pro42mm" />
<iq:product id="epix2pro47mm" />
<iq:product id="epix2pro51mm" />
<iq:product id="fenix5" />
<iq:product id="fenix5plus" />
<iq:product id="fenix5s" />
<iq:product id="fenix5splus" />
<iq:product id="fenix5x" />
<iq:product id="fenix5xplus" />
<iq:product id="fenix6" />
<iq:product id="fenix6pro" />
<iq:product id="fenix6s" />
<iq:product id="fenix6spro" />
<iq:product id="fenix6xpro" />
<iq:product id="fenix7" />
<iq:product id="fenix7pro" />
<iq:product id="fenix7pronowifi" />
<iq:product id="fenix7s" />
<iq:product id="fenix7spro" />
<iq:product id="fenix7x" />
<iq:product id="fenix7xpro" />
<iq:product id="fenix7xpronowifi" />
<iq:product id="fenixchronos" />
<iq:product id="fr245" />
<iq:product id="fr245m" />
<iq:product id="fr255" />
<iq:product id="fr255m" />
<iq:product id="fr255s" />
<iq:product id="fr255sm" />
<iq:product id="fr265" />
<iq:product id="fr265s" />
<iq:product id="fr55" />
<iq:product id="fr645" />
<iq:product id="fr645m" />
<iq:product id="fr745" />
<iq:product id="fr935" />
<iq:product id="fr945" />
<iq:product id="fr945lte" />
<iq:product id="fr955" />
<iq:product id="fr965" />
<iq:product id="gpsmap67" />
<iq:product id="instinct2" />
<iq:product id="instinct2s" />
<iq:product id="instinct2x" />
<iq:product id="instinctcrossover" />
<iq:product id="legacyherocaptainmarvel" />
<iq:product id="legacyherofirstavenger" />
<iq:product id="legacysagadarthvader" />
<iq:product id="legacysagarey" />
<iq:product id="marq2" />
<iq:product id="marq2aviator" />
<iq:product id="marqadventurer" />
<iq:product id="marqathlete" />
<iq:product id="marqaviator" />
<iq:product id="marqcaptain" />
<iq:product id="marqcommander" />
<iq:product id="marqdriver" />
<iq:product id="marqexpedition" />
<iq:product id="marqgolfer" />
<iq:product id="montana7xx" />
<iq:product id="venu" />
<iq:product id="venu2" />
<iq:product id="venu2plus" />
<iq:product id="venu2s" />
<iq:product id="venu3" />
<iq:product id="venu3s" />
<iq:product id="venud" />
<iq:product id="venusq" />
<iq:product id="venusq2" />
<iq:product id="venusq2m" />
<iq:product id="venusqm" />
<iq:product id="vivoactive3" />
<iq:product id="vivoactive3m" />
<iq:product id="vivoactive3mlte" />
<iq:product id="vivoactive4" />
<iq:product id="vivoactive4s" />
<iq:product id="vivoactive5" />
</iq:products>
<!--
Use "Monkey C: Edit Permissions" from the Visual Studio Code command
palette to update permissions.
-->
<iq:permissions>
<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
palette to edit your compatible language list.
-->
<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>eng</iq:language>
<iq:language>est</iq:language>
<iq:language>fin</iq:language>
<iq:language>fre</iq:language>
<iq:language>heb</iq:language>
<iq:language>hun</iq:language>
<iq:language>ind</iq:language>
<iq:language>ita</iq:language>
<iq:language>jpn</iq:language>
<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>slv</iq:language>
<iq:language>spa</iq:language>
<iq:language>swe</iq:language>
<iq:language>tha</iq:language>
<iq:language>tur</iq:language>
<iq:language>ukr</iq:language>
<iq:language>vie</iq:language>
</iq:languages>
<!--
Use "Monkey C: Configure Monkey Barrel" from the Visual Studio Code
command palette to edit the included barrels.
-->
<iq:barrels />
</iq:application>
</iq:manifest>

View File

@ -29,9 +29,6 @@
watch-app and widget by changing which of the next two lines are commented out
-->
<iq:application id="98c36259-498a-4458-9cef-74a273ad2bc3" type="watch-app" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
<!--
<iq:application id="4901cdfb-b4a2-4f33-96c7-f5be5992809e" type="widget" name="@Strings.AppName" entry="HomeAssistantApp" launcherIcon="@Drawables.LauncherIcon" minApiLevel="3.1.0">
-->
<!--
Use the following from the Visual Studio Code comand palette to edit
the build targets:
@ -51,14 +48,18 @@
<iq:product id="descentg1" />
<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" />
<iq:product id="edge1040" />
<iq:product id="edge520plus" />
<iq:product id="edge530" />
<iq:product id="edge540" />
<iq:product id="edge820" />
<iq:product id="edge830" />
<iq:product id="edge840" />
<iq:product id="edgeexplore" />
<iq:product id="edgeexplore2" />
<iq:product id="enduro" />
@ -86,6 +87,8 @@
<iq:product id="fenix7xpro" />
<iq:product id="fenix7xpronowifi" />
<iq:product id="fenixchronos" />
<iq:product id="fr165"/>
<iq:product id="fr165m"/>
<iq:product id="fr245" />
<iq:product id="fr245m" />
<iq:product id="fr255" />

View File

@ -1,205 +0,0 @@
#-----------------------------------------------------------------------------------
#
# 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
#
# Reference:
# * https://developer.garmin.com/connect-iq/reference-guides/jungle-reference/
#
#-----------------------------------------------------------------------------------
project.manifest = manifest-widget.xml
base.sourcePath = source;include/widget
# Device References
# * https://developer.garmin.com/connect-iq/compatible-devices/
# * https://developer.garmin.com/connect-iq/reference-guides/devices-reference/
#
# Widget launcher icon, multiple resolutions
# https://forums.garmin.com/developer/connect-iq/f/discussion/255433/widget-launcher-icon-multiple-resolutions/1563305
#
# Use the online SVG converter to write out PNGs from "resources\drawables\launcher.svg" by changing
# the 'width' and 'height' attributes of the SVG.
# https://svgtopng.com/
#
# 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
# 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 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 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 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
# 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
# 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 60x60
epix2.resourcePath = $(epix2.resourcePath);resources-launcher-60-60;resources-icons-48
# Screen Size 390x390 launcher icon size 60x60
epix2pro42mm.resourcePath = $(epix2pro42mm.resourcePath);resources-launcher-60-60;resources-icons-46
epix2pro47mm.resourcePath = $(epix2pro47mm.resourcePath);resources-launcher-60-60;resources-icons-46
# 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
fenix6pro.resourcePath = $(fenix6pro.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 240x240 launcher icon size 40x40
fenix6s.resourcePath = $(fenix6s.resourcePath);resources-launcher-40-40;resources-icons-28
fenix6spro.resourcePath = $(fenix6spro.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 280x280 launcher icon size 40x40
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 218x218 launcher icon size 36x36
fenixchronos.resourcePath = $(fenixchronos.resourcePath);resources-launcher-36-36;resources-icons-26
# Screen Size 240x240 launcher icon size 40x40
fenix7s.resourcePath = $(fenix7s.resourcePath);resources-launcher-40-40;resources-icons-28
# Screen Size 240x240 launcher icon size 40x40
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 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
# Screen Size 260x260 launcher icon size 40x40
fr255.resourcePath = $(fr255.resourcePath);resources-launcher-40-40;resources-icons-30
fr255m.resourcePath = $(fr255m.resourcePath);resources-launcher-40-40;resources-icons-30
# Screen Size 218x218 launcher icon size 40x40
fr255s.resourcePath = $(fr255s.resourcePath);resources-launcher-40-40;resources-icons-26
fr255sm.resourcePath = $(fr255sm.resourcePath);resources-launcher-40-40;resources-icons-26
# Screen Size 416x416 launcher icon size 60x60
fr265.resourcePath = $(fr265.resourcePath);resources-launcher-60-60;resources-icons-48
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 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
# Screen Size 240x400 launcher icon size 38x33
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
# Screen Size 163x156 launcher icon size 54x54
instinct2s.resourcePath = $(instinct2s.resourcePath);resources-launcher-54-54;resources-icons-18
# Screen Size 176x176 launcher icon size 62x62
instinct2x.resourcePath = $(instinct2x.resourcePath);resources-launcher-62-62;resources-icons-21
# Screen Size 176x176 launcher icon size 26x26
instinctcrossover.resourcePath = $(instinctcrossover.resourcePath);resources-launcher-26-26;resources-icons-21
# 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
legacyherofirstavenger.resourcePath = $(legacyherofirstavenger.resourcePath);resources-launcher-35-35;resources-icons-30
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
marqaviator.resourcePath = $(marqaviator.resourcePath);resources-launcher-40-40;resources-icons-28
marqcaptain.resourcePath = $(marqcaptain.resourcePath);resources-launcher-40-40;resources-icons-28
marqcommander.resourcePath = $(marqcommander.resourcePath);resources-launcher-40-40;resources-icons-28
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 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
venu2.resourcePath = $(venu2.resourcePath);resources-launcher-70-70;resources-icons-48
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 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
# Screen Size 320x360 launcher icon size 40x40
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

View File

@ -18,11 +18,6 @@
project.manifest = manifest.xml
# Testing in VSCode requires monkey.jungle, so for convenience, swap between
# watch-app and widget by changing which of the next two lines are commented out
base.sourcePath = source;include/app
#base.sourcePath = source;include/widget
# Device References
# * https://developer.garmin.com/connect-iq/compatible-devices/
# * https://developer.garmin.com/connect-iq/reference-guides/devices-reference/
@ -59,6 +54,10 @@ descentg1.resourcePath = $(descentg1.resourcePath);resources-launcher-62-62;reso
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
@ -69,10 +68,12 @@ edge1040.resourcePath = $(edge1040.resourcePath);resources-launcher-40-40;resour
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
@ -118,6 +119,10 @@ fenix7x.resourcePath = $(fenix7x.resourcePath);resources-launcher-40-40;resource
# 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 390 x 390 launcher icon size 54x54
fr165.resourcePath = $(descentmk2s.resourcePath);resources-launcher-54-54;resources-icons-46
# Screen Size 390 x 390 launcher icon size 54x54
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

View File

@ -15,49 +15,54 @@
<!--
Generated by Google Translate: English to Arabic
تم إنشاؤها بواسطة ترجمة جوجل من الإنجليزية
تم إنشاؤه بواسطة Google Translate من اللغة الإنجليزية
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">بالتأكيد؟</string>
<string id="Executed" scope="glance">مؤكد</string>
<string id="NoPhone" scope="glance">لا يوجد اتصال الهاتف</string>
<string id="NoPhone" scope="glance">لا يوجد اتصال بالهاتف</string>
<string id="NoInternet">لا يوجد اتصال بالإنترنت</string>
<string id="NoResponse">لا توجد استجابة، تحقق من الاتصال بالإنترنت</string>
<string id="NoResponse">لا يوجد رد، تحقق من اتصال الإنترنت</string>
<string id="NoAPIKey" scope="glance">لا يوجد مفتاح API في إعدادات التطبيق</string>
<string id="NoApiUrl" scope="glance">لا يوجد عنوان URL لواجهة برمجة التطبيقات في إعدادات التطبيق</string>
<string id="NoConfigUrl" scope="glance">لا يوجد عنوان URL للتكوين في إعدادات التطبيق</string>
<string id="ApiFlood">مكالمات API سريعة جدًا. يرجى إبطاء طلباتك.</string>
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. خطأ محتمل في عنوان URL لواجهة برمجة التطبيقات في الإعدادات.</string>
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. خطأ محتمل في عنوان URL للتكوين في الإعدادات.</string>
<string id="ApiFlood">مكالمات واجهة برمجة التطبيقات سريعة جدًا. يُرجى إبطاء طلباتك.</string>
<string id="ApiUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في عنوان URL الخاص بواجهة برمجة التطبيقات في الإعدادات.</string>
<string id="ConfigUrlNotFound">لم يتم العثور على عنوان URL. قد يكون هناك خطأ في تكوين عنوان URL في الإعدادات.</string>
<string id="NoJson">لم يتم إرجاع JSON من طلب HTTP.</string>
<string id="UnhandledHttpErr">قام طلب HTTP بإرجاع رمز الخطأ =</string>
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL لواجهة برمجة التطبيقات على شرطة مائلة لاحقة '/'</string>
<string id="WebhookFailed">فشل تسجيل Webhook</string>
<string id="TemplateError">فشل في تقديم القالب</string>
<string id="UnhandledHttpErr">طلب HTTP أعاد رمز الخطأ =</string>
<string id="TrailingSlashErr">يجب ألا يحتوي عنوان URL الخاص بواجهة برمجة التطبيقات على شرطة مائلة '/'</string>
<string id="WebhookFailed">فشل في تسجيل Webhook</string>
<string id="TemplateError">فشل في عرض القالب</string>
<string id="Available" scope="glance">متاح</string>
<string id="Checking" scope="glance">تدقيق...</string>
<string id="Unavailable" scope="glance">غير متوفره</string>
<string id="Unconfigured" scope="glance">غير مهيأ</string>
<string id="Cached" scope="glance">مخبأة</string>
<string id="Cached" scope="glance">مخزن مؤقتا</string>
<string id="GlanceMenu" scope="glance">قائمة طعام</string>
<string id="Memory" scope="glance">ذاكرة</string>
<string id="Empty">فارغ</string>
<string id="TemplateError">خطأ القالب</string>
<string id="PotentialError">خطأ محتمل</string>
<!-- لإعدادات واجهة المستخدم الرسومية -->
<string id="SettingsSelect">يختار...</string>
<string id="SettingsApiKey">مفتاح API لـ HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">رمز الوصول طويل الأمد.</string>
<string id="SettingsApiUrl">عنوان URL لواجهة برمجة تطبيقات HomeAssistant.</string>
<string id="SettingsApiUrl">عنوان URL لـ API HomeAssistant.</string>
<string id="SettingsConfigUrl">عنوان URL لتكوين القائمة (JSON).</string>
<string id="SettingsCacheConfig">هل يجب على التطبيق تخزين تكوين القائمة مؤقتًا؟</string>
<string id="SettingsClearCache">هل يجب على التطبيق مسح ذاكرة التخزين المؤقت الموجودة في المرة القادمة التي يتم فيها تشغيله؟</string>
<string id="SettingsClearCache">هل يجب على التطبيق مسح ذاكرة التخزين المؤقت الموجودة في المرة التالية التي يتم تشغيله فيها؟</string>
<string id="SettingsVibration">هل يجب أن يوفر التطبيق ردود الفعل عبر الاهتزازات؟</string>
<string id="SettingsAppTimeout">المهلة بالثواني. قم بالخروج من التطبيق بعد هذه الفترة من عدم النشاط لحفظ بطارية الجهاز.</string>
<string id="SettingsPollDelay">تأخير إضافي في الاستطلاع (بالثواني). يضيف تأخيرًا بين تحديث حالة جميع عناصر القائمة.</string>
<string id="SettingsConfirmTimeout">بعد هذا الوقت (بالثواني)، يتم إغلاق مربع حوار تأكيد الإجراء تلقائيًا ويتم إلغاء الإجراء. اضبط على 0 لتعطيل المهلة.</string>
<string id="SettingsTextAlign">محاذاة القائمة لليسار (إيقاف) أو لليمين (تشغيل).</string>
<string id="SettingsTextAlign">محاذاة القائمة اليسرى (إيقاف) أو اليمنى (تشغيل).</string>
<string id="LeftToRight">من اليسار إلى اليمين</string>
<string id="RightToLeft">من اليمين الى اليسار</string>
<string id="SettingsWidgetStart">(القطعة فقط) قم بتشغيل التطبيق تلقائيًا من الأداة دون انتظار نقرة واحدة.</string>
<string id="SettingsEnableBatteryLevel">قم بتمكين خدمة الخلفية لإرسال مستوى بطارية الجهاز والموقع وبيانات النشاط (إذا كانت مدعومة) إلى Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر فيه خدمة الخلفية إرسال البيانات.</string>
<string id="WebhookId">(للقراءة فقط) معرف Webhook الذي أنشأه الجهاز لتحديثات الخدمة في الخلفية. قد تحتاج إلى هذا لتصحيح الأخطاء.</string>
<string id="SettingsWidgetStart">(الأداة فقط) قم بتشغيل التطبيق تلقائيًا من الأداة دون انتظار نقرة.</string>
<string id="SettingsEnableBatteryLevel">قم بتمكين خدمة الخلفية لإرسال بيانات مستوى بطارية الجهاز وموقعه وبيانات النشاط (إذا كانت مدعومة) إلى Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر به الخدمة الخلفية إرسال البيانات.</string>
<string id="WebhookId">(للقراءة فقط) معرف Webhook الذي أنشأه الجهاز لتحديثات الخدمة في الخلفية. قد تحتاج إلى هذا من أجل تصحيح الأخطاء.</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Кеширано</string>
<string id="GlanceMenu" scope="glance">Меню</string>
<string id="Memory" scope="glance">памет</string>
<string id="Empty">празна</string>
<string id="TemplateError">Грешка в шаблона</string>
<string id="PotentialError">Потенциална грешка</string>
<!-- За GUI за настройки -->
<string id="SettingsSelect">Изберете...</string>
<string id="SettingsApiKey">API ключ за HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL за конфигурация на менюто (JSON).</string>
<string id="SettingsCacheConfig">Трябва ли приложението да кешира конфигурацията на менюто?</string>
<string id="SettingsClearCache">Трябва ли приложението да изчисти съществуващия кеш при следващото стартиране?</string>
<string id="SettingsVibration">Трябва ли приложението да предоставя обратна връзка чрез вибрации?</string>
<string id="SettingsAppTimeout">Изчакване в секунди. Излезте от приложението след този период на неактивност, за да запазите батерията на устройството.</string>
<string id="SettingsPollDelay">Допълнително забавяне на анкетата (в секунди). Добавя забавяне между актуализацията на състоянието на всички елементи от менюто.</string>
<string id="SettingsConfirmTimeout">След това време (в секунди) диалоговият прозорец за потвърждение за действие се затваря автоматично и действието се отменя. Задайте 0, за да деактивирате изчакването.</string>
<string id="SettingsTextAlign">Ляво (изключено) или дясно (включено) подравняване на менюто.</string>
<string id="LeftToRight">Отляво надясно</string>

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

@ -20,29 +20,32 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">Tak určitě?</string>
<string id="Confirm">Určitě?</string>
<string id="Executed" scope="glance">Potvrzeno</string>
<string id="NoPhone" scope="glance">Žá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="NoAPIKey" scope="glance">V nastavení aplikace není žádný klíč API</string>
<string id="NoAPIKey" scope="glance">V nastavení aplikace není klíč API</string>
<string id="NoApiUrl" scope="glance">V nastavení aplikace není žádná adresa URL API</string>
<string id="NoConfigUrl" scope="glance">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="ApiUrlNotFound">Adresa URL nenalezena. Potenciální chyba URL API v nastavení.</string>
<string id="ConfigUrlNotFound">Adresa URL nenalezena. Potenciální chyba konfigurační adresy URL v nastavení.</string>
<string id="NoJson">Z požadavku HTTP se nevrátil žádný JSON.</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="WebhookFailed">Registrace Webhooku se nezdařila</string>
<string id="TemplateError">Vykreslení šablony se nezdařilo</string>
<string id="Available" scope="glance">Dostupný</string>
<string id="Available" scope="glance">Dostupné</string>
<string id="Checking" scope="glance">Kontrola...</string>
<string id="Unavailable" scope="glance">Není k dispozici</string>
<string id="Unconfigured" scope="glance">Nenakonfigurováno</string>
<string id="Cached" scope="glance">Uloženo do mezipaměti</string>
<string id="GlanceMenu" scope="glance">Jídelní lístek</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Paměť</string>
<string id="Empty">Prázdný</string>
<string id="TemplateError">Chyba šablony</string>
<string id="PotentialError">Potenciální chyba</string>
<!-- Pro nastavení GUI -->
<string id="SettingsSelect">Vybrat...</string>
<string id="SettingsApiKey">Klíč API pro HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">Adresa URL pro konfiguraci nabídky (JSON).</string>
<string id="SettingsCacheConfig">Má aplikace uložit konfiguraci nabídky do mezipaměti?</string>
<string id="SettingsClearCache">Měla by aplikace při příštím spuštění vymazat stávající mezipaměť?</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. Po této době nečinnosti aplikaci ukončete, abyste šetřili baterii zařízení.</string>
<string id="SettingsPollDelay">Dodatečné zpoždění dotazování (v sekundách). Přidá prodlevu mezi aktualizací stavu všech položek nabídky.</string>
<string id="SettingsConfirmTimeout">Po uplynutí této doby (v sekundách) se dialog pro potvrzení akce automaticky zavře a akce se zruší. Nastavením na 0 deaktivujete časový limit.</string>
<string id="SettingsTextAlign">Zarovnání nabídky vlevo (vypnuto) nebo vpravo (zapnuto).</string>
<string id="LeftToRight">Zleva do prava</string>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Cachelagret</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Hukommelse</string>
<string id="Empty">Tom</string>
<string id="TemplateError">Skabelonfejl</string>
<string id="PotentialError">Potentiel fejl</string>
<!-- Til indstillingerne GUI -->
<string id="SettingsSelect">Vælg...</string>
<string id="SettingsApiKey">API-nøgle til HomeAssistant.</string>
@ -51,13 +54,15 @@
<string id="SettingsConfigUrl">URL til menukonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Skal applikationen cache menukonfigurationen?</string>
<string id="SettingsClearCache">Skal applikationen rydde den eksisterende cache næste gang den startes?</string>
<string id="SettingsVibration">Skal 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 statusopdatering af alle menupunkter.</string>
<string id="SettingsConfirmTimeout">Efter dette tidspunkt (i sekunder) lukkes en bekræftelsesdialog for en handling automatisk, og handlingen annulleres. Indstil til 0 for at deaktivere timeout.</string>
<string id="SettingsTextAlign">Venstre (fra) eller Højre (til) menujustering.</string>
<string id="SettingsTextAlign">Venstre (fra) eller højre (til) menujustering.</string>
<string id="LeftToRight">Venstre til højre</string>
<string id="RightToLeft">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">Aktiver baggrundstjenesten for at sende enhedens batteriniveau, placering 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="WebhookId">(Skrivebeskyttet) Webhook-id'et oprettet af enheden til baggrundstjenesteopdateringer. Du kan kræve dette til fejlretning.</string>
<string id="WebhookId">(Skrivebeskyttet) Webhook-id'et oprettet af enheden til baggrundstjenesteopdateringer. Du kan kræve dette til fejlfinding.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to German
Erstellt durch Google Translate aus dem Englischen
Generiert von Google Translate aus dem Englischen
-->
<strings>
@ -24,14 +24,14 @@
<string id="Executed" scope="glance">Bestätigt</string>
<string id="NoPhone" scope="glance">Keine Telefonverbindung</string>
<string id="NoInternet">Keine Internetverbindung</string>
<string id="NoResponse">Keine Antwort, überprüfen Sie die Internetverbindung</string>
<string id="NoResponse">Keine Antwort, Internetverbindung prüfen</string>
<string id="NoAPIKey" scope="glance">Kein API-Schlüssel in den Anwendungseinstellungen</string>
<string id="NoApiUrl" scope="glance">Keine API-URL in den Anwendungseinstellungen</string>
<string id="NoConfigUrl" scope="glance">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öglicherweise falsche Konfigurations-URL in den Einstellungen.</string>
<string id="NoJson">Von der HTTP-Anfrage wurde kein JSON zurückgegeben.</string>
<string id="NoJson">Von der HTTP-Anforderung wurde kein JSON zurückgegeben.</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 konnte nicht registriert werden</string>
@ -43,16 +43,21 @@
<string id="Cached" scope="glance">gecacht</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Speicher</string>
<string id="Empty">Leer</string>
<string id="TemplateError">Template konnte nicht gerendert werden</string>
<string id="PotentialError">Möglicher Fehler</string>
<!-- Für die Einstellungs-GUI -->
<string id="SettingsSelect">Wählen...</string>
<string id="SettingsApiKey">API-Schlüssel für HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Langlebiges Zugriffstoken.</string>
<string id="SettingsApiKeyPrompt">Langlebiger Zugriffstoken.</string>
<string id="SettingsApiUrl">URL der HomeAssistant-API.</string>
<string id="SettingsConfigUrl">URL der Menükonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Soll die Anwendung die Menükonfiguration cachen?</string>
<string id="SettingsClearCache">Soll die Anwendung beim nächsten Start den vorhandenen Cache löschen?</string>
<string id="SettingsVibration">Soll die Anwendung eine Rückmeldung über Vibrationen geben?</string>
<string id="SettingsAppTimeout">Die App wird nach Ablauf der Zeit (in Sekunden) bei Inaktivität beendet, um den Akku
des Geräts zu schonen.</string>
<string id="SettingsPollDelay">Zusätzliche Abfrageverzögerung (in Sekunden). Fügt eine Verzögerung zwischen der Statusaktualisierung aller Menüelemente hinzu.</string>
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird der Bestätigungsdialog einer Aktion geschlossen und die
Aktion abgebrochen. Auf 0 setzen, um den Timeout zu deaktivieren.</string>
<string id="SettingsTextAlign">Menüausrichtung links (aus) oder rechts (ein).</string>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Dutch
Gegenereerd door Google Translate uit het Engels
Gemaakt door Google Translate uit het Engels
-->
<strings>
@ -24,39 +24,44 @@
<string id="Executed" scope="glance">Bevestigd</string>
<string id="NoPhone" scope="glance">Geen telefoonverbinding</string>
<string id="NoInternet">Geen internet verbinding</string>
<string id="NoResponse">Geen reactie, controleer de internetverbinding</string>
<string id="NoResponse">Geen reactie, controleer internetverbinding</string>
<string id="NoAPIKey" scope="glance">Geen API-sleutel in de applicatie-instellingen</string>
<string id="NoApiUrl" scope="glance">Geen API-URL in de applicatie-instellingen</string>
<string id="NoConfigUrl" scope="glance">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="NoJson">Er is geen JSON geretourneerd door een HTTP-verzoek.</string>
<string id="UnhandledHttpErr">HTTP-verzoek retourneerde foutcode =</string>
<string id="ConfigUrlNotFound">URL niet gevonden. Mogelijke configuratie-URL-fout in instellingen.</string>
<string id="NoJson">Er is geen JSON geretourneerd vanuit de HTTP-aanvraag.</string>
<string id="UnhandledHttpErr">HTTP-aanvraag retourneerde foutcode =</string>
<string id="TrailingSlashErr">API-URL mag geen afsluitende slash '/' bevatten</string>
<string id="WebhookFailed">Registreren van Webhook is mislukt</string>
<string id="TemplateError">Kan de sjabloon niet weergeven</string>
<string id="WebhookFailed">Webhook registreren mislukt</string>
<string id="TemplateError">Het is niet gelukt om de sjabloon te renderen</string>
<string id="Available" scope="glance">Beschikbaar</string>
<string id="Checking" scope="glance">Controleren...</string>
<string id="Unavailable" scope="glance">Niet beschikbaar</string>
<string id="Unconfigured" scope="glance">Niet geconfigureerd</string>
<string id="Cached" scope="glance">In cache opgeslagen</string>
<string id="Cached" scope="glance">Gecached</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Geheugen</string>
<!-- Voor de instellingen-GUI -->
<string id="Empty">Leeg</string>
<string id="TemplateError">Sjabloonfout</string>
<string id="PotentialError">Mogelijke fout</string>
<!-- Voor de instellingen GUI -->
<string id="SettingsSelect">Selecteer...</string>
<string id="SettingsApiKey">API-sleutel voor HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Toegangstoken met lange levensduur.</string>
<string id="SettingsApiKeyPrompt">Langlevende toegangstoken.</string>
<string id="SettingsApiUrl">URL voor HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL voor menuconfiguratie (JSON).</string>
<string id="SettingsCacheConfig">Moet de applicatie de menuconfiguratie in de cache opslaan?</string>
<string id="SettingsClearCache">Moet de applicatie de volgende keer dat deze wordt gestart de bestaande cache wissen?</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="SettingsConfirmTimeout">Na deze tijd (in seconden) wordt automatisch een bevestigingsvenster voor een actie gesloten en wordt de actie geannuleerd. Stel in op 0 om de time-out uit te schakelen.</string>
<string id="SettingsTextAlign">Links (uit) of rechts (aan) Menu-uitlijning.</string>
<string id="SettingsCacheConfig">Moet de applicatie de menuconfiguratie cachen?</string>
<string id="SettingsClearCache">Moet de applicatie de bestaande cache wissen wanneer deze de volgende keer wordt gestart?</string>
<string id="SettingsVibration">Moet de applicatie feedback geven via trillingen?</string>
<string id="SettingsAppTimeout">Time-out in seconden. Sluit de applicatie na deze periode van inactiviteit om de batterij van het apparaat te sparen.</string>
<string id="SettingsPollDelay">Extra pollvertraging (in seconden). Voegt een vertraging toe tussen de statusupdate van alle menu-items.</string>
<string id="SettingsConfirmTimeout">Na deze tijd (in seconden) wordt een bevestigingsdialoog voor een actie automatisch gesloten en wordt de actie geannuleerd. Stel in op 0 om de time-out uit te schakelen.</string>
<string id="SettingsTextAlign">Menu-uitlijning links (uit) of rechts (aan).</string>
<string id="LeftToRight">Van links naar rechts</string>
<string id="RightToLeft">Rechts naar links</string>
<string id="SettingsWidgetStart">(Alleen Widget) Start de applicatie automatisch vanuit de widget zonder te wachten op een tik.</string>
<string id="SettingsWidgetStart">(Alleen widget) Start de applicatie automatisch vanuit de widget zonder te wachten op een tik.</string>
<string id="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om het batterijniveau, de locatie en (indien ondersteund) activiteitsgegevens van het apparaat naar Home Assistant te sturen.</string>
<string id="SettingsBatteryLevelRefreshRate">De vernieuwingsfrequentie (in minuten) waarmee de achtergrondservice het verzenden van gegevens moet herhalen.</string>
<string id="WebhookId">(Alleen-lezen) De webhook-ID die door het apparaat is gemaakt voor service-updates op de achtergrond. Mogelijk hebt u dit nodig voor foutopsporing.</string>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Estonian
Inglise keelest loodud Google'i tõlke abil
Loodud Google'i tõlke abil inglise keelest
-->
<strings>
@ -28,13 +28,13 @@
<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="ApiFlood">API-kutsed liiga kiired. Palun aeglustage oma taotlusi.</string>
<string id="ApiFlood">API-kõned liiga kiired. Palun aeglustage oma taotlusi.</string>
<string id="ApiUrlNotFound">URL-i ei leitud. Võimalik API URL-i viga seadetes.</string>
<string id="ConfigUrlNotFound">URL-i ei leitud. Võimalik konfiguratsiooni URL-i viga seadetes.</string>
<string id="NoJson">HTTP-päringust ei tagastatud ühtegi JSON-i.</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="WebhookFailed">Veebihaagi registreerimine ebaõnnestus</string>
<string id="WebhookFailed">Webhaoki registreerimine ebaõnnestus</string>
<string id="TemplateError">Malli renderdamine ebaõnnestus</string>
<string id="Available" scope="glance">Saadaval</string>
<string id="Checking" scope="glance">Kontrollimine...</string>
@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Vahemällu salvestatud</string>
<string id="GlanceMenu" scope="glance">Menüü</string>
<string id="Memory" scope="glance">Mälu</string>
<string id="Empty">Tühi</string>
<string id="TemplateError">Malli viga</string>
<string id="PotentialError">Võimalik viga</string>
<!-- Seadete GUI jaoks -->
<string id="SettingsSelect">Vali...</string>
<string id="SettingsApiKey">API-võti HomeAssistantile.</string>
@ -51,13 +54,15 @@
<string id="SettingsConfigUrl">URL menüü konfigureerimiseks (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="SettingsVibration">Kas rakendus peaks andma tagasisidet vibratsiooni kaudu?</string>
<string id="SettingsAppTimeout">Aegumine sekundites. Seadme aku säästmiseks sulgege rakendus pärast seda tegevusetusperioodi.</string>
<string id="SettingsPollDelay">Küsitluse täiendav viivitus (sekundites). Lisab viivituse kõigi menüüelementide olekuvärskenduse vahele.</string>
<string id="SettingsConfirmTimeout">Pärast seda aega (sekundites) suletakse automaatselt toimingu kinnitusdialoog ja toiming tühistatakse. Ajalõpu keelamiseks määrake väärtusele 0.</string>
<string id="SettingsTextAlign">Vasak (väljas) või parem (sees) menüü joondamine.</string>
<string id="LeftToRight">Vasakult paremale</string>
<string id="RightToLeft">Paremalt vasakule</string>
<string id="SettingsWidgetStart">(Ainult vidin) Käivitage rakendus automaatselt vidinast ilma puudutust ootamata.</string>
<string id="SettingsEnableBatteryLevel">Lubage taustateenus, et saata Home Assistantile seadme aku tase, asukoht ja (kui see on toetatud) tegevusandmed.</string>
<string id="SettingsEnableBatteryLevel">Lubage taustteenus, et saata Home Assistantile seadme aku tase, asukoht ja (kui see on toetatud) tegevusandmed.</string>
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), millega taustateenus peaks andmete saatmist kordama.</string>
<string id="WebhookId">(Ainult lugemiseks) Seadme loodud veebihaagi ID taustateenuste värskenduste jaoks. Võib-olla vajate seda silumiseks.</string>
</strings>

View File

@ -25,7 +25,7 @@
<string id="NoPhone" scope="glance">Ei puhelinyhteyttä</string>
<string id="NoInternet">Ei Internet-yhteyttä</string>
<string id="NoResponse">Ei vastausta, tarkista Internet-yhteys</string>
<string id="NoAPIKey" scope="glance">Sovellusasetuksissa ei ole API-avainta</string>
<string id="NoAPIKey" scope="glance">Sovelluksen asetuksissa ei ole API-avainta</string>
<string id="NoApiUrl" scope="glance">Sovellusasetuksissa ei ole API URL-osoitetta</string>
<string id="NoConfigUrl" scope="glance">Sovelluksen asetuksissa ei ole konfigurointi-URL-osoitetta</string>
<string id="ApiFlood">API-kutsut liian nopeita. Hidasta pyyntöjäsi.</string>
@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Välimuistissa</string>
<string id="GlanceMenu" scope="glance">Valikko</string>
<string id="Memory" scope="glance">Muisti</string>
<string id="Empty">Tyhjä</string>
<string id="TemplateError">Mallivirhe</string>
<string id="PotentialError">Mahdollinen virhe</string>
<!-- GUI-asetusten osalta -->
<string id="SettingsSelect">Valitse...</string>
<string id="SettingsApiKey">API-avain HomeAssistantille.</string>
@ -51,13 +54,15 @@
<string id="SettingsConfigUrl">URL-osoite valikon määrityksiä varten (JSON).</string>
<string id="SettingsCacheConfig">Pitäisikö sovelluksen tallentaa valikon asetukset välimuistiin?</string>
<string id="SettingsClearCache">Pitäisikö sovelluksen tyhjentää olemassa oleva välimuisti, kun se käynnistetään seuraavan kerran?</string>
<string id="SettingsVibration">Pitäisikö sovelluksen antaa palautetta tärinän kautta?</string>
<string id="SettingsAppTimeout">Aikakatkaisu sekunneissa. Poistu sovelluksesta tämän käyttämättömyyden jälkeen säästääksesi laitteen akkua.</string>
<string id="SettingsConfirmTimeout">Tämän ajan kuluttua (sekunneissa) toiminnon vahvistusikkuna suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoksi 0, jos haluat poistaa aikakatkaisun käytöstä.</string>
<string id="SettingsPollDelay">Ylimääräinen kyselyn viive (sekunneissa). Lisää viiveen kaikkien valikkokohtien tilapäivitysten välille.</string>
<string id="SettingsConfirmTimeout">Tämän ajan kuluttua (sekunneissa) toiminnon vahvistusikkuna suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoksi 0 poistaaksesi aikakatkaisun käytöstä.</string>
<string id="SettingsTextAlign">Vasen (pois) tai oikea (päällä) valikon kohdistus.</string>
<string id="LeftToRight">Vasemmalta oikealle</string>
<string id="RightToLeft">Oikealta vasemmalle</string>
<string id="SettingsWidgetStart">(Vain widget) Käynnistä sovellus automaattisesti widgetistä odottamatta napautusta.</string>
<string id="SettingsEnableBatteryLevel">Ota taustapalvelu käyttöön, jotta voit lähettää laitteen akun varaustason, sijainnin ja (jos tuettu) toimintatiedot Home Assistantille.</string>
<string id="SettingsBatteryLevelRefreshRate">Virkistystaajuus (minuutteina), jolla taustapalvelun pitäisi toistaa tietojen lähettäminen.</string>
<string id="SettingsBatteryLevelRefreshRate">Päivitystaajuus (minuutteina), jolla taustapalvelun pitäisi toistaa tietojen lähettäminen.</string>
<string id="WebhookId">(Vain luku) Laitteen luoma Webhook-tunnus taustapalvelupäivityksiä varten. Saatat tarvita tätä virheenkorjaukseen.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to French
Généré par Google Translate de l'anglais
Généré par Google Translate depuis l'anglais
-->
<strings>
@ -24,40 +24,45 @@
<string id="Executed" scope="glance">Confirmé</string>
<string id="NoPhone" scope="glance">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="NoAPIKey" scope="glance">Pas de clé API dans les paramètres de l'application</string>
<string id="NoApiUrl" scope="glance">Aucune URL API dans les paramètres de l'application</string>
<string id="NoResponse">Aucune réponse, vérifiez la connexion Internet</string>
<string id="NoAPIKey" scope="glance">Aucune clé API dans les paramètres de l'application</string>
<string id="NoApiUrl" scope="glance">Aucune URL d'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="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="NoJson">Aucun JSON renvoyé par la requête HTTP.</string>
<string id="UnhandledHttpErr">La requête HTTP a renvoyé un code d'erreur =</string>
<string id="UnhandledHttpErr">La requête HTTP a renvoyé le code d'erreur =</string>
<string id="TrailingSlashErr">L'URL de l'API ne doit pas comporter de barre oblique finale '/'</string>
<string id="WebhookFailed">Échec de l'enregistrement du Webhook</string>
<string id="TemplateError">Échec du rendu du modèle</string>
<string id="TemplateError">Impossible de restituer le modèle</string>
<string id="Available" scope="glance">Disponible</string>
<string id="Checking" scope="glance">Vérification...</string>
<string id="Unavailable" scope="glance">Indisponible</string>
<string id="Unconfigured" scope="glance">Non configuré</string>
<string id="Cached" scope="glance">En cache</string>
<string id="Cached" scope="glance">Mis en cache</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Mémoire</string>
<string id="Empty">Vide</string>
<string id="TemplateError">Erreur de modèle</string>
<string id="PotentialError">Erreur potentielle</string>
<!-- Pour l'interface graphique des paramètres -->
<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 de lAPI HomeAssistant.</string>
<string id="SettingsConfigUrl">URL de configuration des menus (JSON).</string>
<string id="SettingsApiKeyPrompt">Jeton d'accès 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 doit-elle mettre en cache la configuration du menu ?</string>
<string id="SettingsClearCache">L'application doit-elle vider le cache existant au prochain démarrage ?</string>
<string id="SettingsVibration">L'application doit-elle fournir un retour via des vibrations ?</string>
<string id="SettingsAppTimeout">Délai d'expiration en secondes. Quittez l'application après cette période d'inactivité pour économiser la batterie de l'appareil.</string>
<string id="SettingsConfirmTimeout">Passé ce délai (en secondes), une boîte de dialogue de confirmation d'une action se ferme automatiquement et l'action est annulée. Réglez sur 0 pour désactiver le délai d'attente.</string>
<string id="SettingsPollDelay">Délai d'interrogation supplémentaire (en secondes). Ajoute un délai entre la mise à jour du statut de tous les éléments du menu.</string>
<string id="SettingsConfirmTimeout">Après ce délai (en secondes), une boîte de dialogue de confirmation d'une action est automatiquement fermée et l'action est annulée. Réglez sur 0 pour désactiver le délai d'attente.</string>
<string id="SettingsTextAlign">Alignement du menu à gauche (désactivé) ou à droite (activé).</string>
<string id="LeftToRight">De gauche à droite</string>
<string id="RightToLeft">De droite à gauche</string>
<string id="SettingsWidgetStart">(Widget uniquement) Démarrez automatiquement l'application à partir du widget sans attendre un clic.</string>
<string id="SettingsEnableBatteryLevel">Activez le service en arrière-plan pour envoyer les données de niveau de batterie, d'emplacement et (si pris en charge) d'activité de l'appareil à Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Fréquence de rafraîchissement (en minutes) à laquelle le service en arrière-plan doit répéter l'envoi des données.</string>
<string id="WebhookId">(Lecture seule) ID Webhook créé par l'appareil pour les mises à jour du service en arrière-plan. Vous pourriez en avoir besoin pour le débogage.</string>
<string id="SettingsEnableBatteryLevel">Activez le service d'arrière-plan pour envoyer le niveau de batterie de l'appareil, l'emplacement et (si pris en charge) les données d'activité à Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La fréquence de rafraîchissement (en minutes) à laquelle le service d'arrière-plan doit répéter l'envoi de données.</string>
<string id="WebhookId">(Lecture seule) L'ID Webhook créé par l'appareil pour les mises à jour du service en arrière-plan. Vous pourriez en avoir besoin pour le débogage.</string>
</strings>

View File

@ -20,7 +20,7 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">Σίγουρος?</string>
<string id="Confirm">Σίγουρος;</string>
<string id="Executed" scope="glance">Επιβεβαιωμένος</string>
<string id="NoPhone" scope="glance">Δεν υπάρχει σύνδεση τηλεφώνου</string>
<string id="NoInternet">Δεν υπάρχει σύνδεση στο διαδίκτυο</string>
@ -30,10 +30,10 @@
<string id="NoConfigUrl" scope="glance">Δεν υπάρχει διεύθυνση URL διαμόρφωσης στις ρυθμίσεις της εφαρμογής</string>
<string id="ApiFlood">Κλήσεις API πολύ γρήγορες. Παρακαλώ επιβραδύνετε τα αιτήματά σας.</string>
<string id="ApiUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL API στις ρυθμίσεις.</string>
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διεύθυνσης URL διαμόρφωσης στις ρυθμίσεις.</string>
<string id="ConfigUrlNotFound">Η διεύθυνση URL δεν βρέθηκε. Πιθανό σφάλμα διαμόρφωσης URL στις ρυθμίσεις.</string>
<string id="NoJson">Δεν επιστράφηκε JSON από αίτημα HTTP.</string>
<string id="UnhandledHttpErr">Το αίτημα HTTP επέστρεψε κωδικό σφάλματος =</string>
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει τελική κάθετο "/"</string>
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει κάθετο "/"</string>
<string id="WebhookFailed">Η εγγραφή του Webhook απέτυχε</string>
<string id="TemplateError">Απέτυχε η απόδοση του προτύπου</string>
<string id="Available" scope="glance">Διαθέσιμος</string>
@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Αποθηκευμένο στην κρυφή μνήμη</string>
<string id="GlanceMenu" scope="glance">Μενού</string>
<string id="Memory" scope="glance">Μνήμη</string>
<string id="Empty">Αδειάζω</string>
<string id="TemplateError">Σφάλμα προτύπου</string>
<string id="PotentialError">Πιθανό σφάλμα</string>
<!-- Για τις ρυθμίσεις GUI -->
<string id="SettingsSelect">Επιλέγω...</string>
<string id="SettingsApiKey">Κλειδί API για το HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL για τη διαμόρφωση μενού (JSON).</string>
<string id="SettingsCacheConfig">Πρέπει η εφαρμογή να αποθηκεύσει προσωρινά τη διαμόρφωση του μενού;</string>
<string id="SettingsClearCache">Πρέπει η εφαρμογή να διαγράψει την υπάρχουσα προσωρινή μνήμη την επόμενη φορά που θα ξεκινήσει;</string>
<string id="SettingsVibration">Πρέπει η εφαρμογή να παρέχει ανατροφοδότηση μέσω δονήσεων;</string>
<string id="SettingsAppTimeout">Timeout σε δευτερόλεπτα. Κλείστε την εφαρμογή μετά από αυτήν την περίοδο αδράνειας για να εξοικονομήσετε την μπαταρία της συσκευής.</string>
<string id="SettingsPollDelay">Πρόσθετη καθυστέρηση δημοσκόπησης (σε δευτερόλεπτα). Προσθέτει μια καθυστέρηση μεταξύ της ενημέρωσης κατάστασης όλων των στοιχείων μενού.</string>
<string id="SettingsConfirmTimeout">Μετά από αυτό το χρονικό διάστημα (σε δευτερόλεπτα), ένα παράθυρο διαλόγου επιβεβαίωσης για μια ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται. Ορίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
<string id="SettingsTextAlign">Αριστερά (απενεργοποίηση) ή Δεξιά (ενεργό) Ευθυγράμμιση μενού.</string>
<string id="LeftToRight">Από αριστερά προς τα δεξιά</string>

View File

@ -27,7 +27,7 @@
<string id="NoResponse">אין תגובה, בדוק חיבור לאינטרנט</string>
<string id="NoAPIKey" scope="glance">אין מפתח API בהגדרות האפליקציה</string>
<string id="NoApiUrl" scope="glance">אין כתובת API בהגדרות האפליקציה</string>
<string id="NoConfigUrl" scope="glance">אין כתובת URL לתצורה בהגדרות האפליקציה</string>
<string id="NoConfigUrl" scope="glance">אין כתובת אתר תצורה בהגדרות האפליקציה</string>
<string id="ApiFlood">קריאות API מהירות מדי. נא להאט את הבקשות שלך.</string>
<string id="ApiUrlNotFound">כתובת האתר לא נמצאה. שגיאה פוטנציאלית של כתובת ה-API בהגדרות.</string>
<string id="ConfigUrlNotFound">כתובת האתר לא נמצאה. שגיאת כתובת אתר פוטנציאלית של תצורה בהגדרות.</string>
@ -43,6 +43,9 @@
<string id="Cached" scope="glance">שמור במטמון</string>
<string id="GlanceMenu" scope="glance">תַפרִיט</string>
<string id="Memory" scope="glance">זיכרון</string>
<string id="Empty">ריק</string>
<string id="TemplateError">שגיאת תבנית</string>
<string id="PotentialError">שגיאה פוטנציאלית</string>
<!-- עבור ה-GUI של ההגדרות -->
<string id="SettingsSelect">בחר...</string>
<string id="SettingsApiKey">מפתח API עבור HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">כתובת URL לתצורת תפריט (JSON).</string>
<string id="SettingsCacheConfig">האם האפליקציה צריכה לשמור את תצורת התפריט במטמון?</string>
<string id="SettingsClearCache">האם היישום צריך לנקות את המטמון הקיים בפעם הבאה שהוא יופעל?</string>
<string id="SettingsVibration">האם האפליקציה צריכה לספק משוב באמצעות רעידות?</string>
<string id="SettingsAppTimeout">פסק זמן בשניות. צא מהאפליקציה לאחר תקופה זו של חוסר פעילות כדי לחסוך בסוללת המכשיר.</string>
<string id="SettingsPollDelay">עיכוב נוסף בסקר (בשניות). מוסיף עיכוב בין עדכון המצב של כל פריטי התפריט.</string>
<string id="SettingsConfirmTimeout">לאחר זמן זה (בשניות), תיבת דו-שיח לאישור פעולה נסגרת אוטומטית והפעולה מבוטלת. הגדר ל-0 כדי לבטל את הזמן הקצוב.</string>
<string id="SettingsTextAlign">יישור תפריט שמאלה (כבוי) או ימינה (מופעל).</string>
<string id="LeftToRight">משמאל לימין</string>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Spremljeno u predmemoriju</string>
<string id="GlanceMenu" scope="glance">Jelovnik</string>
<string id="Memory" scope="glance">Memorija</string>
<string id="Empty">Prazan</string>
<string id="TemplateError">Pogreška predloška</string>
<string id="PotentialError">Potencijalna pogreška</string>
<!-- Za GUI postavki -->
<string id="SettingsSelect">Izaberi...</string>
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL za konfiguraciju izbornika (JSON).</string>
<string id="SettingsCacheConfig">Treba li aplikacija spremiti konfiguraciju izbornika u predmemoriju?</string>
<string id="SettingsClearCache">Treba li aplikacija prilikom sljedećeg pokretanja očistiti postojeću predmemoriju?</string>
<string id="SettingsVibration">Treba li aplikacija dati povratnu informaciju putem vibracija?</string>
<string id="SettingsAppTimeout">Istek u sekundama. Izađite iz aplikacije nakon ovog razdoblja neaktivnosti kako biste uštedjeli bateriju uređaja.</string>
<string id="SettingsPollDelay">Dodatna odgoda ankete (u sekundama). Dodaje odgodu 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 poništava. Postavite na 0 da onemogućite vremensko ograničenje.</string>
<string id="SettingsTextAlign">Lijevo (isključeno) ili desno (uključeno) poravnanje izbornika.</string>
<string id="LeftToRight">S lijeva nadesno</string>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Gyorsítótárban</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">memória</string>
<string id="Empty">Üres</string>
<string id="TemplateError">Sablon hiba</string>
<string id="PotentialError">Lehetséges hiba</string>
<!-- A beállítások GUI-hoz -->
<string id="SettingsSelect">Válassz...</string>
<string id="SettingsApiKey">API-kulcs a HomeAssistant számára.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL a menükonfigurációhoz (JSON).</string>
<string id="SettingsCacheConfig">Az alkalmazásnak gyorsítótárba kell helyeznie a menü konfigurációját?</string>
<string id="SettingsClearCache">Törölje az alkalmazásnak a meglévő gyorsítótárat a következő indításakor?</string>
<string id="SettingsVibration">Az alkalmazásnak rezgésekkel kell visszajelzést adnia?</string>
<string id="SettingsAppTimeout">Időtúllépés másodpercben. Az eszköz akkumulátorának kímélése érdekében lépjen ki az alkalmazásból ezen inaktivitási időszak 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ött.</string>
<string id="SettingsConfirmTimeout">Ezen idő elteltével (másodpercben) egy művelet megerősítő párbeszédpanele automatikusan bezárul, és a művelet megszakad. Állítsa 0-ra az időtúllépés letiltásához.</string>
<string id="SettingsTextAlign">Balra (ki) vagy Jobbra (be) Menüigazítás.</string>
<string id="LeftToRight">Balról jobbra</string>

View File

@ -15,49 +15,54 @@
<!--
Generated by Google Translate: English to Indonesian
Dihasilkan oleh Google Terjemahan dari bahasa Inggris
Dihasilkan oleh Google Translate dari bahasa Inggris
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">Tentu?</string>
<string id="Executed" scope="glance">Dikonfirmasi</string>
<string id="NoPhone" scope="glance">Tidak ada koneksi Telepon</string>
<string id="NoPhone" scope="glance">Tidak ada koneksi telepon</string>
<string id="NoInternet">Tidak ada koneksi internet</string>
<string id="NoResponse">Tidak Ada Respon, periksa koneksi Internet</string>
<string id="NoResponse">Tidak ada Respon, periksa koneksi internet</string>
<string id="NoAPIKey" scope="glance">Tidak ada kunci API di pengaturan aplikasi</string>
<string id="NoApiUrl" scope="glance">Tidak ada URL API di pengaturan aplikasi</string>
<string id="NoConfigUrl" scope="glance">Tidak ada URL konfigurasi di pengaturan aplikasi</string>
<string id="ApiFlood">Panggilan API terlalu cepat. Harap memperlambat permintaan Anda.</string>
<string id="ApiUrlNotFound">URL tidak ditemukan. Potensi kesalahan URL API dalam pengaturan.</string>
<string id="ConfigUrlNotFound">URL tidak ditemukan. Potensi kesalahan URL Konfigurasi dalam pengaturan.</string>
<string id="NoConfigUrl" scope="glance">Tidak ada URL konfigurasi dalam pengaturan aplikasi</string>
<string id="ApiFlood">Panggilan API terlalu cepat. Harap perlambat permintaan Anda.</string>
<string id="ApiUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan URL API dalam pengaturan.</string>
<string id="ConfigUrlNotFound">URL tidak ditemukan. Kemungkinan kesalahan Konfigurasi URL dalam pengaturan.</string>
<string id="NoJson">Tidak ada JSON yang dikembalikan dari permintaan HTTP.</string>
<string id="UnhandledHttpErr">Permintaan HTTP mengembalikan kode kesalahan =</string>
<string id="TrailingSlashErr">URL API tidak boleh memiliki garis miring '/'</string>
<string id="TrailingSlashErr">URL API tidak boleh memiliki garis miring '/' di akhir</string>
<string id="WebhookFailed">Gagal mendaftarkan Webhook</string>
<string id="TemplateError">Gagal merender template</string>
<string id="Available" scope="glance">Tersedia</string>
<string id="Checking" scope="glance">Memeriksa...</string>
<string id="Unavailable" scope="glance">Tidak tersedia</string>
<string id="Unconfigured" scope="glance">Tidak dikonfigurasi</string>
<string id="Cached" scope="glance">Di-cache</string>
<string id="Cached" scope="glance">Disimpan dalam cache</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Penyimpanan</string>
<string id="Empty">Kosong</string>
<string id="TemplateError">Kesalahan Template</string>
<string id="PotentialError">Potensi Kesalahan</string>
<!-- Untuk pengaturan GUI -->
<string id="SettingsSelect">Pilih...</string>
<string id="SettingsApiKey">Kunci API untuk HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token Akses Berumur Panjang.</string>
<string id="SettingsApiKeyPrompt">Token Akses Jangka Panjang.</string>
<string id="SettingsApiUrl">URL untuk API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</string>
<string id="SettingsCacheConfig">Haruskah aplikasi menyimpan konfigurasi menu dalam cache?</string>
<string id="SettingsClearCache">Haruskah aplikasi menghapus cache yang ada saat dijalankan lagi?</string>
<string id="SettingsVibration">Haruskah aplikasi memberikan umpan balik melalui getaran?</string>
<string id="SettingsAppTimeout">Batas waktu dalam hitungan detik. Keluar dari aplikasi setelah periode tidak aktif ini untuk menghemat baterai perangkat.</string>
<string id="SettingsConfirmTimeout">Setelah waktu ini (dalam detik), dialog konfirmasi untuk suatu tindakan secara otomatis ditutup dan tindakan tersebut dibatalkan. Setel ke 0 untuk menonaktifkan batas waktu.</string>
<string id="SettingsTextAlign">Penyelarasan Menu Kiri (mati) atau Kanan (hidup).</string>
<string id="SettingsPollDelay">Penundaan polling tambahan (dalam detik). Menambahkan penundaan antara pembaruan status semua item menu.</string>
<string id="SettingsConfirmTimeout">Setelah waktu ini (dalam detik), dialog konfirmasi untuk suatu tindakan akan ditutup secara otomatis dan tindakan tersebut dibatalkan. Atur ke 0 untuk menonaktifkan batas waktu.</string>
<string id="SettingsTextAlign">Penyelarasan Menu Kiri (nonaktif) atau Kanan (aktif).</string>
<string id="LeftToRight">Kiri ke kanan</string>
<string id="RightToLeft">Kanan ke kiri</string>
<string id="SettingsWidgetStart">(Khusus widget) Secara otomatis memulai aplikasi dari widget tanpa menunggu ketukan.</string>
<string id="SettingsEnableBatteryLevel">Aktifkan layanan latar belakang untuk mengirim data level baterai perangkat, lokasi, dan aktivitas (jika didukung) ke Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Kecepatan refresh (dalam menit) saat layanan latar belakang harus mengulangi pengiriman data.</string>
<string id="WebhookId">(Hanya baca) ID Webhook yang dibuat oleh perangkat untuk pembaruan layanan latar belakang. Anda mungkin memerlukan ini untuk debugging.</string>
<string id="SettingsWidgetStart">(Hanya widget) Secara otomatis memulai aplikasi dari widget tanpa menunggu ketukan.</string>
<string id="SettingsEnableBatteryLevel">Aktifkan layanan latar belakang untuk mengirim tingkat baterai perangkat, lokasi, dan (jika didukung) data aktivitas ke Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Kecepatan penyegaran (dalam menit) di mana layanan latar belakang harus mengulang pengiriman data.</string>
<string id="WebhookId">(Hanya baca) ID Webhook yang dibuat oleh perangkat untuk pembaruan layanan latar belakang. Anda mungkin memerlukannya untuk debugging.</string>
</strings>

View File

@ -28,36 +28,41 @@
<string id="NoAPIKey" scope="glance">Nessuna chiave API nelle impostazioni dell'applicazione</string>
<string id="NoApiUrl" scope="glance">Nessun URL API nelle impostazioni dell'applicazione</string>
<string id="NoConfigUrl" scope="glance">Nessun URL di configurazione nelle impostazioni dell'applicazione</string>
<string id="ApiFlood">Chiamate API troppo rapide. Per favore rallenta le tue richieste.</string>
<string id="ApiUrlNotFound">URL non trovato. Potenziale errore URL API nelle impostazioni.</string>
<string id="ConfigUrlNotFound">URL non trovato. Potenziale errore dell'URL di configurazione nelle impostazioni.</string>
<string id="ApiFlood">Chiamate API troppo rapide. Rallenta le tue richieste.</string>
<string id="ApiUrlNotFound">URL non trovato. Possibile errore URL API nelle impostazioni.</string>
<string id="ConfigUrlNotFound">URL non trovato. Possibile errore URL di configurazione nelle impostazioni.</string>
<string id="NoJson">Nessun JSON restituito dalla richiesta HTTP.</string>
<string id="UnhandledHttpErr">La richiesta HTTP ha restituito il codice di errore =</string>
<string id="TrailingSlashErr">L'URL dell'API non deve avere una barra finale "/"</string>
<string id="WebhookFailed">Impossibile registrare il Webhook</string>
<string id="TrailingSlashErr">L'URL dell'API non deve avere una barra finale '/'</string>
<string id="WebhookFailed">Impossibile registrare il webhook</string>
<string id="TemplateError">Impossibile eseguire il rendering del modello</string>
<string id="Available" scope="glance">Disponibile</string>
<string id="Checking" scope="glance">Controllo...</string>
<string id="Checking" scope="glance">Controllo in corso...</string>
<string id="Unavailable" scope="glance">Non disponibile</string>
<string id="Unconfigured" scope="glance">Non configurato</string>
<string id="Cached" scope="glance">Memorizzato nella cache</string>
<string id="GlanceMenu" scope="glance">Menù</string>
<string id="Memory" scope="glance">Memoria</string>
<!-- Per la GUI delle impostazioni -->
<string id="Empty">Vuoto</string>
<string id="TemplateError">Errore modello</string>
<string id="PotentialError">Errore potenziale</string>
<!-- Per l'interfaccia utente grafica delle impostazioni -->
<string id="SettingsSelect">Selezionare...</string>
<string id="SettingsApiKey">Chiave API per HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token di accesso di lunga durata.</string>
<string id="SettingsApiUrl">URL per l'API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL per la configurazione del menu (JSON).</string>
<string id="SettingsCacheConfig">L'applicazione dovrebbe memorizzare nella cache la configurazione del menu?</string>
<string id="SettingsClearCache">L'applicazione dovrebbe svuotare la cache esistente al successivo avvio?</string>
<string id="SettingsAppTimeout">Timeout in secondi. Uscire dall'applicazione dopo questo periodo di inattività per risparmiare la batteria del dispositivo.</string>
<string id="SettingsConfirmTimeout">Trascorso questo tempo (in secondi), una finestra di dialogo di conferma per un'azione viene chiusa automaticamente e l'azione viene annullata. Impostare su 0 per disabilitare il timeout.</string>
<string id="SettingsTextAlign">Allineamento del menu a sinistra (spento) o a destra (acceso).</string>
<string id="SettingsClearCache">La prossima volta che l'applicazione viene avviata, deve cancellare la cache esistente?</string>
<string id="SettingsVibration">L'applicazione dovrebbe fornire feedback tramite vibrazioni?</string>
<string id="SettingsAppTimeout">Timeout in secondi. Esci dall'applicazione dopo questo periodo di inattività per risparmiare la batteria del dispositivo.</string>
<string id="SettingsPollDelay">Ritardo di polling aggiuntivo (in secondi). Aggiunge un ritardo tra l'aggiornamento dello stato di tutte le voci di menu.</string>
<string id="SettingsConfirmTimeout">Dopo questo tempo (in secondi), una finestra di dialogo di conferma per un'azione viene automaticamente chiusa e l'azione viene annullata. Impostare su 0 per disabilitare il timeout.</string>
<string id="SettingsTextAlign">Allineamento del menu a sinistra (disattivato) o a destra (attivato).</string>
<string id="LeftToRight">Da sinistra a destra</string>
<string id="RightToLeft">Da destra a sinistra</string>
<string id="SettingsWidgetStart">(Solo widget) Avvia automaticamente l'applicazione dal widget senza attendere un tocco.</string>
<string id="SettingsEnableBatteryLevel">Abilita il servizio in background per inviare i dati sul livello della batteria del dispositivo, sulla posizione e (se supportato) sull'attività a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frequenza di aggiornamento (in minuti) alla quale il servizio in background deve ripetere l'invio dei dati.</string>
<string id="WebhookId">(Sola lettura) L'ID webhook creato dal dispositivo per gli aggiornamenti del servizio in background. Potrebbe essere necessario per il debug.</string>
<string id="SettingsEnableBatteryLevel">Abilita il servizio in background per inviare i dati relativi al livello della batteria, alla posizione e (se supportati) all'attività del dispositivo a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Frequenza di aggiornamento (in minuti) alla quale il servizio in background dovrebbe ripetere l'invio dei dati.</string>
<string id="WebhookId">(Sola lettura) L'ID Webhook creato dal dispositivo per gli aggiornamenti del servizio in background. Potrebbe essere necessario per il debug.</string>
</strings>

View File

@ -15,49 +15,54 @@
<!--
Generated by Google Translate: English to Japanese
英語から Google 翻訳によって生成
Google翻訳により英語から生成
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">もちろん?</string>
<string id="Executed" scope="glance">確認済み</string>
<string id="NoPhone" scope="glance">電話接続されていません</string>
<string id="NoPhone" scope="glance">電話接続なし</string>
<string id="NoInternet">インターネット接続なし</string>
<string id="NoResponse">応答がありません。インターネット接続を確認してください</string>
<string id="NoAPIKey" scope="glance">アプリケーション設定に API キーがありません</string>
<string id="NoApiUrl" scope="glance">アプリケーション設定に API URL がありません</string>
<string id="NoConfigUrl" scope="glance">アプリケーション設定に構成 URL がありません</string>
<string id="ApiFlood">API 呼び出しが速すぎます。リクエストは遅くしてください。</string>
<string id="ApiUrlNotFound">URLが見つかりません。設定における API URL エラー可能性があります。</string>
<string id="ConfigUrlNotFound">URLが見つかりません。設定内の構成 URL エラー可能性があります。</string>
<string id="NoJson">HTTP リクエストから JSON が返されませんでした</string>
<string id="UnhandledHttpErr">HTTP リクエストがエラー コードを返しました =</string>
<string id="TrailingSlashErr">API URL の末尾にスラッシュ「/」を含めることはできません</string>
<string id="WebhookFailed">Webhookの登録に失敗しました</string>
<string id="NoResponse">応答なし。インターネット接続を確認してください</string>
<string id="NoAPIKey" scope="glance">アプリケーション設定にAPIキーがありません</string>
<string id="NoApiUrl" scope="glance">アプリケーション設定にAPI URLがありません</string>
<string id="NoConfigUrl" scope="glance">アプリケーション設定に構成URLがありません</string>
<string id="ApiFlood">API 呼び出しが速すぎます。リクエストの速度を落としてください。</string>
<string id="ApiUrlNotFound">URL が見つかりません。設定 API URL エラーが発生する可能性があります。</string>
<string id="ConfigUrlNotFound">URL が見つかりません。設定構成 URL エラーが発生する可能性があります。</string>
<string id="NoJson">HTTP リクエストから JSON が返されません。</string>
<string id="UnhandledHttpErr">HTTP リクエストがエラーコードを返しました =</string>
<string id="TrailingSlashErr">API URL の末尾にスラッシュ「/」を付けないでください</string>
<string id="WebhookFailed">Webhook の登録に失敗しました</string>
<string id="TemplateError">テンプレートのレンダリングに失敗しました</string>
<string id="Available" scope="glance">利用可能</string>
<string id="Checking" scope="glance">チェック中...</string>
<string id="Unavailable" scope="glance">利用不可</string>
<string id="Unconfigured" scope="glance">構成</string>
<string id="Cached" scope="glance">キャッシュされた</string>
<string id="Unconfigured" scope="glance">設定</string>
<string id="Cached" scope="glance">キャッシュ済み</string>
<string id="GlanceMenu" scope="glance">メニュー</string>
<string id="Memory" scope="glance">メモリ</string>
<string id="Empty">空の</string>
<string id="TemplateError">テンプレートエラー</string>
<string id="PotentialError">潜在的なエラー</string>
<!-- 設定GUIの場合 -->
<string id="SettingsSelect">選択する...</string>
<string id="SettingsApiKey">ホームアシスタントの API キー。</string>
<string id="SettingsApiKeyPrompt">有効期限の長いアクセス トークン。</string>
<string id="SettingsApiUrl">ホームアシスタント API の URL。</string>
<string id="SettingsConfigUrl">メニュー構成の URL (JSON)。</string>
<string id="SettingsApiKey">HomeAssistant の API キー。</string>
<string id="SettingsApiKeyPrompt">長期有効アクセス トークン。</string>
<string id="SettingsApiUrl">HomeAssistant API の URL。</string>
<string id="SettingsConfigUrl">メニュー設定の URL (JSON)。</string>
<string id="SettingsCacheConfig">アプリケーションはメニュー構成をキャッシュする必要がありますか?</string>
<string id="SettingsClearCache">アプリケーションは次回起動時に既存のキャッシュをクリアする必要がありますか?</string>
<string id="SettingsAppTimeout">秒単位のタイムアウト。デバイスのバッテリーを節約するために、この期間非アクティブになった後はアプリケーションを終了してください。</string>
<string id="SettingsConfirmTimeout">この時間 (秒単位) が経過すると、アクションの確認ダイアログが自動的に閉じられ、アクションがキャンセルされます。タイムアウトを無効にするには、0 に設定します</string>
<string id="SettingsTextAlign">左 (オフ) または右 (オン) メニューの配置</string>
<string id="SettingsVibration">アプリケーションは振動によるフィードバックを提供する必要がありますか?</string>
<string id="SettingsAppTimeout">タイムアウトは秒単位で行われます。デバイスのバッテリーを節約するために、この時間操作が行われなかったらアプリケーションを終了してください</string>
<string id="SettingsPollDelay">追加のポーリング遅延 (秒単位)。すべてのメニュー項目のステータス更新の間に遅延を追加します</string>
<string id="SettingsConfirmTimeout">この時間 (秒単位) が経過すると、アクションの確認ダイアログが自動的に閉じられ、アクションがキャンセルされます。タイムアウトを無効にするには 0 に設定します。</string>
<string id="SettingsTextAlign">メニューの配置を左 (オフ) または右 (オン) にします。</string>
<string id="LeftToRight">左から右へ</string>
<string id="RightToLeft">右から左に</string>
<string id="SettingsWidgetStart">ウィジェットのみタップを待たずにウィジェットからアプリを自動起動します。</string>
<string id="SettingsEnableBatteryLevel">バックグラウンド サービスを有効にして、デバイスのバッテリー レベル、位置情報、および (サポートされている場合) アクティビティ データをホーム アシスタントに送信します。</string>
<string id="SettingsBatteryLevelRefreshRate">バックグラウンド サービスがデータの送信を繰り返すリフレッシュ レート (分単位)。</string>
<string id="WebhookId">(読み取り専用) バックグラウンド サービス更新のためにデバイスによって作成された Webhook ID。デバッグのためにこれが必要になる場合があります。</string>
<string id="SettingsWidgetStart">(ウィジェットのみ) タップを待たずにウィジェットからアプリケーションを自動的に起動します。</string>
<string id="SettingsEnableBatteryLevel">バックグラウンド サービスを有効にして、デバイスのバッテリー レベル、位置情報、および (サポートされている場合) アクティビティ データを Home Assistant に送信します。</string>
<string id="SettingsBatteryLevelRefreshRate">バックグラウンド サービスがデータの送信を繰り返す更新レート (分単位)。</string>
<string id="WebhookId">(読み取り専用) バックグラウンド サービス更新にデバイスによって作成された Webhook ID。デバッグ必要になる場合があります。</string>
</strings>

View File

@ -15,27 +15,27 @@
<!--
Generated by Google Translate: English to Korean
영어에서 Google 번역으로 생성됨
영어에서 Google Translate로 생성됨
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">확신하는?</string>
<string id="Executed" scope="glance">확인됨</string>
<string id="NoPhone" scope="glance">전화 연결 없음</string>
<string id="NoPhone" scope="glance">전화 연결 안됨</string>
<string id="NoInternet">인터넷에 연결되지 않음</string>
<string id="NoResponse">응답습니다. 인터넷 연결을 확인하세요.</string>
<string id="NoAPIKey" scope="glance">애플리케이션 설정에 API 키가 없습니다.</string>
<string id="NoApiUrl" scope="glance">애플리케이션 설정에 API URL이 없습니다.</string>
<string id="NoResponse">응답 없음, 인터넷 연결을 확인하세요</string>
<string id="NoAPIKey" scope="glance">애플리케이션 설정에 API 키가 없습니다</string>
<string id="NoApiUrl" scope="glance">애플리케이션 설정에 API URL이 없습니다</string>
<string id="NoConfigUrl" scope="glance">애플리케이션 설정에 구성 URL이 없습니다.</string>
<string id="ApiFlood">API 호출이 너무 빠릅니다. 요청 속도를 늦추시기 바랍니다.</string>
<string id="ApiFlood">API 호출이 너무 빠릅니다. 요청 속도를 늦춰주세요.</string>
<string id="ApiUrlNotFound">URL을 찾을 수 없습니다. 설정에 잠재적인 API URL 오류가 있습니다.</string>
<string id="ConfigUrlNotFound">URL을 찾을 수 없습니다. 설정에 잠재적인 구성 URL 오류가 있습니다.</string>
<string id="ConfigUrlNotFound">URL을 찾을 수 없습니다. 설정에 잠재적인 구성 URL 오류.</string>
<string id="NoJson">HTTP 요청에서 JSON이 반환되지 않았습니다.</string>
<string id="UnhandledHttpErr">HTTP 요청이 오류 코드를 반환했습니다 =</string>
<string id="TrailingSlashErr">API URL에는 후행 슬래시 '/'가 있어서는 안 됩니다.</string>
<string id="WebhookFailed">웹훅 등록 실패</string>
<string id="TemplateError">템플릿 렌더링하지 못했습니다.</string>
<string id="TrailingSlashErr">API URL에는 끝에 슬래시('/')가 있어서는 안 됩니다.</string>
<string id="WebhookFailed">Webhook 등록 실패했습니다.</string>
<string id="TemplateError">템플릿 렌더링에 실패했습니다</string>
<string id="Available" scope="glance">사용 가능</string>
<string id="Checking" scope="glance">확인 중...</string>
<string id="Unavailable" scope="glance">없는</string>
@ -43,21 +43,26 @@
<string id="Cached" scope="glance">캐시됨</string>
<string id="GlanceMenu" scope="glance">메뉴</string>
<string id="Memory" scope="glance">메모리</string>
<string id="Empty">비어 있는</string>
<string id="TemplateError">템플릿 오류</string>
<string id="PotentialError">잠재적인 오류</string>
<!-- 설정 GUI의 경우 -->
<string id="SettingsSelect">선택하다...</string>
<string id="SettingsApiKey">HomeAssistant API 키.</string>
<string id="SettingsApiKey">HomeAssistant API 키.</string>
<string id="SettingsApiKeyPrompt">장기 액세스 토큰.</string>
<string id="SettingsApiUrl">HomeAssistant API의 URL입니다.</string>
<string id="SettingsConfigUrl">메뉴 구성을 위한 URL(JSON)입니다.</string>
<string id="SettingsCacheConfig">애플리케이션이 메뉴 구성을 캐시해야 합니까?</string>
<string id="SettingsConfigUrl">메뉴 구성을 위한 URL(JSON).</string>
<string id="SettingsCacheConfig">애플리케이션이 메뉴 구성을 캐시해야 할까요?</string>
<string id="SettingsClearCache">애플리케이션이 다음에 시작될 때 기존 캐시를 지워야 합니까?</string>
<string id="SettingsAppTimeout">시간 초과(초)입니다. 장치 배터리를 절약하려면 이 비활성 기간 후에 애플리케이션을 종료하십시오.</string>
<string id="SettingsConfirmTimeout">이 시간(초)이 지나면 작업에 대한 확인 대화 상자가 자동으로 닫히고 작업이 취소됩니다. 시간 초과를 비활성화하려면 0으로 설정합니다.</string>
<string id="SettingsVibration">앱에서 진동을 통해 피드백을 제공해야 할까요?</string>
<string id="SettingsAppTimeout">시간 초과(초). 이 기간 동안 활동이 없으면 애플리케이션을 종료하여 장치 배터리를 절약하세요.</string>
<string id="SettingsPollDelay">추가 폴링 지연(초)입니다. 모든 메뉴 항목의 상태 업데이트 사이에 지연을 추가합니다.</string>
<string id="SettingsConfirmTimeout">이 시간(초) 이후에는 작업에 대한 확인 대화 상자가 자동으로 닫히고 작업이 취소됩니다. 시간 초과를 비활성화하려면 0으로 설정합니다.</string>
<string id="SettingsTextAlign">왼쪽(끄기) 또는 오른쪽(켜기) 메뉴 정렬.</string>
<string id="LeftToRight">왼쪽에서 오른쪽으로</string>
<string id="RightToLeft">오른쪽에서 왼쪽으로</string>
<string id="SettingsWidgetStart">(위젯만 해당) 탭을 기다리지 않고 위젯에서 자동으로 애플리케이션을 시작합니다.</string>
<string id="SettingsEnableBatteryLevel">장치 배터리 수준, 위치 및 (지원되는 경우) 활동 데이터를 홈어시스턴트로 보내려면 백그라운드 서비스를 활성화하세요.</string>
<string id="SettingsEnableBatteryLevel">백그라운드 서비스를 활성화하여 기기의 배터리 수준, 위치 및 (지원되는 경우) 활동 데이터를 Home Assistant로 전송합니다.</string>
<string id="SettingsBatteryLevelRefreshRate">백그라운드 서비스가 데이터 전송을 반복해야 하는 새로 고침 빈도(분)입니다.</string>
<string id="WebhookId">(읽기 전용) 백그라운드 서비스 업데이트를 위해 장치에서 생성한 Webhook ID입니다. 디버깅을 위해 이 정보가 필요할 수 있습니다.</string>
<string id="WebhookId">(읽기 전용) 백그라운드 서비스 업데이트를 위해 디바이스에서 생성한 Webhook ID입니다. 디버깅 필요할 수 있습니다.</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Kešatmiņā saglabāts</string>
<string id="GlanceMenu" scope="glance">Izvēlne</string>
<string id="Memory" scope="glance">Atmiņa</string>
<string id="Empty">Tukšs</string>
<string id="TemplateError">Veidnes kļūda</string>
<string id="PotentialError">Iespējama kļūda</string>
<!-- Iestatījumu GUI -->
<string id="SettingsSelect">Izvēlieties...</string>
<string id="SettingsApiKey">API atslēga Home Assistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL izvēlnes konfigurācijai (JSON).</string>
<string id="SettingsCacheConfig">Vai lietojumprogrammai vajadzētu saglabāt izvēlnes konfigurāciju kešatmiņā?</string>
<string id="SettingsClearCache">Vai lietojumprogrammai nākamajā startēšanas reizē vajadzētu notīrīt esošo kešatmiņu?</string>
<string id="SettingsVibration">Vai lietojumprogrammai ir jāsniedz atgriezeniskā saite, izmantojot vibrācijas?</string>
<string id="SettingsAppTimeout">Taimauts sekundēs. Pēc šī neaktivitātes perioda izejiet no lietojumprogrammas, lai taupītu ierīces akumulatoru.</string>
<string id="SettingsPollDelay">Papildu aptaujas aizkave (sekundēs). Pievieno aizkavi starp visu izvēlnes vienumu statusa atjaunināšanu.</string>
<string id="SettingsConfirmTimeout">Pēc šī laika (sekundēs) tiek automātiski aizvērts darbības apstiprinājuma dialoglodziņš un darbība tiek atcelta. Iestatiet uz 0, lai atspējotu taimautu.</string>
<string id="SettingsTextAlign">Kreisā (izslēgta) vai labā (ieslēgta) izvēlnes izlīdzināšana.</string>
<string id="LeftToRight">No kreisās uz labo</string>

View File

@ -36,27 +36,32 @@
<string id="TrailingSlashErr">API URL pabaigoje negali būti pasvirojo brūkšnio „/“</string>
<string id="WebhookFailed">Nepavyko užregistruoti Webhook</string>
<string id="TemplateError">Nepavyko pateikti šablono</string>
<string id="Available" scope="glance">Galima</string>
<string id="Available" scope="glance">Yra</string>
<string id="Checking" scope="glance">Tikrinama...</string>
<string id="Unavailable" scope="glance">Nepasiekiamas</string>
<string id="Unconfigured" scope="glance">Nesukonfigūruotas</string>
<string id="Cached" scope="glance">Talpykloje</string>
<string id="GlanceMenu" scope="glance">Meniu</string>
<string id="Memory" scope="glance">Atmintis</string>
<string id="Empty">Tuščia</string>
<string id="TemplateError">Šablono klaida</string>
<string id="PotentialError">Galima klaida</string>
<!-- Dėl nustatymų GUI -->
<string id="SettingsSelect">Pasirinkite...</string>
<string id="SettingsApiKey">API raktas, skirtas HomeAssistant.</string>
<string id="SettingsApiKey">API raktas, skirtas HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Ilgalaikis prieigos raktas.</string>
<string id="SettingsApiUrl">„HomeAssistant“ API URL.</string>
<string id="SettingsConfigUrl">Meniu konfigūravimo URL (JSON).</string>
<string id="SettingsCacheConfig">Ar programa turėtų talpykloje išsaugoti meniu konfigūraciją?</string>
<string id="SettingsClearCache">Ar programa turėtų išvalyti esamą talpyklą kitą kartą paleidus?</string>
<string id="SettingsVibration">Ar programa turėtų teikti grįžtamąjį ryšį per vibraciją?</string>
<string id="SettingsAppTimeout">Skirtasis laikas sekundėmis. Po šio neveiklumo laikotarpio išeikite iš programos, kad taupytumėte įrenginio akumuliatorių.</string>
<string id="SettingsPollDelay">Papildoma apklausos delsa (sekundėmis). Prideda delsą tarp visų meniu elementų būsenos atnaujinimo.</string>
<string id="SettingsConfirmTimeout">Praėjus šiam laikui (sekundėmis), veiksmo patvirtinimo dialogo langas automatiškai uždaromas ir veiksmas atšaukiamas. Nustatykite 0, kad išjungtumėte skirtąjį laiką.</string>
<string id="SettingsTextAlign">Kairysis (išjungtas) arba dešinysis (įjungtas) meniu lygiavimas.</string>
<string id="LeftToRight">Iš kairės į dešinę</string>
<string id="RightToLeft">Iš dešinės į kairę</string>
<string id="SettingsWidgetStart">(Tik valdikliui) Automatiškai paleiskite programą iš valdiklio, nelaukdami, kol bus palietus.</string>
<string id="SettingsWidgetStart">(Tik valdiklis) Automatiškai paleiskite programą iš valdiklio, nelaukdami palietimo.</string>
<string id="SettingsEnableBatteryLevel">Įgalinkite foninę paslaugą, kad į „Home Assistant“ būtų išsiųsti įrenginio akumuliatoriaus lygio, vietos ir (jei palaikoma) veiklos duomenys.</string>
<string id="SettingsBatteryLevelRefreshRate">Atnaujinimo dažnis (minutėmis), kuriuo foninė paslauga turėtų pakartoti duomenų siuntimą.</string>
<string id="WebhookId">(Tik skaitoma) Įrenginio sukurtas „Webhook“ ID, skirtas foninėms paslaugoms atnaujinti. Jums gali prireikti derinimo.</string>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Bufret</string>
<string id="GlanceMenu" scope="glance">Meny</string>
<string id="Memory" scope="glance">Hukommelse</string>
<string id="Empty">Tømme</string>
<string id="TemplateError">Malfeil</string>
<string id="PotentialError">Potensiell feil</string>
<!-- For innstillingene GUI -->
<string id="SettingsSelect">Plukke ut...</string>
<string id="SettingsApiKey">API-nøkkel for HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL for menykonfigurasjon (JSON).</string>
<string id="SettingsCacheConfig">Skal applikasjonen bufre menykonfigurasjonen?</string>
<string id="SettingsClearCache">Bør applikasjonen tømme den eksisterende cachen neste gang den startes?</string>
<string id="SettingsVibration">Skal applikasjonen gi tilbakemelding via vibrasjoner?</string>
<string id="SettingsAppTimeout">Tidsavbrudd i sekunder. Avslutt applikasjonen etter denne perioden med inaktivitet for å spare enhetens batteri.</string>
<string id="SettingsPollDelay">Ytterligere avstemningsforsinkelse (i sekunder). Legger til en forsinkelse mellom statusoppdatering av alle menyelementer.</string>
<string id="SettingsConfirmTimeout">Etter denne tiden (i sekunder), lukkes en bekreftelsesdialog for en handling automatisk og handlingen avbrytes. Sett til 0 for å deaktivere tidsavbruddet.</string>
<string id="SettingsTextAlign">Venstre (av) eller Høyre (på) Menyjustering.</string>
<string id="LeftToRight">Venstre til høyre</string>
@ -59,5 +64,5 @@
<string id="SettingsWidgetStart">(Kun widget) Start applikasjonen automatisk fra widgeten uten å vente på et trykk.</string>
<string id="SettingsEnableBatteryLevel">Aktiver bakgrunnstjenesten for å sende enhetens batterinivå, plassering og (hvis støttet) aktivitetsdata til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Oppdateringshastigheten (i minutter) som bakgrunnstjenesten skal gjenta sending av data med.</string>
<string id="WebhookId">(Skrivebeskyttet) Webhook-IDen opprettet av enheten for bakgrunnstjenesteoppdateringer. Du kan kreve dette for feilsøking.</string>
<string id="WebhookId">(Skrivebeskyttet) Webhook-IDen opprettet av enheten for oppdateringer av bakgrunnstjenester. Du kan kreve dette for feilsøking.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Polish
Wygenerowane przez Tłumacz Google z języka angielskiego
Wygenerowano przez Google Tłumacz z języka angielskiego
-->
<strings>
@ -26,38 +26,43 @@
<string id="NoInternet">Brak połączenia z internetem</string>
<string id="NoResponse">Brak odpowiedzi, sprawdź połączenie internetowe</string>
<string id="NoAPIKey" scope="glance">Brak klucza API w ustawieniach aplikacji</string>
<string id="NoApiUrl" scope="glance">Brak adresu API w ustawieniach aplikacji</string>
<string id="NoApiUrl" scope="glance">Brak adresu URL API w ustawieniach aplikacji</string>
<string id="NoConfigUrl" scope="glance">Brak adresu URL konfiguracji w ustawieniach aplikacji</string>
<string id="ApiFlood">Wywołania API są zbyt szybkie. Proszę spowolnić swoje żądania.</string>
<string id="ApiUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL interfejsu API w ustawieniach.</string>
<string id="ApiFlood">Wywołania API są zbyt szybkie. Proszę zwolnić żądania.</string>
<string id="ApiUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL API w ustawieniach.</string>
<string id="ConfigUrlNotFound">Nie znaleziono adresu URL. Potencjalny błąd adresu URL konfiguracji w ustawieniach.</string>
<string id="NoJson">Z żądania HTTP nie zwrócono żadnego kodu JSON.</string>
<string id="UnhandledHttpErr">Żądanie HTTP zwróciło kod błędu =</string>
<string id="TrailingSlashErr">Adres URL interfejsu API nie może zawierać końcowego ukośnika „/”</string>
<string id="WebhookFailed">Nie udało się zarejestrować webhooka</string>
<string id="TrailingSlashErr">Adres URL interfejsu API nie może mieć ukośnika „/” na końcu</string>
<string id="WebhookFailed">Nie udało się zarejestrować Webhook</string>
<string id="TemplateError">Nie udało się wyrenderować szablonu</string>
<string id="Available" scope="glance">Dostępny</string>
<string id="Checking" scope="glance">Kontrola...</string>
<string id="Unavailable" scope="glance">Niedostępne</string>
<string id="Unconfigured" scope="glance">Nieskonfigurowane</string>
<string id="Cached" scope="glance">Buforowane</string>
<string id="Unconfigured" scope="glance">Nieskonfigurowany</string>
<string id="Cached" scope="glance">Zapisane w pamięci podręcznej</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Pamięć</string>
<string id="Empty">Pusty</string>
<string id="TemplateError">Błąd szablonu</string>
<string id="PotentialError">Potencjalny błąd</string>
<!-- Dla ustawień GUI -->
<string id="SettingsSelect">Wybierać...</string>
<string id="SettingsApiKey">Klucz API dla HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Długowieczny token dostępu.</string>
<string id="SettingsApiKeyPrompt">Długoterminowy token dostępu.</string>
<string id="SettingsApiUrl">Adres URL interfejsu API HomeAssistant.</string>
<string id="SettingsConfigUrl">Adres URL konfiguracji menu (JSON).</string>
<string id="SettingsConfigUrl">Adres URL do konfiguracji menu (JSON).</string>
<string id="SettingsCacheConfig">Czy aplikacja powinna buforować konfigurację menu?</string>
<string id="SettingsClearCache">Czy aplikacja powinna wyczyścić istniejącą pamięć podręczną przy następnym uruchomieniu?</string>
<string id="SettingsClearCache">Czy aplikacja powinna wyczyścić pamięć podręczną przy następnym uruchomieniu?</string>
<string id="SettingsVibration">Czy aplikacja powinna przekazywać informacje zwrotne za pomocą wibracji?</string>
<string id="SettingsAppTimeout">Limit czasu w sekundach. Wyjdź z aplikacji po tym okresie bezczynności, aby oszczędzać baterię urządzenia.</string>
<string id="SettingsConfirmTimeout">Po tym czasie (w sekundach) okno dialogowe z potwierdzeniem akcji zamyka się automatycznie, a akcja zostaje anulowana. Ustaw na 0, aby wyłączyć limit czasu.</string>
<string id="SettingsTextAlign">Wyrównanie menu do lewej (wyłączone) lub do prawej (włączone).</string>
<string id="SettingsPollDelay">Dodatkowe opóźnienie sondowania (w sekundach). Dodaje opóźnienie między aktualizacją statusu wszystkich elementów menu.</string>
<string id="SettingsConfirmTimeout">Po tym czasie (w sekundach) okno dialogowe potwierdzenia akcji jest automatycznie zamykane, a akcja jest anulowana. Ustaw na 0, aby wyłączyć limit czasu.</string>
<string id="SettingsTextAlign">Wyrównanie menu do lewej (wyłączone) lub prawej (włączone).</string>
<string id="LeftToRight">Od lewej do prawej</string>
<string id="RightToLeft">Od prawej do lewej</string>
<string id="SettingsWidgetStart">(Tylko widget) Automatycznie uruchamiaj aplikację z widgetu, bez czekania na dotknięcie.</string>
<string id="SettingsEnableBatteryLevel">Włącz usługę działającą w tle, aby wysyłać dane dotyczące poziomu naładowania baterii urządzenia, lokalizacji i (jeśli obsługiwane) do Home Assistant.</string>
<string id="SettingsWidgetStart">(Tylko widżet) Automatyczne uruchamianie aplikacji z widżetu bez czekania na dotknięcie.</string>
<string id="SettingsEnableBatteryLevel">Włącz usługę działającą w tle, aby wysyłać do Home Assistant dane dotyczące poziomu naładowania baterii urządzenia, jego lokalizacji i aktywności (jeśli jest obsługiwana).</string>
<string id="SettingsBatteryLevelRefreshRate">Częstotliwość odświeżania (w minutach), z jaką usługa działająca w tle powinna powtarzać wysyłanie danych.</string>
<string id="WebhookId">(Tylko do odczytu) Identyfikator webhook utworzony przez urządzenie na potrzeby aktualizacji usług w tle. Możesz tego potrzebować do debugowania.</string>
<string id="WebhookId">(Tylko do odczytu) Identyfikator webhooka utworzony przez urządzenie na potrzeby aktualizacji usług w tle. Możesz tego potrzebować do debugowania.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Portuguese
Gerado pelo Google Translate do inglês
Gerado pelo Google Tradutor do Inglês
-->
<strings>
@ -24,16 +24,16 @@
<string id="Executed" scope="glance">Confirmado</string>
<string id="NoPhone" scope="glance">Sem conexão telefônica</string>
<string id="NoInternet">Sem conexão com a Internet</string>
<string id="NoResponse">Sem resposta, verifique a conexão com a Internet</string>
<string id="NoResponse">Nenhuma resposta, verifique a conexão com a Internet</string>
<string id="NoAPIKey" scope="glance">Nenhuma chave de API nas configurações do aplicativo</string>
<string id="NoApiUrl" scope="glance">Nenhum URL de API nas configurações do aplicativo</string>
<string id="NoApiUrl" scope="glance">Nenhuma URL de API nas configurações do aplicativo</string>
<string id="NoConfigUrl" scope="glance">Nenhum URL de configuração nas configurações do aplicativo</string>
<string id="ApiFlood">Chamadas de API muito rápidas. Por favor, diminua a velocidade de seus pedidos.</string>
<string id="ApiUrlNotFound">URL não encontrado. Possível erro de URL da API nas configurações.</string>
<string id="ConfigUrlNotFound">URL não encontrado. Possível erro de URL de configuração nas configurações.</string>
<string id="ApiFlood">Chamadas de API muito rápidas. Por favor, diminua a velocidade de suas solicitações.</string>
<string id="ApiUrlNotFound">URL não encontrada. Possível erro de URL de API nas configurações.</string>
<string id="ConfigUrlNotFound">URL não encontrada. Possível erro de URL de configuração nas configurações.</string>
<string id="NoJson">Nenhum JSON foi retornado da solicitação HTTP.</string>
<string id="UnhandledHttpErr">Solicitação HTTP retornou código de erro =</string>
<string id="TrailingSlashErr">O URL da API não deve ter uma barra final '/'</string>
<string id="UnhandledHttpErr">A solicitação HTTP retornou o código de erro =</string>
<string id="TrailingSlashErr">A URL da API não deve ter uma barra final '/'</string>
<string id="WebhookFailed">Falha ao registrar o Webhook</string>
<string id="TemplateError">Falha ao renderizar o modelo</string>
<string id="Available" scope="glance">Disponível</string>
@ -43,21 +43,26 @@
<string id="Cached" scope="glance">Em cache</string>
<string id="GlanceMenu" scope="glance">Cardápio</string>
<string id="Memory" scope="glance">Memória</string>
<string id="Empty">Vazio</string>
<string id="TemplateError">Erro de modelo</string>
<string id="PotentialError">Erro potencial</string>
<!-- Para a GUI de configurações -->
<string id="SettingsSelect">Selecione...</string>
<string id="SettingsApiKey">Chave de API para HomeAssistant.</string>
<string id="SettingsApiKey">Chave API para HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token de acesso de longa duração.</string>
<string id="SettingsApiUrl">URL para API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL para configuração do menu (JSON).</string>
<string id="SettingsApiUrl">URL para a API do HomeAssistant.</string>
<string id="SettingsConfigUrl">URL para configuração de menu (JSON).</string>
<string id="SettingsCacheConfig">O aplicativo deve armazenar em cache a configuração do menu?</string>
<string id="SettingsClearCache">O aplicativo deve limpar o cache existente na próxima vez que for iniciado?</string>
<string id="SettingsAppTimeout">Tempo limite em segundos. Saia do aplicativo após esse período de inatividade para economizar bateria do aparelho.</string>
<string id="SettingsClearCache">O aplicativo deve limpar o cache existente na próxima vez que for iniciado?</string>
<string id="SettingsVibration">O aplicativo deve fornecer feedback por meio de vibrações?</string>
<string id="SettingsAppTimeout">Tempo limite em segundos. Saia do aplicativo após esse período de inatividade para economizar a bateria do dispositivo.</string>
<string id="SettingsPollDelay">Atraso adicional de pesquisa (em segundos). Adiciona um atraso entre a atualização de status de todos os itens do menu.</string>
<string id="SettingsConfirmTimeout">Após esse tempo (em segundos), uma caixa de diálogo de confirmação de uma ação é automaticamente fechada e a ação é cancelada. Defina como 0 para desativar o tempo limite.</string>
<string id="SettingsTextAlign">Alinhamento do menu à esquerda (desligado) ou à direita (ligado).</string>
<string id="LeftToRight">Da esquerda para direita</string>
<string id="RightToLeft">Direita para esquerda</string>
<string id="SettingsWidgetStart">(Somente widget) Inicie automaticamente o aplicativo a partir do widget sem esperar por um toque.</string>
<string id="SettingsEnableBatteryLevel">Ative o serviço em segundo plano para enviar o nível da bateria do dispositivo, localização e (se compatível) dados de atividade para o Home Assistant.</string>
<string id="SettingsWidgetStart">(Somente widget) Inicie o aplicativo automaticamente a partir do widget sem esperar por um toque.</string>
<string id="SettingsEnableBatteryLevel">Habilite o serviço em segundo plano para enviar o nível da bateria do dispositivo, a localização e (se compatível) dados de atividade para o Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">A taxa de atualização (em minutos) na qual o serviço em segundo plano deve repetir o envio de dados.</string>
<string id="WebhookId">(Somente leitura) O ID do Webhook criado pelo dispositivo para atualizações de serviço em segundo plano. Você pode precisar disso para depuração.</string>
</strings>

View File

@ -28,10 +28,10 @@
<string id="NoAPIKey" scope="glance">Nicio cheie API în setările aplicației</string>
<string id="NoApiUrl" scope="glance">Nicio adresă URL API în setările aplicației</string>
<string id="NoConfigUrl" scope="glance">Nicio adresă URL de configurare în setările aplicației</string>
<string id="ApiFlood">Apeluri API prea rapide. Vă rugăm să încetiniți cererile dvs.</string>
<string id="ApiUrlNotFound">Adresa URL nu a fost găsită. Potențială eroare URL API în setări.</string>
<string id="ConfigUrlNotFound">Adresa URL nu a fost găsită. Potențială eroare URL de configurare în setări.</string>
<string id="NoJson">Niciun JSON nu a fost returnat de la solicitarea HTTP.</string>
<string id="ApiFlood">Apeluri API prea rapide. Vă rugăm să încetiniți solicitările dvs.</string>
<string id="ApiUrlNotFound">URL nu a fost găsit. Potențială eroare URL API în setări.</string>
<string id="ConfigUrlNotFound">URL nu a fost găsit. Potențială eroare URL de configurare în setări.</string>
<string id="NoJson">Nu a fost returnat niciun JSON de la solicitarea HTTP.</string>
<string id="UnhandledHttpErr">Solicitarea HTTP a returnat codul de eroare =</string>
<string id="TrailingSlashErr">Adresa URL API nu trebuie să aibă o bară oblică „/”</string>
<string id="WebhookFailed">Nu s-a putut înregistra Webhook</string>
@ -43,6 +43,9 @@
<string id="Cached" scope="glance">În cache</string>
<string id="GlanceMenu" scope="glance">Meniul</string>
<string id="Memory" scope="glance">Memorie</string>
<string id="Empty">Gol</string>
<string id="TemplateError">Eroare de șablon</string>
<string id="PotentialError">Eroare potențială</string>
<!-- Pentru GUI de setări -->
<string id="SettingsSelect">Selectați...</string>
<string id="SettingsApiKey">Cheie API pentru HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL pentru configurarea meniului (JSON).</string>
<string id="SettingsCacheConfig">Ar trebui aplicația să memoreze în cache configurația meniului?</string>
<string id="SettingsClearCache">Ar trebui aplicația să golească memoria cache existentă data viitoare când este pornită?</string>
<string id="SettingsVibration">Ar trebui aplicația să ofere feedback prin vibrații?</string>
<string id="SettingsAppTimeout">Timeout în secunde. Ieșiți din aplicație după această perioadă de inactivitate pentru a economisi bateria dispozitivului.</string>
<string id="SettingsPollDelay">Întârziere suplimentară a sondajului (în secunde). Adaugă o întârziere între actualizarea stării tuturor elementelor de meniu.</string>
<string id="SettingsConfirmTimeout">După acest timp (în secunde), un dialog de confirmare pentru o acțiune este închis automat și acțiunea este anulată. Setați la 0 pentru a dezactiva timeout-ul.</string>
<string id="SettingsTextAlign">Alinierea meniului la stânga (dezactivată) sau la dreapta (activată).</string>
<string id="LeftToRight">De la stânga la dreapta</string>

View File

@ -20,5 +20,11 @@
<strings>
<string id="Confirm">Potvrďte</string>
<string id="Executed" scope="glance">Spustený</string>
<string id="Executed">Spustený</string>
<string id="NoAPIKey">V nastaveniach aplikácie chýba kľúč API</string>
<string id="NoApiUrl">V nastaveniach aplikácie chýba adresa URL rozhrania API</string>
<string id="NoConfigUrl">V nastaveniach aplikácie chýba konfiguračná adresa URL</string>
<string id="Unavailable">Nedostupné</string>
<string id="RightToLeft">Sprava doľava</string>
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí, ktorá bude do Home Assistenta odosielať údaje o stave batérie zariadenia, polohe a (ak je podporované) o aktivite.</string>
</strings>

View File

@ -25,9 +25,9 @@
<string id="NoPhone" scope="glance">Žiadne telefónne spojenie</string>
<string id="NoInternet">Žiadne internetové pripojenie</string>
<string id="NoResponse">Žiadna odpoveď, skontrolujte internetové pripojenie</string>
<string id="NoAPIKey" scope="glance">V nastaveniach aplikácie nie je žiadny kľúč API</string>
<string id="NoApiUrl" scope="glance">V nastaveniach aplikácie nie je žiadna adresa URL rozhrania API</string>
<string id="NoConfigUrl" scope="glance">V nastaveniach aplikácie nie je žiadna konfiguračná URL</string>
<string id="NoAPIKey" scope="glance">V nastaveniach aplikácie chýba kľúč API</string>
<string id="NoApiUrl" scope="glance">V nastaveniach aplikácie chýba adresa URL rozhrania API</string>
<string id="NoConfigUrl" scope="glance">V nastaveniach aplikácie chýba konfiguračná adresa URL</string>
<string id="ApiFlood">Volania API sú príliš rýchle. Spomaľte svoje požiadavky.</string>
<string id="ApiUrlNotFound">Adresa URL sa nenašla. Potenciálna chyba webovej adresy rozhrania API v nastaveniach.</string>
<string id="ConfigUrlNotFound">Adresa URL sa nenašla. Potenciálna chyba konfiguračnej adresy URL v nastaveniach.</string>
@ -36,28 +36,33 @@
<string id="TrailingSlashErr">Adresa URL rozhrania API nesmie obsahovať koncovú lomku „/“</string>
<string id="WebhookFailed">Registrácia Webhooku zlyhala</string>
<string id="TemplateError">Vykreslenie šablóny zlyhalo</string>
<string id="Available" scope="glance">Dostupné</string>
<string id="Available" scope="glance">K dispozícii</string>
<string id="Checking" scope="glance">Prebieha kontrola...</string>
<string id="Unavailable" scope="glance">nedostupné</string>
<string id="Unavailable" scope="glance">Nedostupné</string>
<string id="Unconfigured" scope="glance">Nekonfigurované</string>
<string id="Cached" scope="glance">Vo vyrovnávacej pamäti</string>
<string id="GlanceMenu" scope="glance">Ponuka</string>
<string id="Memory" scope="glance">Pamäť</string>
<string id="Empty">Prázdny</string>
<string id="TemplateError">Chyba šablóny</string>
<string id="PotentialError">Potenciálna chyba</string>
<!-- Pre nastavenia GUI -->
<string id="SettingsSelect">Vybrať...</string>
<string id="SettingsApiKey">Kľúč API pre HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Dlhotrvajúci prístupový token.</string>
<string id="SettingsApiKeyPrompt">Prístupový token s dlhou životnosťou.</string>
<string id="SettingsApiUrl">URL pre HomeAssistant API.</string>
<string id="SettingsConfigUrl">Webová adresa pre konfiguráciu ponuky (JSON).</string>
<string id="SettingsCacheConfig">Má aplikácia uložiť do vyrovnávacej pamäte konfiguráciu ponuky?</string>
<string id="SettingsClearCache">Mala by aplikácia pri ďalšom spustení vymazať existujúcu vyrovnávaciu pamäť?</string>
<string id="SettingsVibration">Mala by aplikácia poskytovať spätnú väzbu prostredníctvom vibrácií?</string>
<string id="SettingsAppTimeout">Časový limit v sekundách. Po tejto dobe nečinnosti ukončite aplikáciu, aby ste šetrili batériu zariadenia.</string>
<string id="SettingsPollDelay">Dodatočné oneskorenie hlasovania (v sekundách). Pridáva oneskorenie medzi aktualizáciou stavu všetkých položiek ponuky.</string>
<string id="SettingsConfirmTimeout">Po tomto čase (v sekundách) sa dialógové okno s potvrdením akcie automaticky zatvorí a akcia sa zruší. Ak chcete časový limit deaktivovať, nastavte na 0.</string>
<string id="SettingsTextAlign">Zarovnanie ponuky vľavo (vypnuté) alebo vpravo (zapnuté).</string>
<string id="LeftToRight">Zľava doprava</string>
<string id="RightToLeft">Zprava doľava</string>
<string id="RightToLeft">Sprava doľava</string>
<string id="SettingsWidgetStart">(Len miniaplikácia) Automaticky spustite aplikáciu z miniaplikácie bez čakania na klepnutie.</string>
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí na odosielanie údajov o stave batérie zariadenia, polohe a (ak podporované) o aktivite domácemu asistentovi.</string>
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí, ktorá bude do Home Assistenta odosielať údaje o stave batérie zariadenia, polohe a (ak je podporované) o aktivite.</string>
<string id="SettingsBatteryLevelRefreshRate">Obnovovacia frekvencia (v minútach), pri ktorej by služba na pozadí mala opakovať odosielanie údajov.</string>
<string id="WebhookId">(Len na čítanie) Webhook ID vytvorené zariadením pre aktualizácie služby na pozadí. Možno to budete potrebovať na ladenie.</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Predpomnjeno</string>
<string id="GlanceMenu" scope="glance">meni</string>
<string id="Memory" scope="glance">Spomin</string>
<string id="Empty">Prazno</string>
<string id="TemplateError">Napaka predloge</string>
<string id="PotentialError">Potencialna napaka</string>
<!-- Za nastavitve GUI -->
<string id="SettingsSelect">Izberite ...</string>
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL za konfiguracijo menija (JSON).</string>
<string id="SettingsCacheConfig">Ali naj aplikacija predpomni konfiguracijo menija?</string>
<string id="SettingsClearCache">Ali naj aplikacija ob naslednjem zagonu počisti obstoječi predpomnilnik?</string>
<string id="SettingsVibration">Ali naj aplikacija posreduje povratne informacije prek vibriranja?</string>
<string id="SettingsAppTimeout">Časovna omejitev v sekundah. Po tem obdobju nedejavnosti zaprite aplikacijo, da prihranite baterijo naprave.</string>
<string id="SettingsPollDelay">Dodatna zakasnitev ankete (v sekundah). Doda zakasnitev med posodobitvijo stanja vseh elementov menija.</string>
<string id="SettingsConfirmTimeout">Po tem času (v sekundah) se potrditveno pogovorno okno za dejanje samodejno zapre in dejanje je preklicano. Nastavite na 0, da onemogočite časovno omejitev.</string>
<string id="SettingsTextAlign">Leva (izklopljena) ali desna (vklopljena) poravnava menija.</string>
<string id="LeftToRight">Od leve proti desni</string>

View File

@ -24,40 +24,45 @@
<string id="Executed" scope="glance">Confirmado</string>
<string id="NoPhone" scope="glance">Sin conexión telefónica</string>
<string id="NoInternet">Sin conexión a Internet</string>
<string id="NoResponse">No hay respuesta, verifique la conexión a Internet</string>
<string id="NoAPIKey" scope="glance">Sin clave API en la configuración de la aplicación</string>
<string id="NoResponse">Sin respuesta, verifique la conexión a Internet</string>
<string id="NoAPIKey" scope="glance">No hay clave API en la configuración de la aplicación</string>
<string id="NoApiUrl" scope="glance">No hay URL de API en la configuración de la aplicación</string>
<string id="NoConfigUrl" scope="glance">No hay URL de configuración en la configuración de la aplicación.</string>
<string id="ApiFlood">Llamadas API demasiado rápidas. Por favor, ralentice sus solicitudes.</string>
<string id="NoConfigUrl" scope="glance">No hay URL de configuración en la configuración de la aplicación</string>
<string id="ApiFlood">Las llamadas a la API son demasiado rápidas. Reduzca la velocidad de sus solicitudes.</string>
<string id="ApiUrlNotFound">URL no encontrada. Posible error de URL de API en la configuración.</string>
<string id="ConfigUrlNotFound">URL no encontrada. Posible error de URL de configuración en la configuración.</string>
<string id="NoJson">No se devolvió ningún JSON de la solicitud HTTP.</string>
<string id="ConfigUrlNotFound">URL no encontrada. Posible error de configuración de URL en los ajustes.</string>
<string id="NoJson">No se devolvió JSON de la solicitud HTTP.</string>
<string id="UnhandledHttpErr">La solicitud HTTP devolvió el código de error =</string>
<string id="TrailingSlashErr">La URL de API no debe tener una barra diagonal '/'</string>
<string id="TrailingSlashErr">La URL de la API no debe tener una barra diagonal final '/'</string>
<string id="WebhookFailed">No se pudo registrar el webhook</string>
<string id="TemplateError">No se pudo renderizar la plantilla</string>
<string id="Available" scope="glance">Disponible</string>
<string id="Checking" scope="glance">Comprobación...</string>
<string id="Unavailable" scope="glance">Indisponible</string>
<string id="Unconfigured" scope="glance">Desconfigurado</string>
<string id="Unconfigured" scope="glance">Sin configurar</string>
<string id="Cached" scope="glance">En caché</string>
<string id="GlanceMenu" scope="glance">Menú</string>
<string id="Memory" scope="glance">Memoria</string>
<string id="Empty">Vacío</string>
<string id="TemplateError">Error de plantilla</string>
<string id="PotentialError">Error potencial</string>
<!-- Para la configuración GUI -->
<string id="SettingsSelect">Seleccionar...</string>
<string id="SettingsApiKey">Clave API para HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token de acceso de larga duración.</string>
<string id="SettingsApiUrl">URL para la API de HomeAssistant.</string>
<string id="SettingsConfigUrl">URL para configuración del menú (JSON).</string>
<string id="SettingsCacheConfig">¿La aplicación debería almacenar en caché la configuración del menú?</string>
<string id="SettingsClearCache">¿La aplicación debería borrar el caché existente la próxima vez que se inicie?</string>
<string id="SettingsConfigUrl">URL para la configuración del menú (JSON).</string>
<string id="SettingsCacheConfig">¿La aplicación debe almacenar en caché la configuración del menú?</string>
<string id="SettingsClearCache">¿La aplicación debe borrar el caché existente la próxima vez que se inicie?</string>
<string id="SettingsVibration">¿La aplicación debería proporcionar retroalimentación mediante vibraciones?</string>
<string id="SettingsAppTimeout">Tiempo de espera en segundos. Salga de la aplicación después de este período de inactividad para ahorrar batería del dispositivo.</string>
<string id="SettingsPollDelay">Retraso de sondeo adicional (en segundos). Agrega un retraso entre la actualización de estado de todos los elementos del menú.</string>
<string id="SettingsConfirmTimeout">Después de este tiempo (en segundos), se cierra automáticamente un cuadro de diálogo de confirmación de una acción y se cancela la acción. Establezca en 0 para desactivar el tiempo de espera.</string>
<string id="SettingsTextAlign">Alineación del menú izquierda (desactivada) o derecha (activada).</string>
<string id="LeftToRight">De izquierda a derecha</string>
<string id="RightToLeft">De derecha a izquierda</string>
<string id="SettingsWidgetStart">(Solo widget) Inicia automáticamente la aplicación desde el widget sin esperar un toque.</string>
<string id="SettingsEnableBatteryLevel">Habilite el servicio en segundo plano para enviar el nivel de batería del dispositivo, la ubicación y (si es compatible) datos de actividad a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frecuencia de actualización (en minutos) a la que el servicio en segundo plano debe repetir el envío de datos.</string>
<string id="WebhookId">(Solo lectura) El ID de Webhook creado por el dispositivo para actualizaciones del servicio en segundo plano. Es posible que necesite esto para la depuración.</string>
<string id="SettingsEnableBatteryLevel">Habilite el servicio en segundo plano para enviar el nivel de batería del dispositivo, la ubicación y (si es compatible) los datos de actividad a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frecuencia de actualización (en minutos) con la que el servicio en segundo plano debe repetir el envío de datos.</string>
<string id="WebhookId">(Solo lectura) El ID del Webhook creado por el dispositivo para actualizaciones del servicio en segundo plano. Es posible que necesite esto para la depuración.</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Cachad</string>
<string id="GlanceMenu" scope="glance">Meny</string>
<string id="Memory" scope="glance">Minne</string>
<string id="Empty">Tömma</string>
<string id="TemplateError">Mallfel</string>
<string id="PotentialError">Potentiellt fel</string>
<!-- För inställningar GUI -->
<string id="SettingsSelect">Välj...</string>
<string id="SettingsApiKey">API-nyckel för HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL för menykonfiguration (JSON).</string>
<string id="SettingsCacheConfig">Ska programmet cachelagra menykonfigurationen?</string>
<string id="SettingsClearCache">Ska programmet rensa den befintliga cachen nästa gång den startas?</string>
<string id="SettingsVibration">Ska applikationen ge feedback via vibrationer?</string>
<string id="SettingsAppTimeout">Timeout på sekunder. Avsluta programmet efter denna period av inaktivitet för att spara enhetens batteri.</string>
<string id="SettingsPollDelay">Ytterligare fördröjning (i sekunder). Lägger till en fördröjning mellan statusuppdateringen av alla menyalternativ.</string>
<string id="SettingsConfirmTimeout">Efter denna tid (i sekunder) stängs en bekräftelsedialog för en åtgärd automatiskt och åtgärden avbryts. Ställ in på 0 för att inaktivera timeout.</string>
<string id="SettingsTextAlign">Vänster (av) eller höger (på) menyjustering.</string>
<string id="LeftToRight">Vänster till höger</string>

View File

@ -15,49 +15,54 @@
<!--
Generated by Google Translate: English to Thai
สร้างโดย Google Translate จากภาษาอังกฤษ
สร้างโดย Google แปลจากภาษาอังกฤษ
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">แน่นอน?</string>
<string id="Executed" scope="glance">ยืนยันแล้ว</string>
<string id="Executed" scope="glance">ได้รับการยืนยันแล้ว</string>
<string id="NoPhone" scope="glance">ไม่มีการเชื่อมต่อโทรศัพท์</string>
<string id="NoInternet">ไม่มีการเชื่อมต่ออินเทอร์เน็ต</string>
<string id="NoResponse">ไม่มีการตอบสนอง ตรวจสอบการเชื่อมต่ออินเอร์เน็ต</string>
<string id="NoResponse">ไม่มีการตอบสนอง กรุณาตรวจสอบการเชื่อมต่ออินเอร์เน็ต</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="ApiFlood">การเรียก API เร็วเกินไป กรุณาชะลอคำขอของคุณ</string>
<string id="ApiUrlNotFound">ไม่พบ URL ข้อผิดพลาด URL API ที่อาจเกิดขึ้นในการตั้งค่า</string>
<string id="ApiFlood">การเรียก API เร็วเกินไป กรุณาลดความเร็วคำขอของคุณลง</string>
<string id="ApiUrlNotFound">ไม่พบ URL อาจมีข้อผิดพลาด URL API ในการตั้งค่า</string>
<string id="ConfigUrlNotFound">ไม่พบ URL ข้อผิดพลาด URL การกำหนดค่าที่อาจเกิดขึ้นในการตั้งค่า</string>
<string id="NoJson">ไม่มี JSON ที่ส่งคืนจากคำขอ HTTP</string>
<string id="UnhandledHttpErr">คำขอ HTTP ส่งคืนรหัสข้อผิดพลาด =</string>
<string id="TrailingSlashErr">URL ของ API ต้องไม่มีเครื่องหมายทับต่อท้าย '/'</string>
<string id="UnhandledHttpErr">คำขอ HTTP ส่งกลับรหัสข้อผิดพลาด =</string>
<string id="TrailingSlashErr">URL ของ API จะต้องไม่มีเครื่องหมายทับท้าย '/'</string>
<string id="WebhookFailed">ลงทะเบียน Webhook.dll ไม่สำเร็จ</string>
<string id="TemplateError">ไม่สามารถแสดงเทมเพลตได้</string>
<string id="Available" scope="glance">มีอยู่</string>
<string id="Checking" scope="glance">กำลังตรวจสอบ...</string>
<string id="Unavailable" scope="glance">ไม่พร้อมใช้งาน</string>
<string id="Unavailable" scope="glance">ไม่สามารถใช้งานได้</string>
<string id="Unconfigured" scope="glance">ไม่ได้กำหนดค่า</string>
<string id="Cached" scope="glance">แคช</string>
<string id="GlanceMenu" scope="glance">เมนู</string>
<string id="Memory" scope="glance">หน่วยความจำ</string>
<string id="Empty">ว่างเปล่า</string>
<string id="TemplateError">ข้อผิดพลาดเทมเพลต</string>
<string id="PotentialError">ข้อผิดพลาดที่อาจเกิดขึ้น</string>
<!-- สำหรับการตั้งค่า GUI -->
<string id="SettingsSelect">เลือก...</string>
<string id="SettingsApiKey">คีย์ API สำหรับ HomeAssistant</string>
<string id="SettingsApiKeyPrompt">โทเค็นการเข้าถึงที่มีอายุการใช้งานยาวนาน</string>
<string id="SettingsApiKey">API Key สำหรับ 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="SettingsAppTimeout">หมดเวลาเป็นวินาที ออกจากแอปพลิเคชันหลังจากไม่มีการใช้งานเป็นระยะเวลาหนึ่งเพื่อประหยัดแบตเตอรี่ของอุปกรณ์</string>
<string id="SettingsClearCache">แอปพลิเคชันควรจะล้างแคชที่มีอยู่เมื่อเริ่มต้นใช้งานครั้งต่อไปหรือไม่</string>
<string id="SettingsVibration">แอปพลิเคชันควรให้ข้อเสนอแนะผ่านการสั่นสะเทือนหรือไม่?</string>
<string id="SettingsAppTimeout">หมดเวลาในไม่กี่วินาที ออกจากแอปพลิเคชันหลังจากช่วงเวลาที่ไม่ได้ใช้งานเพื่อประหยัดแบตเตอรี่ของอุปกรณ์</string>
<string id="SettingsPollDelay">การหน่วงเวลาการสำรวจเพิ่มเติม (เป็นวินาที) เพิ่มการหน่วงเวลาระหว่างการอัปเดตสถานะของรายการเมนูทั้งหมด</string>
<string id="SettingsConfirmTimeout">หลังจากเวลานี้ (เป็นวินาที) กล่องโต้ตอบการยืนยันสำหรับการดำเนินการจะปิดโดยอัตโนมัติและการดำเนินการจะถูกยกเลิก ตั้งค่าเป็น 0 เพื่อปิดใช้งานการหมดเวลา</string>
<string id="SettingsTextAlign">การจัดตำแหน่งเมนูซ้าย (ปิด) หรือขวา (เปิด)</string>
<string id="SettingsTextAlign">การจัดตำแหน่งเมนูด้านซ้าย (ปิด) หรือด้านขวา (เปิด)</string>
<string id="LeftToRight">จากซ้ายไปขวา</string>
<string id="RightToLeft">จากขวาไปซ้าย</string>
<string id="SettingsWidgetStart">(วิดเจ็ตเท่านั้น) เริ่มแอปพลิเคชันโดยอัตโนมัติจากวิดเจ็ตโดยไม่ต้องรอการแตะ</string>
<string id="SettingsEnableBatteryLevel">เปิดใช้บริการพื้นหลังเพื่อส่งข้อมูลระดับแบตเตอรี่ ตำแหน่ง และข้อมูลกิจกรรม (หากรองรับ) ของอุปกรณ์ไปยัง Home Assistant</string>
<string id="SettingsBatteryLevelRefreshRate">อัตรารีเฟรช (เป็นนาที) ที่บริการเบื้องหลังควรส่งข้อมูลซ้ำ</string>
<string id="WebhookId">(อ่านอย่างเดียว) Webhook ID ที่สร้างโดยอุปกรณ์สำหรับการอัปเดตบริการในเบื้องหลัง คุณอาจต้องการสิ่งนี้สำหรับการดีบัก</string>
<string id="SettingsEnableBatteryLevel">เปิดใช้งานบริการพื้นหลังเพื่อส่งระดับแบตเตอรี่ของอุปกรณ์ ตำแหน่ง และข้อมูลกิจกรรม (ถ้ารองรับ) ไปยัง Home Assistant</string>
<string id="SettingsBatteryLevelRefreshRate">อัตราการรีเฟรช (เป็นนาที) ที่บริการพื้นหลังควรจะส่งข้อมูลซ้ำ</string>
<string id="WebhookId">(อ่านอย่างเดียว) ID เว็บฮุกที่สร้างโดยอุปกรณ์สำหรับการอัปเดตบริการเบื้องหลัง คุณอาจต้องใช้สิ่งนี้เพื่อแก้ไขข้อบกพร่อง</string>
</strings>

View File

@ -24,40 +24,45 @@
<string id="Executed" scope="glance">Onaylanmış</string>
<string id="NoPhone" scope="glance">Telefon bağlantısı yok</string>
<string id="NoInternet">İnternet bağlantısı yok</string>
<string id="NoResponse">Yanıt Yok, İnternet bağlantısını kontrol edin</string>
<string id="NoResponse">Cevap yok, İnternet bağlantısını kontrol edin</string>
<string id="NoAPIKey" scope="glance">Uygulama ayarlarında API anahtarı yok</string>
<string id="NoApiUrl" scope="glance">Uygulama ayarlarında API URL'si yok</string>
<string id="NoConfigUrl" scope="glance">Uygulama ayarlarında yapılandırma URL'si yok</string>
<string id="ApiFlood">API çağrıları çok hızlı. Lütfen isteklerinizi yavaşlatın.</string>
<string id="ApiUrlNotFound">URL bulunamadı. Ayarlarda olası API URL hatası.</string>
<string id="ConfigUrlNotFound">URL bulunamadı. Ayarlarda Olası Yapılandırma URL'si hatası.</string>
<string id="ApiUrlNotFound">URL bulunamadı. Ayarlarda potansiyel API URL hatası.</string>
<string id="ConfigUrlNotFound">URL bulunamadı. Ayarlarda potansiyel Yapılandırma URL hatası.</string>
<string id="NoJson">HTTP isteğinden JSON döndürülmedi.</string>
<string id="UnhandledHttpErr">HTTP isteği hata kodunu döndürdü =</string>
<string id="TrailingSlashErr">API URL'sinin sonunda '/' eğik çizgi olmamalıdır</string>
<string id="WebhookFailed">Webhook kaydedilemedi</string>
<string id="UnhandledHttpErr">HTTP isteği hata kodu döndürdü =</string>
<string id="TrailingSlashErr">API URL'sinin sonunda eğik çizgi '/' olmamalıdır</string>
<string id="WebhookFailed">Webhook'u kaydetme başarısız oldu</string>
<string id="TemplateError">Şablon oluşturulamadı</string>
<string id="Available" scope="glance">Mevcut</string>
<string id="Checking" scope="glance">Kontrol etme...</string>
<string id="Unavailable" scope="glance">Kullanım dışı</string>
<string id="Unconfigured" scope="glance">Yapılandırılmamış</string>
<string id="Cached" scope="glance">Önbelleğe alınmış</string>
<string id="Cached" scope="glance">Önbelleğe alındı</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Hafıza</string>
<string id="Empty">Boş</string>
<string id="TemplateError">Şablon Hatası</string>
<string id="PotentialError">Potansiyel Hata</string>
<!-- Ayarlar GUI'si için -->
<string id="SettingsSelect">Seçme...</string>
<string id="SettingsApiKey">HomeAssistant için API Anahtarı.</string>
<string id="SettingsApiKeyPrompt">Uzun Ömürlü Erişim Jetonu.</string>
<string id="SettingsApiUrl">HomeAssistant API'sinin URL'si.</string>
<string id="SettingsConfigUrl">Menü yapılandırmasının URL'si (JSON).</string>
<string id="SettingsConfigUrl">Menü yapılandırması için URL (JSON).</string>
<string id="SettingsCacheConfig">Uygulama menü yapılandırmasını önbelleğe almalı mı?</string>
<string id="SettingsClearCache">Uygulama bir sonraki başlatılışında mevcut önbelleği temizlemeli mi?</string>
<string id="SettingsAppTimeout">Saniye cinsinden zaman aşımı. Cihazın pilinden tasarruf etmek için bu süre boyunca işlem yapılmadığında uygulamadan çıkın.</string>
<string id="SettingsVibration">Uygulama titreşim yoluyla geri bildirim sağlamalı mı?</string>
<string id="SettingsAppTimeout">Saniye cinsinden zaman aşımı. Cihaz pilini korumak için bu süre boyunca hareketsizlikten sonra uygulamadan çıkın.</string>
<string id="SettingsPollDelay">Ek anket gecikmesi (saniye cinsinden). Tüm menü öğelerinin durum güncellemesi arasına bir gecikme ekler.</string>
<string id="SettingsConfirmTimeout">Bu sürenin sonunda (saniye olarak), bir eyleme ilişkin onay iletişim kutusu otomatik olarak kapatılır ve eylem iptal edilir. Zaman aşımını devre dışı bırakmak için 0'a ayarlayın.</string>
<string id="SettingsTextAlign">Sol (kapalı) veya Sağ (açık) Menü Hizalaması.</string>
<string id="LeftToRight">Soldan sağa</string>
<string id="RightToLeft">Sağdan sola</string>
<string id="SettingsWidgetStart">(Yalnızca Widget) Dokunmayı beklemeden uygulamayı widget'tan otomatik olarak başlatın.</string>
<string id="SettingsWidgetStart">(Yalnızca Widget) Dokunmayı beklemeden uygulamayı widget'tan otomatik olarak başlat.</string>
<string id="SettingsEnableBatteryLevel">Cihazın pil seviyesini, konumunu ve (destekleniyorsa) etkinlik verilerini Home Assistant'a göndermek için arka plan hizmetini etkinleştirin.</string>
<string id="SettingsBatteryLevelRefreshRate">Arka plan hizmetinin veri göndermeyi tekrarlaması gereken yenileme hızı (dakika cinsinden).</string>
<string id="WebhookId">(Salt okunur) Arka plan hizmet güncellemeleri için cihaz tarafından oluşturulan Web Kancası Kimliği. Hata ayıklama için buna ihtiyacınız olabilir.</string>
<string id="WebhookId">(Salt okunur) Arkaplan hizmeti güncellemeleri için cihaz tarafından oluşturulan Webhook Kimliği. Hata ayıklama için buna ihtiyacınız olabilir.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Ukrainian
Створено Google Translate з англійської
Згенеровано Google Translate з англійської
-->
<strings>
@ -43,15 +43,20 @@
<string id="Cached" scope="glance">Кешовано</string>
<string id="GlanceMenu" scope="glance">Меню</string>
<string id="Memory" scope="glance">Пам'ять</string>
<string id="Empty">Порожній</string>
<string id="TemplateError">Помилка шаблону</string>
<string id="PotentialError">Потенційна помилка</string>
<!-- Для налаштування GUI -->
<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="SettingsConfigUrl">URL-адреса для налаштування меню (JSON).</string>
<string id="SettingsCacheConfig">Чи має програма кешувати конфігурацію меню?</string>
<string id="SettingsClearCache">Чи слід програмі очистити наявний кеш під час наступного запуску?</string>
<string id="SettingsVibration">Чи має програма надавати зворотній зв’язок за допомогою вібрації?</string>
<string id="SettingsAppTimeout">Час очікування в секундах. Вийдіть із програми після цього періоду бездіяльності, щоб заощадити батарею пристрою.</string>
<string id="SettingsPollDelay">Додаткова затримка опитування (у секундах). Додає затримку між оновленням статусу всіх пунктів меню.</string>
<string id="SettingsConfirmTimeout">Після закінчення цього часу (у секундах) діалогове вікно підтвердження дії автоматично закривається, а дія скасовується. Встановіть 0, щоб вимкнути тайм-аут.</string>
<string id="SettingsTextAlign">Ліворуч (вимкнено) або праворуч (увімкнено) вирівнювання меню.</string>
<string id="LeftToRight">Зліва направо</string>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Vietnamese
Được tạo bởi Google Dịch từ tiếng Anh
Được tạo ra bởi Google Dịch từ tiếng Anh
-->
<strings>
@ -24,40 +24,45 @@
<string id="Executed" scope="glance">Đã xác nhận</string>
<string id="NoPhone" scope="glance">Không có kết nối điện thoại</string>
<string id="NoInternet">Không có kết nối Internet</string>
<string id="NoResponse">Không có phản hồi, kiểm tra kết nối Internet</string>
<string id="NoResponse">Không có phản hồi, hãy kiểm tra kết nối Internet</string>
<string id="NoAPIKey" scope="glance">Không có khóa API trong cài đặt ứng dụng</string>
<string id="NoApiUrl" scope="glance">Không có URL API trong cài đặt ứng dụng</string>
<string id="NoConfigUrl" scope="glance">Không có URL cấu hình trong cài đặt ứng dụng</string>
<string id="ApiFlood">Cuộc gọi API quá nhanh. Hãy làm chậm yêu cầu của bạn.</string>
<string id="ApiFlood">Cuộc gọi API quá nhanh. Vui lòng làm chậm yêu cầu của bạn.</string>
<string id="ApiUrlNotFound">Không tìm thấy URL. Lỗi URL API tiềm ẩn trong cài đặt.</string>
<string id="ConfigUrlNotFound">Không tìm thấy URL. Lỗi URL cấu hình tiềm ẩn trong cài đặt.</string>
<string id="ConfigUrlNotFound">Không tìm thấy URL. Có thể có lỗi URL cấu hình trong cài đặt.</string>
<string id="NoJson">Không có JSON nào được trả về từ yêu cầu HTTP.</string>
<string id="UnhandledHttpErr">Yêu cầu HTTP trả về mã lỗi =</string>
<string id="TrailingSlashErr">URL API không được có dấu gạch chéo ở cuối '/'</string>
<string id="TrailingSlashErr">URL API không được có dấu gạch chéo '/' theo sau</string>
<string id="WebhookFailed">Không đăng ký được Webhook</string>
<string id="TemplateError">Không thể hiển thị mẫu</string>
<string id="Available" scope="glance">Có sẵn</string>
<string id="Checking" scope="glance">Đang kiểm tra...</string>
<string id="Unavailable" scope="glance">Không có sẵn</string>
<string id="Unconfigured" scope="glance">Chưa được định cấu hình</string>
<string id="Cached" scope="glance">Đã lưu vào bộ nhớ đệm</string>
<string id="Unconfigured" scope="glance">Chưa cấu hình</string>
<string id="Cached" scope="glance">Đã lưu trữ</string>
<string id="GlanceMenu" scope="glance">Thực đơn</string>
<string id="Memory" scope="glance">Ký ức</string>
<string id="Empty">Trống</string>
<string id="TemplateError">Lỗi mẫu</string>
<string id="PotentialError">Lỗi tiềm ẩn</string>
<!-- Đối với GUI cài đặt -->
<string id="SettingsSelect">Lựa chọn...</string>
<string id="SettingsApiKey">Khóa API cho HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Mã thông báo truy cập tồn tại lâu dài.</string>
<string id="SettingsApiKeyPrompt">Mã thông báo truy cập lâu dài.</string>
<string id="SettingsApiUrl">URL cho API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL cho cấu hình menu (JSON).</string>
<string id="SettingsCacheConfig">Ứng dụng có nên lưu trữ cấu hình menu không?</string>
<string id="SettingsClearCache">Ứng dụng có nên xóa bộ nhớ đệm hiện có vào lần khởi động tiếp theo không?</string>
<string id="SettingsConfigUrl">URL để cấu hình menu (JSON).</string>
<string id="SettingsCacheConfig">Ứng dụng có nên lưu trữ cấu hình menu vào bộ nhớ đệm không?</string>
<string id="SettingsClearCache">Ứng dụng có nên xóa bộ nhớ đệm hiện có khi khởi động lần sau không?</string>
<string id="SettingsVibration">Ứng dụng có nên cung cấp phản hồi thông qua rung động không?</string>
<string id="SettingsAppTimeout">Thời gian chờ tính bằng giây. Thoát khỏi ứng dụng sau khoảng thời gian không hoạt động này để tiết kiệm pin cho thiết bị.</string>
<string id="SettingsPollDelay">Độ trễ thăm dò bổ sung (tính bằng giây). Thêm độ trễ giữa quá trình cập nhật trạng thái của tất cả các mục menu.</string>
<string id="SettingsConfirmTimeout">Sau thời gian này (tính bằng giây), hộp thoại xác nhận cho một hành động sẽ tự động đóng và hành động đó sẽ bị hủy. Đặt thành 0 để tắt thời gian chờ.</string>
<string id="SettingsTextAlign">Căn chỉnh menu Trái (tắt) hoặc Phải (bật).</string>
<string id="LeftToRight">Trái sang phải</string>
<string id="SettingsTextAlign">Căn chỉnh Menu Trái (tắt) hoặc Phải (bật).</string>
<string id="LeftToRight">Từ trái sang phải</string>
<string id="RightToLeft">Phải sang trái</string>
<string id="SettingsWidgetStart">(Chỉ tiện ích) Tự động khởi động ứng dụng từ tiện ích mà không cần chờ nhấn.</string>
<string id="SettingsEnableBatteryLevel">Bật dịch vụ nền để gửi dữ liệu về mức pin, vị trí và hoạt động (nếu được hỗ trợ) của thiết bị tới Home Assistant.</string>
<string id="SettingsWidgetStart">(Chỉ dành cho tiện ích) Tự động khởi động ứng dụng từ tiện ích mà không cần phải chạm.</string>
<string id="SettingsEnableBatteryLevel">Bật dịch vụ nền để gửi mức pin, vị trí và dữ liệu hoạt động (nếu được hỗ trợ) của thiết bị tới Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Tốc độ làm mới (tính bằng phút) mà dịch vụ nền sẽ lặp lại việc gửi dữ liệu.</string>
<string id="WebhookId">(Chỉ đọc) ID Webhook do thiết bị tạo để cập nhật dịch vụ nền. Bạn có thể yêu cầu điều này để gỡ lỗi.</string>
<string id="WebhookId">(Chỉ đọc) ID Webhook do thiết bị tạo ra để cập nhật dịch vụ nền. Bạn có thể cần ID này để gỡ lỗi.</string>
</strings>

View File

@ -15,7 +15,7 @@
<!--
Generated by Google Translate: English to Chinese (Simplified)
由谷歌翻译自英语生成
由谷歌翻译从英文生成
-->
<strings>
@ -24,40 +24,45 @@
<string id="Executed" scope="glance">确认的</string>
<string id="NoPhone" scope="glance">没有电话连接</string>
<string id="NoInternet">没有网络连接</string>
<string id="NoResponse">无响应,请检查互联网连接</string>
<string id="NoResponse">无响应,请检查网连接</string>
<string id="NoAPIKey" scope="glance">应用程序设置中没有 API 密钥</string>
<string id="NoApiUrl" scope="glance">应用程序设置中没有 API URL</string>
<string id="NoConfigUrl" scope="glance">应用程序设置中没有配置 URL</string>
<string id="ApiFlood">API 调用速度快。请放慢您的请求。</string>
<string id="ApiUrlNotFound">找不到网址。设置中可能存在 API URL 错误。</string>
<string id="ConfigUrlNotFound">找不到网址。设置中可能存在配置 URL 错误。</string>
<string id="ApiFlood">API 调用速度快。请放慢您的请求速度</string>
<string id="ApiUrlNotFound">未找到 URL。设置中可能存在 API URL 错误。</string>
<string id="ConfigUrlNotFound">未找到 URL。设置中可能存在配置 URL 错误。</string>
<string id="NoJson">HTTP 请求未返回 JSON。</string>
<string id="UnhandledHttpErr">HTTP请求返回错误=</string>
<string id="TrailingSlashErr">API URL 不有尾部斜杠“/”</string>
<string id="WebhookFailed">注册Webhook失败</string>
<string id="TemplateError">渲染模板失败</string>
<string id="UnhandledHttpErr">HTTP 请求返回错误代码 =</string>
<string id="TrailingSlashErr">API URL 不有尾部斜杠“/”</string>
<string id="WebhookFailed">无法注册 Webhook</string>
<string id="TemplateError">模板渲染失败</string>
<string id="Available" scope="glance">可用的</string>
<string id="Checking" scope="glance">检查...</string>
<string id="Unavailable" scope="glance">不可用</string>
<string id="Unconfigured" scope="glance">未配置</string>
<string id="Cached" scope="glance">缓存</string>
<string id="Cached" scope="glance">缓存</string>
<string id="GlanceMenu" scope="glance">菜单</string>
<string id="Memory" scope="glance">记忆</string>
<string id="Empty">空的</string>
<string id="TemplateError">模板错误</string>
<string id="PotentialError">潜在错误</string>
<!-- 对于设置 GUI -->
<string id="SettingsSelect">选择...</string>
<string id="SettingsApiKey">HomeAssistant 的 API 密钥。</string>
<string id="SettingsApiKeyPrompt">访问令牌。</string>
<string id="SettingsApiKeyPrompt">寿命访问令牌。</string>
<string id="SettingsApiUrl">HomeAssistant API 的 URL。</string>
<string id="SettingsConfigUrl">菜单配置的 URL (JSON)</string>
<string id="SettingsConfigUrl">菜单配置的 URLJSON</string>
<string id="SettingsCacheConfig">应用程序是否应该缓存菜单配置?</string>
<string id="SettingsClearCache">应用程序是否应该在下次启动时清除现有缓存?</string>
<string id="SettingsAppTimeout">超时(以秒为单位)。闲置一段时间后退出应用程序以节省设备电池。</string>
<string id="SettingsConfirmTimeout">在此时间(以秒为单位)之后,操作的确认对话框将自动关闭并取消该操作。设置为 0 以禁用超时</string>
<string id="SettingsTextAlign">左(关)或右(开)菜单对齐</string>
<string id="SettingsClearCache">应用程序下次启动时是否应该清除现有缓存?</string>
<string id="SettingsVibration">应用程序是否应通过振动提供反馈?</string>
<string id="SettingsAppTimeout">超时时间(秒)。在这段不活动时间过后退出应用程序以节省设备电池</string>
<string id="SettingsPollDelay">附加轮询延迟(以秒为单位)。在所有菜单项的状态更新之间添加延迟</string>
<string id="SettingsConfirmTimeout">在此时间(以秒为单位)之后,操作的确认对话框将自动关闭,并且操作将被取消。设置为 0 可禁用超时。</string>
<string id="SettingsTextAlign">左(关闭)或右(打开)菜单对齐。</string>
<string id="LeftToRight">左到右</string>
<string id="RightToLeft">右到左</string>
<string id="SettingsWidgetStart">(仅限小部件)从小部件自动启动应用程序,无需等待点击</string>
<string id="SettingsWidgetStart">(仅限小部件)无需等待点击即可从小部件自动启动应用程序。</string>
<string id="SettingsEnableBatteryLevel">启用后台服务将设备电池电量、位置和(如果支持)活动数据发送到 Home Assistant。</string>
<string id="SettingsBatteryLevelRefreshRate">后台服务应重复发送数据的刷新率(以分钟为单位)。</string>
<string id="WebhookId">(只读)设备为后台服务更新创建的 Webhook ID。您可能需要来进行调试。</string>
<string id="WebhookId">(只读)设备为后台服务更新创建的 Webhook ID。您可能需要此 ID 来进行调试。</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">快取</string>
<string id="GlanceMenu" scope="glance">選單</string>
<string id="Memory" scope="glance">記憶</string>
<string id="Empty">空的</string>
<string id="TemplateError">模板錯誤</string>
<string id="PotentialError">潛在錯誤</string>
<!-- 對於設定 GUI -->
<string id="SettingsSelect">選擇...</string>
<string id="SettingsApiKey">HomeAssistant 的 API 金鑰。</string>
@ -51,13 +54,15 @@
<string id="SettingsConfigUrl">選單配置的 URL (JSON)。</string>
<string id="SettingsCacheConfig">應用程式是否應該快取選單配置?</string>
<string id="SettingsClearCache">應用程式是否應該在下次啟動時清除現有快取?</string>
<string id="SettingsVibration">應用程式是否應該透過振動提供回饋?</string>
<string id="SettingsAppTimeout">超時(以秒為單位)。閒置一段時間後退出應用程式以節省設備電池。</string>
<string id="SettingsPollDelay">額外的輪詢延遲(以秒為單位)。在所有選單項目的狀態更新之間新增延遲。</string>
<string id="SettingsConfirmTimeout">在此時間(以秒為單位)之後,操作的確認對話方塊將自動關閉並取消該操作。設定為 0 以停用逾時。</string>
<string id="SettingsTextAlign">左(關)或右(開)選單對齊。</string>
<string id="LeftToRight">左至右</string>
<string id="RightToLeft">右到左</string>
<string id="SettingsWidgetStart">(僅限小部件)從小部件自動啟動應用程序,無需等待點擊。</string>
<string id="SettingsEnableBatteryLevel">啟用後台服務將裝置電池電量、位置和(如果支援)活動資料傳送 Home Assistant。</string>
<string id="SettingsEnableBatteryLevel">啟用後台服務將裝置電池電量、位置和(如果支援)活動資料傳送 Home Assistant。</string>
<string id="SettingsBatteryLevelRefreshRate">後台服務應重複傳送資料的更新率(以分鐘為單位)。</string>
<string id="WebhookId">(唯讀)裝置為後台服務更新所建立的 Webhook ID。您可能需要它來進行調試。</string>
</strings>

View File

@ -43,6 +43,9 @@
<string id="Cached" scope="glance">Dicache</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Ingatan</string>
<string id="Empty">kosong</string>
<string id="TemplateError">Ralat Templat</string>
<string id="PotentialError">Ralat Berpotensi</string>
<!-- Untuk GUI tetapan -->
<string id="SettingsSelect">Pilih...</string>
<string id="SettingsApiKey">Kunci API untuk HomeAssistant.</string>
@ -51,7 +54,9 @@
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</string>
<string id="SettingsCacheConfig">Sekiranya aplikasi cache konfigurasi menu?</string>
<string id="SettingsClearCache">Patutkah aplikasi mengosongkan cache sedia ada pada kali seterusnya ia dimulakan?</string>
<string id="SettingsVibration">Sekiranya aplikasi memberikan maklum balas melalui getaran?</string>
<string id="SettingsAppTimeout">Tamat masa dalam beberapa saat. Keluar dari aplikasi selepas tempoh tidak aktif ini untuk menjimatkan bateri peranti.</string>
<string id="SettingsPollDelay">Kelewatan tinjauan pendapat tambahan (dalam beberapa saat). Menambah kelewatan antara kemas kini status semua item menu.</string>
<string id="SettingsConfirmTimeout">Selepas masa ini (dalam beberapa saat), dialog pengesahan untuk tindakan ditutup secara automatik dan tindakan itu dibatalkan. Tetapkan kepada 0 untuk melumpuhkan tamat masa.</string>
<string id="SettingsTextAlign">Penjajaran Menu Kiri (mati) atau Kanan (hidup).</string>
<string id="LeftToRight">Kiri ke kanan</string>

View File

@ -22,32 +22,46 @@
<property id="api_url" type="string"></property>
<!--
Best be a public URL in order to work away from your
home LAN and have a trusted HTTPS certificate
Best be a public URL in order to work away from your home LAN and have a
trusted HTTPS certificate.
-->
<property id="config_url" type="string"></property>
<!-- Decide if the menu configuration should be cached. -->
<!--
Decide if the menu configuration should be cached.
-->
<property id="cache_config" type="boolean">false</property>
<!--
Clear the menu configuration on next application start,
and refetch, then set this back to false
Clear the menu configuration on next application start, and refetch, then
set this back to false.
-->
<property id="clear_cache" type="boolean">false</property>
<!--
Application timeout in seconds, except 0 for no
timeout (default). After this amount of elapsed
time with no activity, exit the application.
Enable notification via vibrations, typically for confirmation of actions.
-->
<property id="enable_vibration" type="boolean">true</property>
<!--
Application timeout in seconds, except 0 for no timeout (default). After
this amount of elapsed time with no activity, exit the application.
-->
<property id="app_timeout" type="number">0</property>
<!--
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.
Poll delay adds a user configurable delay (in seconds) to each round of
status updates of all item in the device's menu that might be amended
externally from the watch. A user has requested that it is possible to add
this delayfor an "always open" mode of operation, which then drains the
watch battery from the additional API access activity.
-->
<property id="poll_delay" type="number">0</property>
<!--
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.
-->
<property id="confirm_timeout" type="number">3</property>
@ -57,15 +71,8 @@
<property id="menu_alignment" type="number">1</property>
<!--
Widget specific setting:
As soon as the menu has been fetched start show the menu of items.
This behaviour is inconsistent with the standard Garmin User Interface,
but has been requested by users so has been made the non-default option.
-->
<property id="widget_start_no_tap" type="boolean">false</property>
<!--
Enable the background service to send the clock battery level to Home Assistant.
Enable the background service to send the clock battery level to Home
Assistant.
-->
<property id="enable_battery_level" type="boolean">false</property>
@ -76,11 +83,10 @@
<property id="battery_level_refresh_rate" type="number">15</property>
<!--
The webhook ID is the last part of the webhook URL.
It is secret and should not be shared.
It will not be set in settings but will be
generated by the application and stored in
properties, but read only for trouble shooting.
The webhook ID is the last part of the webhook URL. It is secret and
should not be shared. It will not be set in settings but will be
generated by the application and stored in properties, but read only
for trouble shooting.
-->
<property id="webhook_id" type="string"></property>

View File

@ -51,6 +51,13 @@
<settingConfig type="boolean" />
</setting>
<setting
propertyKey="@Properties.enable_vibration"
title="@Strings.SettingsVibration"
>
<settingConfig type="boolean" />
</setting>
<setting
propertyKey="@Properties.app_timeout"
title="@Strings.SettingsAppTimeout"
@ -58,6 +65,13 @@
<settingConfig type="numeric" min="0" />
</setting>
<setting
propertyKey="@Properties.poll_delay"
title="@Strings.SettingsPollDelay"
>
<settingConfig type="numeric" min="0" />
</setting>
<setting
propertyKey="@Properties.confirm_timeout"
title="@Strings.SettingsConfirmTimeout"
@ -75,13 +89,6 @@
</settingConfig>
</setting>
<setting
propertyKey="@Properties.widget_start_no_tap"
title="@Strings.SettingsWidgetStart"
>
<settingConfig type="boolean" />
</setting>
<setting
propertyKey="@Properties.enable_battery_level"
title="@Strings.SettingsEnableBatteryLevel"

View File

@ -37,6 +37,9 @@
<string id="Cached" scope="glance">Cached</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Memory</string>
<string id="Empty">Empty</string>
<string id="TemplateError">Template Error</string>
<string id="PotentialError">Potential Error</string>
<!-- For the settings GUI -->
<string id="SettingsSelect">Select...</string>
@ -46,7 +49,9 @@
<string id="SettingsConfigUrl">URL for menu configuration (JSON).</string>
<string id="SettingsCacheConfig">Should the application cache the menu configuration?</string>
<string id="SettingsClearCache">Should the application clear the existing cache next time it is started?</string>
<string id="SettingsVibration">Should the application provide feedback via vibrations?</string>
<string id="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of inactivity to save the device battery.</string>
<string id="SettingsPollDelay">Additional poll delay (in seconds). Adds a delay between the status update of all menu items.</string>
<string id="SettingsConfirmTimeout">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.</string>
<string id="SettingsTextAlign">Left (off) or Right (on) Menu Alignment.</string>
<string id="LeftToRight">Left to right</string>

View File

@ -23,6 +23,7 @@ using Toybox.Lang;
using Toybox.Application.Properties;
using Toybox.Background;
using Toybox.System;
using Toybox.Activity;
(:background)
class BackgroundServiceDelegate extends System.ServiceDelegate {
@ -37,99 +38,81 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
Background.exit(null);
}
function onActivityCompleted(activity as { :sport as Activity.Sport, :subSport as Activity.SubSport }) as Void {
if (!System.getDeviceSettings().phoneConnected) {
// System.println("BackgroundServiceDelegate onActivityCompleted(): No Phone connection, skipping API call.");
} else if (!System.getDeviceSettings().connectionAvailable) {
// System.println("BackgroundServiceDelegate onActivityCompleted(): No Internet connection, skipping API call.");
} else {
// Ensure we're logging completion, i.e. ignore 'activity' parameter
// System.println("BackgroundServiceDelegate onActivityCompleted(): Event triggered");
doUpdate(-1, -1);
}
}
function onTemporalEvent() as Void {
if (!System.getDeviceSettings().phoneConnected) {
// System.println("BackgroundServiceDelegate onTemporalEvent(): No Phone connection, skipping API call.");
} else if (!System.getDeviceSettings().connectionAvailable) {
// System.println("BackgroundServiceDelegate onTemporalEvent(): No Internet connection, skipping API call.");
} else {
// System.println("BackgroundServiceDelegate onTemporalEvent(): Making API call.");
var position = Position.getInfo();
// System.println("BackgroundServiceDelegate onTemporalEvent(): gps: " + position.position.toDegrees());
// System.println("BackgroundServiceDelegate onTemporalEvent(): speed: " + position.speed);
// System.println("BackgroundServiceDelegate onTemporalEvent(): course: " + position.heading + "rad (" + (position.heading * 180 / Math.PI) + "°)");
// System.println("BackgroundServiceDelegate onTemporalEvent(): altitude: " + position.altitude);
// System.println("BackgroundServiceDelegate onTemporalEvent(): battery: " + System.getSystemStats().battery);
// System.println("BackgroundServiceDelegate onTemporalEvent(): charging: " + System.getSystemStats().charging);
// System.println("BackgroundServiceDelegate onTemporalEvent(): activity: " + Activity.getProfileInfo().name);
// Don't use Settings.* here as the object lasts < 30 secs and is recreated each time the background service is run
if (position.accuracy != Position.QUALITY_NOT_AVAILABLE && position.accuracy != Position.QUALITY_LAST_KNOWN) {
var accuracy = 0;
switch (position.accuracy) {
case Position.QUALITY_POOR:
accuracy = 500;
break;
case Position.QUALITY_USABLE:
accuracy = 100;
break;
case Position.QUALITY_GOOD:
accuracy = 10;
break;
}
Communications.makeWebRequest(
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
{
"type" => "update_location",
"data" => {
"gps" => position.position.toDegrees(),
"gps_accuracy" => accuracy,
"speed" => Math.round(position.speed),
"course" => Math.round(position.heading * 180 / Math.PI),
"altitude" => Math.round(position.altitude),
}
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:onReturnBatteryUpdate)
);
}
var data = [
{
"state" => System.getSystemStats().battery,
"type" => "sensor",
"unique_id" => "battery_level"
},
{
"state" => System.getSystemStats().charging,
"type" => "binary_sensor",
"unique_id" => "battery_is_charging"
}
];
var activity = null;
var sub_activity = null;
if ((Activity has :getActivityInfo) and (Activity has :getProfileInfo)) {
var activity = Activity.getProfileInfo().sport;
var sub_activity = Activity.getProfileInfo().subSport;
activity = Activity.getProfileInfo().sport;
sub_activity = Activity.getProfileInfo().subSport;
// We need to check if we are actually tracking any activity as the enumerated type does not include "No Sport".
if ((Activity.getActivityInfo() != null) and
((Activity.getActivityInfo().elapsedTime == null) or
(Activity.getActivityInfo().elapsedTime == 0))) {
(Activity.getActivityInfo().elapsedTime == 0))) {
// Indicate no activity with -1, not part of Garmin's activity codes.
// https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#Sport-module
activity = -1;
sub_activity = -1;
}
data.add({
"state" => activity,
"type" => "sensor",
"unique_id" => "activity"
});
data.add({
"state" => sub_activity,
"type" => "sensor",
"unique_id" => "sub_activity"
});
}
// System.println("BackgroundServiceDelegate onTemporalEvent(): Event triggered, activity = " + activity + " sub_activity = " + sub_activity);
doUpdate(activity, sub_activity);
}
}
private function doUpdate(activity as Lang.Number or Null, sub_activity as Lang.Number or Null) {
// System.println("BackgroundServiceDelegate onTemporalEvent(): Making API call.");
var position = Position.getInfo();
// System.println("BackgroundServiceDelegate onTemporalEvent(): gps: " + position.position.toDegrees());
// System.println("BackgroundServiceDelegate onTemporalEvent(): speed: " + position.speed);
// System.println("BackgroundServiceDelegate onTemporalEvent(): course: " + position.heading + "rad (" + (position.heading * 180 / Math.PI) + "°)");
// System.println("BackgroundServiceDelegate onTemporalEvent(): altitude: " + position.altitude);
// System.println("BackgroundServiceDelegate onTemporalEvent(): battery: " + System.getSystemStats().battery);
// System.println("BackgroundServiceDelegate onTemporalEvent(): charging: " + System.getSystemStats().charging);
// System.println("BackgroundServiceDelegate onTemporalEvent(): activity: " + Activity.getProfileInfo().name);
// Don't use Settings.* here as the object lasts < 30 secs and is recreated each time the background service is run
if (position.accuracy != Position.QUALITY_NOT_AVAILABLE && position.accuracy != Position.QUALITY_LAST_KNOWN) {
var accuracy = 0;
switch (position.accuracy) {
case Position.QUALITY_POOR:
accuracy = 500;
break;
case Position.QUALITY_USABLE:
accuracy = 100;
break;
case Position.QUALITY_GOOD:
accuracy = 10;
break;
}
Communications.makeWebRequest(
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
{
"type" => "update_sensor_states",
"data" => data
"type" => "update_location",
"data" => {
"gps" => position.position.toDegrees(),
"gps_accuracy" => accuracy,
"speed" => Math.round(position.speed),
"course" => Math.round(position.heading * 180 / Math.PI),
"altitude" => Math.round(position.altitude),
}
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
@ -141,6 +124,85 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
method(:onReturnBatteryUpdate)
);
}
var activityInfo = ActivityMonitor.getInfo();
var heartRate = Activity.getActivityInfo().currentHeartRate;
var data = [
{
"state" => System.getSystemStats().battery,
"type" => "sensor",
"unique_id" => "battery_level",
"icon" => "mdi:battery"
},
{
"state" => System.getSystemStats().charging,
"type" => "binary_sensor",
"unique_id" => "battery_is_charging",
"icon" => System.getSystemStats().charging ? "mdi:battery-plus" : "mdi:battery-minus"
},
{
"state" => activityInfo.steps == null ? "unknown" : activityInfo.steps,
"type" => "sensor",
"unique_id" => "steps_today",
"icon" => "mdi:walk"
},
{
"state" => heartRate == null ? "unknown" : heartRate,
"type" => "sensor",
"unique_id" => "heart_rate",
"icon" => "mdi:heart-pulse"
},
{
"state" => activityInfo.floorsClimbed == null ? "unknown" : activityInfo.floorsClimbed,
"type" => "sensor",
"unique_id" => "floors_climbed_today",
"icon" => "mdi:stairs-up"
},
{
"state" => activityInfo.floorsDescended == null ? "unknown" : activityInfo.floorsDescended,
"type" => "sensor",
"unique_id" => "floors_descended_today",
"icon" => "mdi:stairs-down"
}
];
if (ActivityMonitor.Info has :respirationRate) {
data.add({
"state" => activityInfo.respirationRate == null ? "unknown" : activityInfo.respirationRate,
"type" => "sensor",
"unique_id" => "respiration_rate",
"icon" => "mdi:lungs"
});
}
if (activity != null) {
data.add({
"state" => activity,
"type" => "sensor",
"unique_id" => "activity"
});
}
if (sub_activity != null) {
data.add({
"state" => sub_activity,
"type" => "sensor",
"unique_id" => "sub_activity"
});
}
Communications.makeWebRequest(
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
{
"type" => "update_sensor_states",
"data" => data
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:onReturnBatteryUpdate)
);
}
}

View File

@ -27,16 +27,19 @@ using Toybox.Timer;
(:glance, :background)
class HomeAssistantApp extends Application.AppBase {
private var mApiStatus as Lang.String or Null;
private var mMenuStatus as Lang.String or Null;
private var mHaMenu as HomeAssistantView or Null;
private var mQuitTimer as QuitTimer or Null;
private var mTimer as Timer.Timer or Null;
private var mApiStatus as Lang.String or Null;
private var mMenuStatus as Lang.String or Null;
private var mHaMenu as HomeAssistantView or Null;
private var mQuitTimer as QuitTimer or Null;
private var mGlanceTimer as Timer.Timer or Null;
private var mUpdateTimer as Timer.Timer or Null;
// Array initialised by onReturnFetchMenuConfig()
private var mItemsToUpdate as Lang.Array<HomeAssistantToggleMenuItem or HomeAssistantTemplateMenuItem> or Null;
private var mNextItemToUpdate as Lang.Number = 0; // Index into the above array
private var mIsGlance as Lang.Boolean = false;
private var mIsApp as Lang.Boolean = false; // Or Widget
private var mItemsToUpdate as Lang.Array<HomeAssistantToggleMenuItem or HomeAssistantTemplateMenuItem> or Null;
private var mNextItemToUpdate as Lang.Number = 0; // Index into the above array
private var mIsGlance as Lang.Boolean = false;
private var mIsApp as Lang.Boolean = false; // Or Widget
private var mIsInitUpdateCompl as Lang.Boolean = false;
private var mUpdating as Lang.Boolean = false; // Don't start a second chain of updates
function initialize() {
AppBase.initialize();
@ -87,11 +90,11 @@ class HomeAssistantApp extends Application.AppBase {
// Return the initial view of your application here
function getInitialView() as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>? {
mIsApp = true;
mQuitTimer = new QuitTimer();
// RezStrings.update();
mApiStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
mIsApp = true;
mQuitTimer = new QuitTimer();
mUpdateTimer = new Timer.Timer();
mApiStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
Settings.update();
if (Settings.getApiKey().length() == 0) {
@ -107,22 +110,18 @@ class HomeAssistantApp extends Application.AppBase {
// System.println("HomeAssistantApp getInitialView(): No configuration URL in the application settings.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoConfigUrl) as Lang.String + ".");
} else if (! System.getDeviceSettings().phoneConnected) {
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
// System.println("HomeAssistantApp getInitialView(): No Phone connection, skipping API call.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
} else if (! System.getDeviceSettings().connectionAvailable) {
// System.println("HomeAssistantApp fetchMenuConfig(): No Internet connection, skipping API call.");
// System.println("HomeAssistantApp getInitialView(): No Internet connection, skipping API call.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
} else {
var isCached = fetchMenuConfig();
fetchApiStatus();
if (WidgetApp.isWidget) {
return [new RootView(self), new RootViewDelegate(self)] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
if (isCached) {
return [mHaMenu, new HomeAssistantViewDelegate(true)] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
} else {
if (isCached) {
return [mHaMenu, new HomeAssistantViewDelegate(true)] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
} else {
return [new WatchUi.View(), new WatchUi.BehaviorDelegate()] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
}
return [new WatchUi.View(), new WatchUi.BehaviorDelegate()] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
}
}
}
@ -173,15 +172,21 @@ class HomeAssistantApp extends Application.AppBase {
break;
case 200:
if (Settings.getCacheConfig()) {
Storage.setValue("menu", data as Lang.Dictionary);
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Cached) as Lang.String;
if (data == null) {
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
} else {
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
if (Settings.getCacheConfig()) {
Storage.setValue("menu", data as Lang.Dictionary);
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Cached) as Lang.String;
} else {
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
}
}
if (!mIsGlance) {
buildMenu(data);
if (!WidgetApp.isWidget) {
if (data == null) {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
} else {
buildMenu(data);
WatchUi.switchToView(mHaMenu, new HomeAssistantViewDelegate(false), WatchUi.SLIDE_IMMEDIATE);
}
}
@ -201,19 +206,20 @@ class HomeAssistantApp extends Application.AppBase {
// asynchronous and affects how the views are managed.
(:glance)
function fetchMenuConfig() as Lang.Boolean {
// System.println("URL = " + Settings.getConfigUrl());
if (Settings.getConfigUrl().equals("")) {
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unconfigured) as Lang.String;
WatchUi.requestUpdate();
} else {
var menu = Storage.getValue("menu") as Lang.Dictionary;
if (menu != null and Settings.getClearCache()) {
if (menu != null and (Settings.getClearCache() || !Settings.getCacheConfig())) {
Storage.deleteValue("menu");
menu = null;
Settings.unsetClearCache();
}
if (menu == null) {
if (! System.getDeviceSettings().phoneConnected) {
// System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
@ -221,7 +227,7 @@ class HomeAssistantApp extends Application.AppBase {
}
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
} else if (! System.getDeviceSettings().connectionAvailable) {
// System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
// System.println("HomeAssistantApp fetchMenuConfig(): No Internet connection, skipping API call.");
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
@ -254,17 +260,17 @@ class HomeAssistantApp extends Application.AppBase {
private function buildMenu(menu as Lang.Dictionary) {
mHaMenu = new HomeAssistantView(menu, null);
mQuitTimer.begin();
if (Settings.getIsWidgetStartNoTap()) {
// As soon as the menu has been fetched start show the menu of items.
// This behaviour is inconsistent with the standard Garmin User Interface, but has been
// requested by users so has been made the non-default option.
pushHomeAssistantMenuView();
}
mItemsToUpdate = mHaMenu.getItemsToUpdate();
// Start the continuous update process that continues for as long as the application is running.
// The chain of functions from 'updateNextMenuItem()' calls 'updateNextMenuItem()' on completion.
if (mItemsToUpdate.size() > 0) {
updateNextMenuItem();
}
function startUpdates() {
if (mHaMenu != null and !mUpdating) {
mItemsToUpdate = mHaMenu.getItemsToUpdate();
// Start the continuous update process that continues for as long as the application is running.
// The chain of functions from 'updateNextMenuItem()' calls 'updateNextMenuItem()' on completion.
if (mItemsToUpdate.size() > 0) {
mUpdating = true;
updateNextMenuItemInternal();
}
}
}
@ -343,7 +349,7 @@ class HomeAssistantApp extends Application.AppBase {
WatchUi.requestUpdate();
} else {
if (! System.getDeviceSettings().phoneConnected) {
// System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
// System.println("HomeAssistantApp fetchApiStatus(): No Phone connection, skipping API call.");
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
if (mIsGlance) {
WatchUi.requestUpdate();
@ -351,7 +357,7 @@ class HomeAssistantApp extends Application.AppBase {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
}
} else if (! System.getDeviceSettings().connectionAvailable) {
// System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
// System.println("HomeAssistantApp fetchApiStatus(): No Internet connection, skipping API call.");
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
if (mIsGlance) {
WatchUi.requestUpdate();
@ -397,18 +403,46 @@ class HomeAssistantApp extends Application.AppBase {
WatchUi.pushView(mHaMenu, new HomeAssistantViewDelegate(true), WatchUi.SLIDE_IMMEDIATE);
}
function updateNextMenuItem() as Void {
var delay = Settings.getPollDelay();
if (mIsInitUpdateCompl and (delay > 0) and (mNextItemToUpdate == 0)) {
mUpdateTimer.start(method(:updateNextMenuItemInternal), delay, false);
} else {
updateNextMenuItemInternal();
}
}
// Only call this function if Settings.getPollDelay() > 0. This must be tested locally as it is then efficient to take
// alternative action if the test fails.
function forceStatusUpdates() as Void {
// Don't mess with updates unless we are using a timer.
if (Settings.getPollDelay() > 0) {
mUpdateTimer.stop();
mIsInitUpdateCompl = false;
// Start from the beginning, or we will only get a partial round of updates before mIsInitUpdateCompl is flipped.
mNextItemToUpdate = 0;
// For immediate updates
updateNextMenuItem();
}
}
// We need to spread out the API calls so as not to overload the results queue and cause Communications.BLE_QUEUE_FULL
// (-101) error. This function is called by a timer every Globals.menuItemUpdateInterval ms.
function updateNextMenuItem() as Void {
function updateNextMenuItemInternal() as Void {
var itu = mItemsToUpdate as Lang.Array<HomeAssistantToggleMenuItem>;
if (itu == null) {
// System.println("HomeAssistantApp updateNextMenuItem(): No menu items to update");
if (!mIsGlance) {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ConfigUrlNotFound) as Lang.String);
}
} else {
if (itu != null) {
// System.println("HomeAssistantApp updateNextMenuItemInternal(): Doing update for item " + mNextItemToUpdate + ", mIsInitUpdateCompl=" + mIsInitUpdateCompl);
itu[mNextItemToUpdate].getState();
mNextItemToUpdate = (mNextItemToUpdate + 1) % itu.size();
// mNextItemToUpdate = (mNextItemToUpdate + 1) % itu.size() - But with roll-over detection
if (mNextItemToUpdate == itu.size()-1) {
// Last item completed return to the start of the list
mNextItemToUpdate = 0;
mIsInitUpdateCompl = true;
} else {
mNextItemToUpdate++;
}
// } else {
// System.println("HomeAssistantApp updateNextMenuItemInternal(): No menu items to update");
}
}
@ -417,25 +451,23 @@ class HomeAssistantApp extends Application.AppBase {
}
function getGlanceView() as Lang.Array<WatchUi.GlanceView or WatchUi.GlanceViewDelegate> or Null {
mIsGlance = true;
// RezStrings.update_glance();
mIsGlance = true;
mApiStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String;
updateStatus();
Settings.update();
mTimer = new Timer.Timer();
mTimer.start(method(:updateStatus), Globals.scApiBackoff, true);
mGlanceTimer = new Timer.Timer();
mGlanceTimer.start(method(:updateStatus), Globals.scApiBackoff, true);
return [new HomeAssistantGlanceView(self)];
}
// Required for the Glance update timer.
function updateStatus() as Void {
mGlanceTimer = null;
fetchMenuConfig();
fetchApiStatus();
}
// Replace this functionality with a more central settings class as proposed in
// https://github.com/house-of-abbey/GarminHomeAssistant/pull/17.
function onSettingsChanged() as Void {
// System.println("HomeAssistantApp onSettingsChanged()");
Settings.update();

View File

@ -80,6 +80,7 @@ class HomeAssistantService {
case 200:
// System.println("HomeAssistantService onReturnCall(): Service executed.");
getApp().forceStatusUpdates();
var d = data as Lang.Array;
var toast = WatchUi.loadResource($.Rez.Strings.Executed) as Lang.String;
for(var i = 0; i < d.size(); i++) {
@ -122,9 +123,12 @@ class HomeAssistantService {
// System.println("HomeAssistantService call() URL=" + url);
// System.println("HomeAssistantService call() service=" + service);
var entity_id = data.get("entity_id");
if (entity_id == null) {
entity_id = "";
var entity_id = "";
if (data != null) {
entity_id = data.get("entity_id");
if (entity_id == null) {
entity_id = "";
}
}
Communications.makeWebRequest(
@ -141,7 +145,7 @@ class HomeAssistantService {
},
method(:onReturnCall)
);
if (mHasVibrate) {
if (mHasVibrate and Settings.getVibrate()) {
Attention.vibrate([
new Attention.VibeProfile(50, 100), // On for 100ms
new Attention.VibeProfile( 0, 100), // Off for 100ms

View File

@ -83,7 +83,7 @@ class HomeAssistantTemplateMenuItem extends WatchUi.IconMenuItem {
// Terminate updating the toggle menu items via the chain of calls for a permanent network
// error. The ErrorView cancellation will resume the call chain.
//
function onReturnGetState(responseCode as Lang.Number, data as Lang.String) as Void {
function onReturnGetState(responseCode as Lang.Number, data as Null or Lang.Dictionary) as Void {
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: " + responseCode);
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Data: " + data);
@ -131,7 +131,19 @@ class HomeAssistantTemplateMenuItem extends WatchUi.IconMenuItem {
case 200:
status = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
setSubLabel(data);
var label = data.get("request");
if (label == null) {
setSubLabel($.Rez.Strings.Empty);
} else if(label instanceof Lang.String) {
setSubLabel(label);
} else if(label instanceof Lang.Dictionary) {
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() label = " + label);
if (label.get("error") != null) {
setSubLabel($.Rez.Strings.TemplateError);
} else {
setSubLabel($.Rez.Strings.PotentialError);
}
}
requestUpdate();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
getApp().updateNextMenuItem();
@ -154,18 +166,25 @@ class HomeAssistantTemplateMenuItem extends WatchUi.IconMenuItem {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
getApp().setApiStatus(WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String);
} else {
var url = Settings.getApiUrl() + "/template";
// https://developers.home-assistant.io/docs/api/native-app-integration/sending-data/#render-templates
var url = Settings.getApiUrl() + "/webhook/" + Settings.getWebhookId();
// System.println("HomeAssistantTemplateMenuItem getState() URL=" + url + ", Template='" + mTemplate + "'");
Communications.makeWebRequest(
url,
{ "template" => mTemplate },
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
"Authorization" => "Bearer " + Settings.getApiKey()
"type" => "render_template",
"data" => {
"request" => {
"template" => mTemplate
}
}
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_TEXT_PLAIN
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:onReturnGetState)
);

View File

@ -196,6 +196,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
break;
case 200:
// System.println("HomeAssistantToggleMenuItem onReturnSetState(): Service executed.");
getApp().forceStatusUpdates();
var state;
var d = data as Lang.Array;
for(var i = 0; i < d.size(); i++) {

View File

@ -41,38 +41,40 @@ class HomeAssistantView extends WatchUi.Menu2 {
}
WatchUi.Menu2.initialize(options);
var items = definition.get("items") as Lang.Dictionary;
for(var i = 0; i < items.size(); i++) {
var type = items[i].get("type") as Lang.String or Null;
var name = items[i].get("name") as Lang.String or Null;
var content = items[i].get("content") as Lang.String or Null;
var entity = items[i].get("entity") as Lang.String or Null;
var tap_action = items[i].get("tap_action") as Lang.Dictionary or Null;
var service = items[i].get("service") as Lang.String or Null; // Deprecated schema
var confirm = false as Lang.Boolean or Null;
var data = null as Lang.Dictionary or Null;
if (tap_action != null) {
service = tap_action.get("service");
confirm = tap_action.get("confirm"); // Optional
data = tap_action.get("data"); // Optional
if (confirm == null) {
confirm = false;
}
}
if (type != null && name != null) {
if (type.equals("toggle") && entity != null) {
addItem(HomeAssistantMenuItemFactory.create().toggle(name, entity, confirm));
} else if (type.equals("template") && content != null) {
if (service == null) {
addItem(HomeAssistantMenuItemFactory.create().template_notap(name, content));
} else {
addItem(HomeAssistantMenuItemFactory.create().template_tap(name, entity, content, service, confirm, data));
var items = definition.get("items") as Lang.Array<Lang.Dictionary>;
for (var i = 0; i < items.size(); i++) {
if (items[i] instanceof(Lang.Dictionary)) {
var type = items[i].get("type") as Lang.String or Null;
var name = items[i].get("name") as Lang.String or Null;
var content = items[i].get("content") as Lang.String or Null;
var entity = items[i].get("entity") as Lang.String or Null;
var tap_action = items[i].get("tap_action") as Lang.Dictionary or Null;
var service = items[i].get("service") as Lang.String or Null; // Deprecated schema
var confirm = false as Lang.Boolean or Null;
var data = null as Lang.Dictionary or Null;
if (tap_action != null) {
service = tap_action.get("service");
confirm = tap_action.get("confirm"); // Optional
data = tap_action.get("data"); // Optional
if (confirm == null) {
confirm = false;
}
}
if (type != null && name != null) {
if (type.equals("toggle") && entity != null) {
addItem(HomeAssistantMenuItemFactory.create().toggle(name, entity, confirm));
} else if (type.equals("template") && content != null) {
if (service == null) {
addItem(HomeAssistantMenuItemFactory.create().template_notap(name, content));
} else {
addItem(HomeAssistantMenuItemFactory.create().template_tap(name, entity, content, service, confirm, data));
}
} else if (type.equals("tap") && service != null) {
addItem(HomeAssistantMenuItemFactory.create().tap(name, entity, service, confirm, data));
} else if (type.equals("group")) {
addItem(HomeAssistantMenuItemFactory.create().group(items[i]));
} else if (type.equals("tap") && service != null) {
addItem(HomeAssistantMenuItemFactory.create().tap(name, entity, service, confirm, data));
} else if (type.equals("group")) {
addItem(HomeAssistantMenuItemFactory.create().group(items[i]));
}
}
}
}

View File

@ -1,185 +0,0 @@
//-----------------------------------------------------------------------------------
//
// 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.
//
// P A Abbey & J D Abbey & Someone0nEarth, 5 December 2023
//
//
// Description:
//
// Application root view for GarminHomeAssistant
//
//-----------------------------------------------------------------------------------
using Toybox.Graphics;
using Toybox.Lang;
using Toybox.WatchUi;
using Toybox.System;
class RootView extends ScalableView {
// ATTENTION when the app is running as a "widget" (that means, it runs on devices
// without glance view support), the input events in this view are limited, as
// described under "Base View and the Widget Carousel" on:
//
// https://developer.garmin.com/connect-iq/connect-iq-basics/app-types/
//
// Also the view type of the base view is limited too (for example "WatchUi.Menu2"
// is not possible)).
//
// Also System.exit() is not working/do nothing when running as a widget: A widget will be
// terminated automatically by OS after some time or can be quit manually, when on the base
// view a swipe to left / "back button" press is done.
private static const scMidSep = 10; // Middle Separator "text:_text" in pixels
private var mApp as HomeAssistantApp;
private var mTitle as WatchUi.Text or Null;
private var mApiText as WatchUi.Text or Null;
private var mApiStatus as WatchUi.Text or Null;
private var mMenuText as WatchUi.Text or Null;
private var mMenuStatus as WatchUi.Text or Null;
private var mMemText as WatchUi.Text or Null;
private var mMemStatus as WatchUi.Text or Null;
private var mAntiAlias as Lang.Boolean = false;
function initialize(app as HomeAssistantApp) {
ScalableView.initialize();
mApp = app;
if (Graphics.Dc has :setAntiAlias) {
mAntiAlias = true;
}
}
function onLayout(dc as Graphics.Dc) as Void {
var w = dc.getWidth();
mTitle = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.AppName) as Lang.String,
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_TINY,
:justification => Graphics.TEXT_JUSTIFY_CENTER | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2,
:locY => pixelsForScreen(30.0)
});
mApiText = new WatchUi.Text({
:text => "API:",
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_RIGHT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 - scMidSep/2,
:locY => pixelsForScreen(50.0)
});
mApiStatus = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String,
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 + scMidSep/2,
:locY => pixelsForScreen(50.0)
});
mMenuText = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String + ":",
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_RIGHT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 - scMidSep/2,
:locY => pixelsForScreen(60.0)
});
mMenuStatus = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String,
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 + scMidSep/2,
:locY => pixelsForScreen(60.0)
});
mMemText = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.Memory) as Lang.String + ":",
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_RIGHT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 - scMidSep/2,
:locY => pixelsForScreen(70.0)
});
mMemStatus = new WatchUi.Text({
:text => WatchUi.loadResource($.Rez.Strings.Checking) as Lang.String,
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
:locX => w/2 + scMidSep/2,
:locY => pixelsForScreen(70.0)
});
}
function onUpdate(dc as Graphics.Dc) as Void {
if (mAntiAlias) {
dc.setAntiAlias(true);
}
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLACK);
dc.clear();
// Initialise this locally, otherwise the venu1 device runs out of memory when stored at class level.
var launcherIcon = Application.loadResource(Rez.Drawables.LauncherIcon);
var w = dc.getWidth();
var h = dc.getHeight();
dc.drawBitmap(w/2 - launcherIcon.getWidth()/2, h/8 - launcherIcon.getHeight()/2, launcherIcon);
mTitle.draw(dc);
mApiText.draw(dc);
mApiStatus.setText(mApp.getApiStatus());
mApiStatus.draw(dc);
mMenuText.draw(dc);
mMenuStatus.setText(mApp.getMenuStatus());
mMenuStatus.draw(dc);
mMemText.draw(dc);
var stats = System.getSystemStats();
var memUsed = (100f * stats.usedMemory) / stats.totalMemory;
mMemStatus.setText(memUsed.format("%.1f") + "%");
if (stats.usedMemory > Globals.scLowMem * stats.totalMemory) {
mMemStatus.setColor(Graphics.COLOR_RED);
} else {
mMemStatus.setColor(Graphics.COLOR_WHITE);
}
mMemStatus.draw(dc);
}
function onShow() as Void {
WatchUi.requestUpdate();
}
}
class RootViewDelegate extends WatchUi.BehaviorDelegate {
var mApp as HomeAssistantApp;
function initialize(app as HomeAssistantApp) {
BehaviorDelegate.initialize();
mApp = app;
}
function onTap(evt as WatchUi.ClickEvent) as Lang.Boolean {
return backToMainMenu();
}
function onSelect() as Lang.Boolean {
return backToMainMenu();
}
function onMenu() as Lang.Boolean {
return backToMainMenu();
}
private function backToMainMenu() as Lang.Boolean {
if (mApp.isHomeAssistantMenuLoaded()) {
mApp.pushHomeAssistantMenuView();
return true;
}
return false;
}
}

View File

@ -34,11 +34,12 @@ class Settings {
private static var mConfigUrl as Lang.String = "";
private static var mCacheConfig as Lang.Boolean = false;
private static var mClearCache as Lang.Boolean = false;
private static var mVibrate as Lang.Boolean = false;
private static var mAppTimeout as Lang.Number = 0; // seconds
private static var mPollDelay as Lang.Number = 0; // seconds
private static var mConfirmTimeout as Lang.Number = 3; // seconds
private static var mMenuAlignment as Lang.Number = WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_LEFT;
private static var mIsWidgetStartNoTap as Lang.Boolean = false;
private static var mIsBatteryLevelEnabled as Lang.Boolean = false;
private static var mIsSensorsLevelEnabled as Lang.Boolean = false;
private static var mBatteryRefreshRate as Lang.Number = 15; // minutes
private static var mIsApp as Lang.Boolean = false;
private static var mHasService as Lang.Boolean = false;
@ -54,11 +55,12 @@ class Settings {
mConfigUrl = Properties.getValue("config_url");
mCacheConfig = Properties.getValue("cache_config");
mClearCache = Properties.getValue("clear_cache");
mVibrate = Properties.getValue("enable_vibration");
mAppTimeout = Properties.getValue("app_timeout");
mPollDelay = Properties.getValue("poll_delay");
mConfirmTimeout = Properties.getValue("confirm_timeout");
mMenuAlignment = Properties.getValue("menu_alignment");
mIsWidgetStartNoTap = Properties.getValue("widget_start_no_tap");
mIsBatteryLevelEnabled = Properties.getValue("enable_battery_level");
mIsSensorsLevelEnabled = Properties.getValue("enable_battery_level");
mBatteryRefreshRate = Properties.getValue("battery_level_refresh_rate");
if (System has :ServiceDelegate) {
@ -67,22 +69,35 @@ class Settings {
// Manage this inside the application or widget only (not a glance or background service process)
if (mIsApp) {
if (mIsBatteryLevelEnabled) {
if (getWebhookId().equals("")) {
if (mHasService) {
if (System.getDeviceSettings().phoneConnected) {
mWebhookManager = new WebhookManager();
mWebhookManager.requestWebhookId();
} else if (
mHasService and
((Background.getTemporalEventRegisteredTime() == null) or
(Background.getTemporalEventRegisteredTime() != (mBatteryRefreshRate * 60)))
) {
Background.registerForTemporalEvent(new Time.Duration(mBatteryRefreshRate * 60)); // Convert to seconds
if (getWebhookId().equals("")) {
// System.println("Settings update(): Doing full webhook & sensor creation.");
mWebhookManager.requestWebhookId();
} else {
// System.println("Settings update(): Doing just sensor creation.");
// We already have a Webhook ID, so just enable or disable the sensor in Home Assistant.
mWebhookManager.registerWebhookSensors();
}
if (mIsSensorsLevelEnabled) {
// Create the timed activity
if ((Background.getTemporalEventRegisteredTime() == null) or
(Background.getTemporalEventRegisteredTime() != (mBatteryRefreshRate * 60))) {
Background.registerForTemporalEvent(new Time.Duration(mBatteryRefreshRate * 60)); // Convert to seconds
Background.registerForActivityCompletedEvent();
}
} else if (Background.getTemporalEventRegisteredTime() != null) {
Background.deleteTemporalEvent();
Background.deleteActivityCompletedEvent();
}
} else {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
}
} else {
// Explicitly disable the background event which persists when the application closes.
if (mHasService and (Background.getTemporalEventRegisteredTime() != null)) {
Background.deleteTemporalEvent();
}
// If !mHasService disable the Settings option as user feedback
unsetIsSensorsLevelEnabled();
unsetWebhookId();
}
}
@ -133,10 +148,18 @@ class Settings {
Properties.setValue("clear_cache", mClearCache);
}
static function getVibrate() as Lang.Boolean {
return mVibrate;
}
static function getAppTimeout() as Lang.Number {
return mAppTimeout * 1000; // Convert to milliseconds
}
static function getPollDelay() as Lang.Number {
return mPollDelay * 1000; // Convert to milliseconds
}
static function getConfirmTimeout() as Lang.Number {
return mConfirmTimeout * 1000; // Convert to milliseconds
}
@ -145,15 +168,17 @@ class Settings {
return mMenuAlignment; // Either WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_RIGHT or WatchUi.MenuItem.MENU_ITEM_LABEL_ALIGN_LEFT
}
static function getIsWidgetStartNoTap() as Lang.Boolean {
return mIsWidgetStartNoTap;
static function isSensorsLevelEnabled() as Lang.Boolean {
return mIsSensorsLevelEnabled;
}
static function unsetIsBatteryLevelEnabled() {
mIsBatteryLevelEnabled = false;
Properties.setValue("enable_battery_level", mIsBatteryLevelEnabled);
static function unsetIsSensorsLevelEnabled() {
mIsSensorsLevelEnabled = false;
Properties.setValue("enable_battery_level", mIsSensorsLevelEnabled);
if (mHasService and (Background.getTemporalEventRegisteredTime() != null)) {
Background.deleteTemporalEvent();
Background.deleteActivityCompletedEvent();
}
}
}

View File

@ -24,6 +24,7 @@
using Toybox.Lang;
using Toybox.Communications;
using Toybox.System;
using Toybox.WatchUi;
// Can use push view so must never be run in a glance context
class WebhookManager {
@ -52,13 +53,13 @@ class WebhookManager {
break;
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
// System.println("WebhookManager onReturnRequestWebhookId() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
break;
case 404:
// System.println("WebhookManager onReturnRequestWebhookId() Response Code: 404, page not found. Check API URL setting.");
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound) as Lang.String);
break;
@ -68,34 +69,24 @@ class WebhookManager {
if (id != null) {
Settings.setWebhookId(id);
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering first sensor: Battery Level");
registerWebhookSensor({
"device_class" => "battery",
"name" => "Battery Level",
"state" => System.getSystemStats().battery,
"type" => "sensor",
"unique_id" => "battery_level",
"unit_of_measurement" => "%",
"state_class" => "measurement",
"entity_category" => "diagnostic",
"disabled" => false
}, 0);
registerWebhookSensors();
} else {
// System.println("WebhookManager onReturnRequestWebhookId(): No webhook id in response data.");
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String);
}
break;
default:
// System.println("WebhookManager onReturnRequestWebhookId(): Unhandled HTTP response code = " + responseCode);
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
}
function requestWebhookId() {
// System.println("WebhookManager requestWebhookId(): Requesting webhook id");
var deviceSettings = System.getDeviceSettings();
// System.println("WebhookManager requestWebhookId(): Requesting webhook id for device = " + deviceSettings.uniqueIdentifier);
Communications.makeWebRequest(
Settings.getApiUrl() + "/mobile_app/registrations",
{
@ -124,7 +115,7 @@ class WebhookManager {
);
}
function onReturnRegisterWebhookSensor(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String, step as Lang.Number) as Void {
function onReturnRegisterWebhookSensor(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String, sensors as Lang.Array<Lang.Object>) as Void {
switch (responseCode) {
case Communications.BLE_HOST_TIMEOUT:
case Communications.BLE_CONNECTION_UNAVAILABLE:
@ -153,81 +144,33 @@ class WebhookManager {
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
// System.println("WebhookManager onReturnRegisterWebhookSensor() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
// Webhook ID might have been deleted on Home Assistant server
Settings.unsetWebhookId();
Settings.unsetIsBatteryLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Webhook ID invalid, going full chain.");
requestWebhookId();
break;
case 404:
// System.println("WebhookManager onReturnRequestWebhookId() Response Code: 404, page not found. Check API URL setting.");
// System.println("WebhookManager onReturnRegisterWebhookSensor() Response Code: 404, page not found. Check API URL setting.");
// Webhook ID might have been deleted on Home Assistant server
Settings.unsetWebhookId();
Settings.unsetIsBatteryLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound) as Lang.String);
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Webhook ID invalid, going full chain.");
requestWebhookId();
break;
case 200:
case 201:
if ((data.get("success") as Lang.Boolean or Null) != false) {
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Success");
switch (step) {
case 0:
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Battery is Charging");
registerWebhookSensor({
"device_class" => "battery_charging",
"name" => "Battery is Charging",
"state" => System.getSystemStats().charging,
"type" => "binary_sensor",
"unique_id" => "battery_is_charging",
"entity_category" => "diagnostic",
"disabled" => false
}, 1);
break;
case 1:
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity");
if (Activity has :getProfileInfo) {
var activity = Activity.getProfileInfo().sport;
if ((Activity.getActivityInfo() != null) and
((Activity.getActivityInfo().elapsedTime == null) or
(Activity.getActivityInfo().elapsedTime == 0))) {
// Indicate no activity with -1, not part of Garmin's activity codes.
// https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#Sport-module
activity = -1;
}
registerWebhookSensor({
"name" => "Activity",
"state" => activity,
"type" => "sensor",
"unique_id" => "activity",
"disabled" => false
}, 2);
break;
}
case 2:
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity");
if (Activity has :getProfileInfo) {
var sub_activity = Activity.getProfileInfo().subSport;
if ((Activity.getActivityInfo() != null) and
((Activity.getActivityInfo().elapsedTime == null) or
(Activity.getActivityInfo().elapsedTime == 0))) {
// Indicate no activity with -1, not part of Garmin's activity codes.
// https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#Sport-module
sub_activity = -1;
}
registerWebhookSensor({
"name" => "Sub-activity",
"state" => sub_activity,
"type" => "sensor",
"unique_id" => "sub_activity",
"disabled" => false
}, 3);
break;
}
default:
var d = data as Lang.Dictionary;
if ((d.get("success") as Lang.Boolean or Null) != false) {
if (sensors.size() == 0) {
getApp().startUpdates();
} else {
registerWebhookSensor(sensors);
}
} else {
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Failure");
Settings.unsetWebhookId();
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String);
}
break;
@ -235,18 +178,21 @@ class WebhookManager {
default:
// System.println("WebhookManager onReturnRequestWebhookId(): Unhandled HTTP response code = " + responseCode);
Settings.unsetWebhookId();
Settings.unsetIsBatteryLevelEnabled();
Settings.unsetIsSensorsLevelEnabled();
ErrorView.show(WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String + "\n" + WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
}
function registerWebhookSensor(sensor as Lang.Object, step as Lang.Number) {
function registerWebhookSensor(sensors as Lang.Array<Lang.Object>) {
var url = Settings.getApiUrl() + "/webhook/" + Settings.getWebhookId();
// System.println("WebhookManager registerWebhookSensor(): Registering webhook sensor: " + sensor.toString());
// System.println("WebhookManager registerWebhookSensor(): URL=" + url);
// https://developers.home-assistant.io/docs/api/native-app-integration/sensors/#registering-a-sensor
Communications.makeWebRequest(
Settings.getApiUrl() + "/webhook/" + Settings.getWebhookId(),
url,
{
"type" => "register_sensor",
"data" => sensor
"data" => sensors[0]
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
@ -254,10 +200,120 @@ class WebhookManager {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
:context => step
:context => sensors.slice(1, null)
},
method(:onReturnRegisterWebhookSensor)
);
}
function registerWebhookSensors() {
var activityInfo = ActivityMonitor.getInfo();
var heartRate = Activity.getActivityInfo().currentHeartRate;
var sensors = [
{
"device_class" => "battery",
"name" => "Battery Level",
"state" => System.getSystemStats().battery,
"type" => "sensor",
"unique_id" => "battery_level",
"icon" => "mdi:battery",
"unit_of_measurement" => "%",
"state_class" => "measurement",
"entity_category" => "diagnostic",
"disabled" => !Settings.isSensorsLevelEnabled()
},
{
"device_class" => "battery_charging",
"name" => "Battery is Charging",
"state" => System.getSystemStats().charging,
"type" => "binary_sensor",
"unique_id" => "battery_is_charging",
"icon" => System.getSystemStats().charging ? "mdi:battery-plus" : "mdi:battery-minus",
"entity_category" => "diagnostic",
"disabled" => !Settings.isSensorsLevelEnabled()
},
{
"name" => "Steps today",
"state" => activityInfo.steps == null ? "unknown" : activityInfo.steps,
"type" => "sensor",
"unique_id" => "steps_today",
"icon" => "mdi:walk",
"state_class" => "total",
"disabled" => !Settings.isSensorsLevelEnabled()
},
{
"name" => "Heart rate",
"state" => heartRate == null ? "unknown" : heartRate,
"type" => "sensor",
"unique_id" => "heart_rate",
"icon" => "mdi:heart-pulse",
"unit_of_measurement" => "bpm",
"state_class" => "measurement",
"disabled" => !Settings.isSensorsLevelEnabled()
},
{
"name" => "Floors climbed today",
"state" => activityInfo.floorsClimbed == null ? "unknown" : activityInfo.floorsClimbed,
"type" => "sensor",
"unique_id" => "floors_climbed_today",
"icon" => "mdi:stairs-up",
"state_class" => "total",
"disabled" => !Settings.isSensorsLevelEnabled()
},
{
"name" => "Floors descended today",
"state" => activityInfo.floorsDescended == null ? "unknown" : activityInfo.floorsDescended,
"type" => "sensor",
"unique_id" => "floors_descended_today",
"icon" => "mdi:stairs-down",
"state_class" => "total",
"disabled" => !Settings.isSensorsLevelEnabled()
}
];
if (ActivityMonitor.Info has :respirationRate) {
sensors.add({
"name" => "Respiration rate",
"state" => activityInfo.respirationRate == null ? "unknown" : activityInfo.respirationRate,
"type" => "sensor",
"unique_id" => "respiration_rate",
"icon" => "mdi:lungs",
"unit_of_measurement" => "bpm",
"state_class" => "measurement",
"disabled" => !Settings.isSensorsLevelEnabled()
});
}
if (Activity has :getProfileInfo) {
var activity = Activity.getProfileInfo().sport;
var sub_activity = Activity.getProfileInfo().subSport;
if ((Activity.getActivityInfo() != null) and
((Activity.getActivityInfo().elapsedTime == null) or
(Activity.getActivityInfo().elapsedTime == 0))) {
// Indicate no activity with -1, not part of Garmin's activity codes.
// https://developer.garmin.com/connect-iq/api-docs/Toybox/Activity.html#Sport-module
activity = -1;
sub_activity = -1;
}
sensors.add({
"name" => "Activity",
"state" => activity,
"type" => "sensor",
"unique_id" => "activity",
"disabled" => !Settings.isSensorsLevelEnabled()
});
sensors.add({
"name" => "Sub-activity",
"state" => sub_activity,
"type" => "sensor",
"unique_id" => "sub_activity",
"disabled" => !Settings.isSensorsLevelEnabled()
});
}
registerWebhookSensor(sensors);
}
}