Compare commits

...

142 Commits
v2.1 ... v2.5

Author SHA1 Message Date
7ab8246197 Merge pull request #88 from house-of-abbey/87-look-for-memory-usage-efficiencies
87 look for memory usage efficiencies
2024-01-23 07:13:22 +00:00
776134e842 Merge pull request #89 from house-of-abbey/restyled/87-look-for-memory-usage-efficiencies
Restyle 87 look for memory usage efficiencies
2024-01-22 22:25:46 +00:00
a95736ebed Restyled by whitespace 2024-01-22 22:20:26 +00:00
9c001f3402 Cosmetic 2024-01-22 10:28:35 +00:00
7786efd883 Update HomeAssistantApp.mc
Removed memory metrics
2024-01-21 20:46:55 +00:00
0b80e4546d Corrected a previous incomplete commit
All now "WatchUi.loadResource($.Rez.Strings.WebhookFailed) as Lang.String"
2024-01-21 20:43:11 +00:00
6e67c4cf2a Removed RezStrings.mc
And in-lined the resource strings fetching.
2024-01-21 20:38:01 +00:00
b80227e484 Update Settings.mc
Cosmetic
2024-01-21 20:11:47 +00:00
d9b345e5b8 Update Settings.mc
Cosmetic
2024-01-21 20:04:12 +00:00
fc7302ad3b Update HomeAssistantView.mc
Removed empty else clause.
2024-01-21 20:00:52 +00:00
d9ecaf34ee Removed Debug
On some devices it looks like removing the System.println() statements from inside an 'if' clause whose condition is a constant (static constant Globals.scDebug) makes a memory saving. This would suggest the compiler does not propagate constants and prune unreachable code. However in the device of greatest interest debug removal has made no difference to the memory usage. Here the conditional clauses have been turned into comments that can be removed on a case-by-case basis otherwise the debug printing is too voluminous anyway.
2024-01-21 17:53:37 +00:00
62b8f0fccf Add max size to menus 2024-01-21 13:06:44 +00:00
26954cbc60 Update RootView.mc
Memory usage decimal place was never used due to integer arithmetic. A single character changes fixed that.
2024-01-21 13:00:31 +00:00
a5b2af81bc Merge pull request #81 from house-of-abbey/80-examples
Added examples for templates and custom switches
2024-01-20 15:07:32 +00:00
10c64c0fdc Merge pull request #86 from house-of-abbey/restyled/80-examples 2024-01-20 15:06:25 +00:00
ed3dce8827 Restyled by prettier-json 2024-01-20 15:05:50 +00:00
35a65ebdf4 Restyled by jq 2024-01-20 15:05:49 +00:00
b46c4d2eb4 Read through all documentation 2024-01-20 15:05:33 +00:00
2b21c840c6 Rename Troubleshooting.md to TroubleShooting.md 2024-01-20 13:41:04 +00:00
1448f6b0c2 Update config.schema.json 2024-01-20 12:10:17 +00:00
ce2f4d38d0 Menu for different pages of documents 2024-01-20 11:31:50 +00:00
13d3ffd1ec Documentation 2024-01-19 22:27:39 +00:00
5620ea6695 Update config.schema.json 2024-01-19 21:17:24 +00:00
7243917103 Documentation 2024-01-19 21:14:33 +00:00
49fb42cc0f Documentation 2024-01-19 20:18:25 +00:00
39fc04fc5c Merge branch 'main' into 80-examples 2024-01-19 19:51:03 +00:00
3c5e970892 Merge pull request #84 from house-of-abbey/79-confirm-on-toggle
Initial Solution
2024-01-19 19:43:22 +00:00
bd32d94ac7 Merge pull request #85 from house-of-abbey/restyled/79-confirm-on-toggle
Restyle Initial Solution
2024-01-19 19:40:50 +00:00
b7c48db604 Restyled by prettier-json 2024-01-19 19:39:25 +00:00
018d2d9611 Restyled by jq 2024-01-19 19:39:22 +00:00
44ec2e2eb1 Initial Solution 2024-01-19 19:26:02 +00:00
1325f8c382 Merge pull request #82 from house-of-abbey/52-allow-parameters-to-be-send-with-tap-menu-items
52 allow parameters to be send with tap menu items
2024-01-19 18:15:39 +00:00
2be255bb71 Removal of menu identifiers as not actually required
Toggle menu is now consistent with the use of data objects in tap and template. HA 'notify' actions now work.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-19 18:04:55 +00:00
67a5f0a14e Amending naming convention
Removing some inconsistencies
2024-01-19 16:11:30 +00:00
52d9a0ec3d Update iconResize.py 2024-01-18 21:20:34 +00:00
6632ba6c41 Merge pull request #83 from house-of-abbey/restyled/52-allow-parameters-to-be-send-with-tap-menu-items 2024-01-18 21:18:48 +00:00
a48c6a38fe Restyled by whitespace 2024-01-18 21:17:54 +00:00
4e96036d66 Removed code to dismiss the ErrorView
The automatic ErrorView.unShow() when the HTTP Request callback success was preventing errors being read. Removing to see if they are really required.
2024-01-18 21:15:59 +00:00
f0b84856ad Added examples for templates and custom switches 2024-01-18 20:36:30 +00:00
7ffbd84785 Initial working version 2024-01-17 23:31:27 +00:00
3bc65ecc6e Merge pull request #76 from house-of-abbey/74-cache-has-results 2024-01-15 18:22:02 +00:00
a00ed58cf4 Create restyled.yml 2024-01-15 18:21:10 +00:00
1132bdf57b Apply automatic changes 2024-01-14 20:49:31 +00:00
53bd8d3c50 Documentation update
Remnants that perhaps should have been in the previous merge.
2024-01-14 20:19:40 +00:00
81762fbf7d Cached 'has' result in initialize()
Also amended a bit of README that was missed and added a memory usage in the RootView for widgets here memory is limited, to serve as a warning to users who are likely to complain.
2024-01-14 19:59:18 +00:00
84aaa44995 Merge pull request #72 from house-of-abbey/26-sensor-readings-as-text-display
Template Menu Item
2024-01-14 17:16:34 +00:00
2cf087ed23 Remove lists left around after initialisation 2024-01-14 14:20:27 +00:00
d35c6be074 Apply automatic changes 2024-01-14 13:56:00 +00:00
099b4db3b9 Merge pull request #75 from house-of-abbey/restyled/26-sensor-readings-as-text-display 2024-01-14 13:36:59 +00:00
4b5c9ba8ba Restyled by whitespace 2024-01-14 13:34:46 +00:00
31fb4a5569 Restyled by prettier-json 2024-01-14 13:34:45 +00:00
3ee585d20f Restyled by jq 2024-01-14 13:34:43 +00:00
52d12fdca6 Remove extraneous corrections 2024-01-14 13:34:28 +00:00
1f075a8c0f Remove text versions of menu items 2024-01-14 13:29:33 +00:00
cf2237958d Turn off debug 2024-01-14 12:07:18 +00:00
3504264f56 Merge pull request #73 from house-of-abbey/restyled/26-sensor-readings-as-text-display 2024-01-14 12:05:53 +00:00
94bc49afe2 Restyled by whitespace 2024-01-14 11:52:49 +00:00
a8e1bd6247 Restyled by prettier-json 2024-01-14 11:52:48 +00:00
86be286c2b Restyled by jq 2024-01-14 11:52:45 +00:00
8712d68a3c Apply automatic changes 2024-01-14 11:52:39 +00:00
31b30788b1 add TemplateMenuItem 2024-01-14 08:00:49 +00:00
4447c35761 Updated settings documentation 2024-01-13 08:29:35 +00:00
cec10bb89a Initial schema draft 2024-01-12 18:43:04 +00:00
398dc86cbf Battery device deletion docs
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-12 18:34:13 +00:00
4665d144c5 Merge pull request #71 from house-of-abbey/70-fix-naming-of-unsetting-functions
Fix naming of unsetting functions
2024-01-12 18:11:47 +00:00
32ce1d2a74 Fix naming 2024-01-12 18:01:00 +00:00
cd416bc81b Merge pull request #69 from house-of-abbey/68-automatically-remove-the-webhook-id-when-battery-level-is-disabled
Automatically remove webhook id
2024-01-12 17:57:46 +00:00
f2316dc0f6 Update README.md 2024-01-12 17:54:59 +00:00
7f8814d587 Automatically remove webhook id 2024-01-12 17:53:42 +00:00
81ac2b9705 Add battery level migration docs 2024-01-12 17:51:03 +00:00
59dbd0aa0a Apply automatic changes 2024-01-12 17:46:38 +00:00
1e49de4094 Merge pull request #67 from house-of-abbey/66-fix-webhook-id-setting 2024-01-12 17:35:18 +00:00
9df93c0c23 Read only Webhook ID property
Amended some documentation.
2024-01-12 17:34:05 +00:00
ba40f5b3d1 Add renaming device docs 2024-01-12 17:31:19 +00:00
e9ce5a5c97 Add documentation for fixing the icon 2024-01-12 17:20:00 +00:00
825e863a68 Update Troubleshooting.md
Fixed revised curl command for send_battery.sh
2024-01-12 17:16:45 +00:00
827d0dbeec Merge pull request #53 from house-of-abbey/51-use-webhooks-for-reporting-battery-levels
Use webhooks for reporting battery
2024-01-11 22:46:10 +00:00
bc13fba3c0 Merge pull request #65 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 21:23:22 +00:00
bd242fe06c Restyled by prettier-markdown 2024-01-11 21:22:31 +00:00
1f626f0fdb Merge branch 'main' into 51-use-webhooks-for-reporting-battery-levels 2024-01-11 21:22:23 +00:00
d4588f02b9 update docs 2024-01-11 21:20:58 +00:00
22bb84e13b Handle errors for the second step 2024-01-11 20:48:46 +00:00
67731708b3 Update compile_sim.cmd
Specialised for testing Vivoactive3 under release conditions in order to check we are not running out of memory.
2024-01-11 20:04:52 +00:00
6a28cd8136 Merge pull request #62 from house-of-abbey/59-minor-fix-for-translation-script
Fix formatting in translation script output
2024-01-11 19:33:57 +00:00
ec2debd814 Merge pull request #64 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:36:16 +00:00
714da2d538 Restyled by whitespace 2024-01-11 18:23:58 +00:00
331fd2471e Merge branch 'main' into 51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:22:34 +00:00
cc56606105 Merge pull request #61 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels 2024-01-11 18:20:05 +00:00
307b1e0453 Merge pull request #63 from house-of-abbey/restyled/59-minor-fix-for-translation-script 2024-01-11 18:17:38 +00:00
65c275ae19 Restyled by yapf 2024-01-11 18:16:26 +00:00
58b5c7d0c4 Restyled by reorder-python-imports 2024-01-11 18:16:22 +00:00
59e3ae1441 Restyled by isort 2024-01-11 18:16:19 +00:00
82d69483d6 Restyled by black 2024-01-11 18:16:17 +00:00
5848cd4e17 Restyled by autopep8 2024-01-11 18:16:15 +00:00
139e4e0a96 add new lines to generated strings files 2024-01-11 18:14:30 +00:00
805a7aa075 Restyled by whitespace 2024-01-11 18:07:27 +00:00
807a4bb461 Apply automatic changes 2024-01-11 18:07:15 +00:00
de19fc94a7 2024-01-11 17:41:05 +00:00
a211565810 2024-01-11 17:37:18 +00:00
f155ab0925 Added error messages for first request 2024-01-11 17:27:52 +00:00
52967e87d4 Apply automatic changes 2024-01-11 11:10:47 +00:00
9f0ec9a2f8 Merge pull request #57 from house-of-abbey/56-fix-bad-translation-for-all-languages
56 fix bad translation for all languages
2024-01-11 10:50:24 +00:00
4b450065c8 Merge pull request #58 from house-of-abbey/restyled/56-fix-bad-translation-for-all-languages
Restyle 56 fix bad translation for all languages
2024-01-11 09:42:37 +00:00
d0ec4aa4d8 Restyled by whitespace 2024-01-11 09:41:45 +00:00
7074940579 Update corrections.xml
Taking a user's preferred translations, checking a second.
2024-01-11 09:38:52 +00:00
8133b434b7 Merge branch 'main' into 56-fix-bad-translation-for-all-languages 2024-01-11 09:37:13 +00:00
ac5f43af54 Merge pull request #55 from jjusko/main
Taking user's preferred translation.
2024-01-11 09:34:58 +00:00
e77e1a76b8 Apply automatic changes 2024-01-11 09:24:14 +00:00
96ae4b231a Update strings.xml 2024-01-11 09:10:59 +00:00
9e0b8e5145 Add files via upload 2024-01-11 09:46:34 +01:00
5f794388e6 Resolve review comments 2024-01-11 07:16:38 +00:00
ab071fd96d Merge pull request #54 from house-of-abbey/restyled/51-use-webhooks-for-reporting-battery-levels
Restyle Use webhooks for reporting battery
2024-01-10 23:12:45 +00:00
4190ce2362 Restyled by whitespace 2024-01-10 23:10:15 +00:00
42e0a1b543 Use webhooks for battery 2024-01-10 23:08:08 +00:00
4e6f8bcefc Update README.md
Added details of version 2.2.
2024-01-09 21:37:46 +00:00
70e0bc3ff1 Update README.md 2024-01-09 21:31:10 +00:00
b51e2aa2a4 Update BatteryReporting.md 2024-01-09 21:03:47 +00:00
e9de9e5890 Update README.md 2024-01-09 21:03:12 +00:00
376c72d7ba Merge pull request #49 from house-of-abbey/31-reduce-startup-delay
31 reduce startup delay
2024-01-09 20:27:26 +00:00
1db885e10f Merge branch '31-reduce-startup-delay' of ssh://github.com/house-of-abbey/GarminHomeAssistant into 31-reduce-startup-delay 2024-01-09 17:37:47 +00:00
40377e6887 Amended App settings screenshot 2024-01-09 17:37:41 +00:00
3b0b3fac32 Merge pull request #50 from house-of-abbey/restyled/31-reduce-startup-delay
Restyle 31 reduce startup delay
2024-01-09 11:02:51 +00:00
c1103d9325 Restyled by whitespace 2024-01-09 10:56:20 +00:00
864a832e69 GUI refresh amendments 2024-01-09 08:58:58 +00:00
9858ebbe73 Apply automatic changes 2024-01-08 00:18:56 +00:00
9724430168 Merge branch 'main' into 31-reduce-startup-delay 2024-01-08 00:14:05 +00:00
0a2d257421 Initial solution 2024-01-08 00:08:12 +00:00
92e6917589 Merge pull request #44 from house-of-abbey/42-uninternationalised-string-needs-adding-to-stringsxml
42 uninternationalised string needs adding to stringsxml
2024-01-07 21:27:29 +00:00
7c1082849d Merge pull request #46 from house-of-abbey/43-battery-reporting-stops-working-when-scrolling-trough-the-widget
Amend behaviour of background service for glances.
2024-01-07 20:59:37 +00:00
c78cd574b1 Merge pull request #47 from house-of-abbey/restyled/43-battery-reporting-stops-working-when-scrolling-trough-the-widget
Restyle Update Settings.mc
2024-01-07 19:13:01 +00:00
bbaee49825 Restyled by whitespace 2024-01-07 19:12:40 +00:00
874ced99c2 Update Settings.mc
Do not cancel the background service just because we show the app's glance.
2024-01-07 19:12:03 +00:00
97273155e1 Merge pull request #45 from house-of-abbey/restyled/42-uninternationalised-string-needs-adding-to-stringsxml
Restyle 42 uninternationalised string needs adding to stringsxml
2024-01-07 18:41:18 +00:00
0b35c24e65 Restyled by whitespace 2024-01-07 18:36:42 +00:00
6ae96cfd7c Apply automatic changes 2024-01-06 21:46:07 +00:00
c0787733b7 Amended as required
**/strings.xml need recreating server side.
2024-01-06 21:33:48 +00:00
24ebc72080 Documentation tidy
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:23:38 +00:00
3b10bb9272 Update BatteryReporting.md
Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:17:28 +00:00
e8242490fd Merge branch 'main' of ssh://github.com/house-of-abbey/GarminHomeAssistant 2024-01-06 21:16:59 +00:00
a8c9085dc4 Updated troubleshooting guide.
Now includes battery level transmission debug.

Co-Authored-By: Joseph Abbey <me@josephabbey.dev>
2024-01-06 21:16:53 +00:00
1fa15c58a0 Update README.md 2024-01-06 19:04:47 +00:00
25205e715e Update README.md 2024-01-01 20:05:36 +00:00
110 changed files with 2806 additions and 1751 deletions

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

@ -0,0 +1,2 @@
exclude:
- "**/*.md"

View File

@ -1,3 +1,5 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | Battery Reporting | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# Battery Reporting
From version 2.1 the application includes a background service to report the current device battery level and charging status back to Home Assistant. This is a feature that Garmin omitted to include with the Bluetooth connection.
@ -6,76 +8,51 @@ From version 2.1 the application includes a background service to report the cur
The main drawback of this solution is that the Garmin application must be run once with the feature enabled in the settings before reporting will start. Reporting continues after you have exited the application. This is a limit we cannot code around.
It should be as simple as starting the application (or widget). There should be a new device in the mobile app integration called `Garmin Watch` with the battery level and charging status.
[![Open your Home Assistant instance and show an integration.](https://my.home-assistant.io/badges/integration.svg)](https://my.home-assistant.io/redirect/integration/?domain=mobile_app)
If this is not the case, head over to the [troubleshooting page](Troubleshooting.md#watch-battery-level-reporting).
## Stop Reporting
To stop the reporting, the option must be turned off in the settings and then the application run once. Running the application then removes the background service.
To stop the reporting, the option must be turned off in the settings and then the application run once. Running the application then removes the background service. Both the enable and repeat time settings can be changed whilst the application is running (i.e. live) and the background service will be amended.
In both cases, the enable and repeat time settings can be changed whilst the application is running (i.e. live) and the background service will be amended.
## Renaming the device
## Listening for the `device_id`
When the device is first created, it will be called `Garmin Watch`. This can be changed in the mobile app integration settings (button below).
<img src="images/Battery_Event_Screenshot.png" width="600" title="Listening for battery events"/>
[![Open your Home Assistant instance and show an integration.](https://my.home-assistant.io/badges/integration.svg)](https://my.home-assistant.io/redirect/integration/?domain=mobile_app)
Select the device called `Garmin Watch` and then click on the edit icon in the top right corner. You can then change the name of the device to whatever you like, then press `UPDATE` and then `RENAME`.
![Rename device](images/rename_device.png)
![Rename entity ids](images/rename_device_2.png)
## Fixing the icon
In `configuration.yaml`:
```yaml
event_type: garmin.battery_level
data:
level: 45.072266
device_id: e1004acb747607bc205a6ff7bd05a4c12faf3d6d
is_charging: false
origin: REMOTE
time_fired: "2024-01-01T18:15:35.900991+00:00"
context:
id: 01HK33T06WW4D9NEXJ9F6SRYNY
parent_id: null
user_id: 35e0e5a7e4bc49e9a328743697c58b90
```
The `device_id` is consistent for our purposes. It does change between devices and also between the 'application' and 'widget' installations. Different device model simulators also vary the `device_id`. Here we want to extract `e1004acb747607bc205a6ff7bd05a4c12faf3d6d` for use in the sample YAML `trigger` above.
## Setting up the trigger to update the entity
The watch will send HTTP requests to HomeAssistant every 5+ minutes in a background service. The events produced by the HTTP requests can be listened for with a template entity. In this case we have two (battery level and is charging).
```yaml
- trigger:
- platform: "event"
event_type: "garmin.battery_level"
event_data:
device_id: "<device-id>"
sensor:
template:
- sensor:
- name: "<device-name> Battery Level"
unique_id: "<uid-0>"
unique_id: "<unique-id>"
device_class: "battery"
unit_of_measurement: "%"
state_class: "measurement"
state: "{{ trigger.event['data']['level'] }}"
icon: mdi:battery{% if trigger.event['data']['is_charging'] %}-charging{% endif %}{% if 0 < (trigger.event['data']['level'] | float / 10 ) | round(0) * 10 < 100 %}-{{ (trigger.event['data']['level'] | float / 10 ) | round(0) * 10 }}{% else %}{% if (trigger.event['data']['level'] | float / 10 ) | round(0) * 10 == 0 %}-outline{% else %}{% if trigger.event['data']['is_charging'] %}-100{% endif %}{% endif %}{% endif %}
attributes:
device_id: "<device-id>"
- trigger:
- platform: "event"
event_type: "garmin.battery_level"
event_data:
device_id: "<device-id>"
binary_sensor:
- name: "<device-name> is Charging"
unique_id: "<uid-1>"
device_class: "battery_charging"
state: "{{ trigger.event['data']['is_charging'] }}"
attributes:
device_id: "<device-id>"
state: "{{ states('sensor.<device>_battery_level') }}"
icon: "mdi:battery{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-charging{% endif %}{% if 0 < (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 < 100 %}-{{ (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 }}{% else %}{% if (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 == 0 %}-outline{% else %}{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-100{% endif %}{% endif %}{% endif %}"
```
1. Copy this yaml to your `configuration.yaml`.
2. Swap `<device-name>` for the name of your device (This can be anything and is purely for the UI). Swap `<uid-0>` and `<uid-1>` for two different unique identifiers (in the Studio Code Server these can be generated from the right click menu).
3. Open the [event dashboard](https://my.home-assistant.io/redirect/developer_events/) and start listening for `garmin.battery_level` events and when your recieve one copy the device id and replace `<device-id>` with it (to speed up this process you can close and reopen the GarminHomeAssistant app).
4. Restart HomeAssistant or reload the YAML [here](https://my.home-assistant.io/redirect/server_controls/).
## Adding a sample Home Assistant UI widget
A gauge for battery level with a chargin icon making use of [mushroom cards](https://github.com/piitaya/lovelace-mushroom), [card_mod](https://github.com/thomasloven/lovelace-card-mod) and [stack-in-card](https://github.com/custom-cards/stack-in-card):
A gauge for battery level with a charging icon making use of [mushroom cards](https://github.com/piitaya/lovelace-mushroom), [card_mod](https://github.com/thomasloven/lovelace-card-mod) and [stack-in-card](https://github.com/custom-cards/stack-in-card):
<img src="images/Battery_Guage_Screenshot.png" width="120" title="Battery Guage"/>
<img src="images/Battery_Guage_Screenshot.png" width="120" title="Battery Gauge"/>
In lovelace:
```yaml
type: custom:stack-in-card
@ -91,8 +68,8 @@ cards:
- type: conditional
conditions:
- condition: state
entity: binary_sensor.<device>_is_charging
state: 'on'
entity: binary_sensor.<device>_battery_is_charging
state: "on"
chip:
type: entity
icon_color: yellow
@ -107,8 +84,8 @@ cards:
- type: conditional
conditions:
- condition: state
entity: binary_sensor.<device>_is_charging
state: 'off'
entity: binary_sensor.<device>_battery_is_charging
state: "off"
chip:
type: entity
entity: sensor.<device>_battery_level
@ -121,7 +98,7 @@ cards:
}
- type: gauge
entity: sensor.<device>_battery_level
unit: '%'
unit: "%"
name: Watch
needle: false
severity:
@ -134,3 +111,17 @@ cards:
border: none !important;
}
```
N.B. `sensor.<device>_battery_level` will likely need to be changed to `sensor.<device>_battery_level_2` if you have fixed the icon as above.
## Migrating
You should remove your old template sensors before migrating to the new integration. You can do this by removing the `sensor.<device>_battery_level` and `binary_sensor.<device>_battery_is_charging` entities from `configuration.yaml` and then restarting Home Assistant or reloading the YAML.
[Here is the old configuration method for reference.](https://github.com/house-of-abbey/GarminHomeAssistant/blob/b51e2aa2a4afbc58ad466f3b81667d1cd252d091/BatteryReporting.md)
## Deletion
While all of the entries have the same name, you can identify which to delete by clicking through to its device which should have a changed name from when it was set up.
![Battery Device Deletion](images/Battery_Device_Deletion.png)

19
HISTORY.md Normal file
View File

@ -0,0 +1,19 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Battery Reporting](BatteryReporting.md) | [Trouble Shooting](TroubleShooting.md) | Version History
# Version History
| Version | Comment |
|:-------:|---------|
| 1.0 | Initial release for 26 devices. |
| 1.1 | Updated for 54 more devices, 80 in total. Scene support. Added vibrate acknowledgement for tap-based menu items. Falls back to a custom visual confirmation in the absence of 'toast' and vibrate support. Bug fix for large menus needing status updates. |
| 1.2 | Do not crash on zero items to update. Report unreachable URLs. Verify API URL does not have a trailing slash '/'. Increased HTTP response diagnosis. Reduced minimum API Level required from 3.3.0 to 3.1.0 to allow more device "part numbers" to be satisfied. |
| 1.3 | Tap for scripts was working in emulation but not on some phones. Decision is to make the 'service' field in the JSON compulsory for 'tap' menu items. This is a breaking change, but for many might be a fix for something not working correctly. Improve language support, we can now accept language corrections and prevent the automated translation of strings from clobbering manually refined entries. Thank you to two new contributors. |
| 1.4 | New lean user Interface with thanks to [Someone0nEarth](https://github.com/Someone0nEarth) for their contribution which is now the default. If you prefer the old style you can still select it in the settings. The provision of a 'service' tag is now not just heavily suggested by the JSON schema, it is enforced in code. With apologies to anyone suffering a breakage as a result. |
| 1.5 | <img src="images/confirmation_view.png" width="200" title="Confirmation View"/><br/>Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the Home Assistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. |
| 1.6 | Added a user configurable 'timeout' in seconds so that when no action is taken the application automatically closes, stopping the continuous polling for changes of status and hence saving the drain on the battery. This can be disabled with timeout=0. |
| 1.7 | Added timeout to confirmation views so that when used for security devices it does not linger when left unconfirmed. Thanks to [Jan Schneider](https://github.com/j-a-n) for the contribution. Known bug for devices not supporting [`WatchUi.getCurrentView()`](https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi.html#getCurrentView-instance_function) API call which is only available on API Level 3.4.0, e.g. Vivoactive 4S. |
| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, the settings have been internationalised, and there's a bug fix for older devices when trying to display a helpful error message but instead the application crashed. This version has come from a significant collaboration with [Someone0nEarth](https://github.com/Someone0nEarth). |
| 2.1 | Deployment of an idea to provide Home Assistant with access to the watch battery level. Using this requires [significant setup](BatteryReporting.md) on the Home Assistant configuration and hence is detailed separately. Due to this, the default state for this battery option is _off_. Changed the application settings user interface to be more intuitive, and hence amended the way settings are managed in the background. |
| 2.2 | Adds a feature to cache the menu configuration and save the time taken for an HTTP request to fetch it. You as the user are responsible for managing the cache by clearing it when you update your configuration. Improvement to widget root display updates. Bug fix for battery level reporting when in the glance carousel. Fixed an uninternationalised string, "Execute". Unfixed issue with battery level updates when the user is not an administrator. |
| 2.3 | Fix for battery level updates where previously the function only worked for administrator accounts. The new solution is based on Webhooks and is simpler to implement on 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. |

144
README.md
View File

@ -1,39 +1,44 @@
Home | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Battery Reporting](BatteryReporting.md) | [Trouble Shooting](TroubleShooting.md) | [Version History](HISTORY.md)
# GarminHomeAssistant
<img src="images/Actual_Venu2_Theme.jpg" width="200" title="Venu 2"/>
A Garmin application to provide a "dashboard" to control your devices via [Home Assistant](https://www.home-assistant.io/). The application will never be as fully fledged as a Home Assistant dashboard, so it is designed to be good enough for the simple and essential things. Those things that can be activated via an on/off toggle or a tap. That should cover lights, switches, and anything requiring a single press such as an automation. For anything more complicated, e.g. thermostat, it would always be quicker and simpler to reach for your phone or tablet... or the device's own remote control!
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [Home Assistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the toggle menu item. It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
The application is designed around a simple scrollable menu where menu items have been extended to interface with the [Home Assistant API](https://developers.home-assistant.io/docs/api/rest/), e.g. to get the status of switches or lights for display on the toggle menu item, or a text status for an entity (template item). It is possible to nest menus, so there is a menu item to open a sub-menu. This can be arbitrarily deep and nested in the format of a tree of items, although you need to consider if reaching for your phone becomes quicker to select the device what you want to control.
It is important to note that your Home Assistant instance will need to be accessible via HTTPS with public SSL or all requests from the Garmin will not work. This cannot be a self-signed certificate, it must be a public certificate. You can get one for free from [Let's Encrypt](https://letsencrypt.org/) or you can pay for [Home Assistant cloud](https://www.nabucasa.com/).
**The intended audience for this application are those comfortable with configuring a 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.)
**If you are struggling with getting the application to work, please consult the [trouble shooting](TroubleShooting.md#menu-configuration-url) guide first.**
**If you are struggling with getting the application to work, please consult the [trouble shooting](Troubleshooting.md) guide first.**
## Widget or Application?
As of version 2.0, there are now two installable versions. For older devices before applications supported 'glances', there is a now widget version. These two version must be downloaded separately due to the way the Connect IQ App Store requires them to have separate application IDs. Therefore you need to choose which you want up front. Here how they compare.
As of version 2.0, there are now two installable versions. For older devices before applications supported 'glances', there is a now widget version. These two version must be downloaded separately due to the way the Connect IQ App Store requires them to have separate application IDs. Therefore you need to choose which you want up front. Here's how they compare.
| Version | Explanation |
|------------------------|-------------|
| Application (original) | For newer devices that allow glance views in their applications (e.g. Venu2), the GarminHomeAssistant application can be started either from a glance (with only the application name presently, no status) 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.<hr><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. Venu1) 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.<hr><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. |
| 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.** |
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 too.
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.
## Dashboard Definition
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [Home Assistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantage here are:
Setup for this menu is more complicated than the Connect IQ settings menu really allows you to specify. In order to make the dashboard easily configurable and easy to change, we have provided an external mechanism for specifying the menu layout, a JSON file you write, retrieved from a URL you specify. JSON was chosen over YAML because Garmin can parse JSON HTTP GET responses into its own internal dictionary, it cannot parse YAML, hence a choice of one really. Note that JSON and YAML are essentially a 1:1 format mapping except JSON does not have comments. We recommend you take advantage of [Home Assistant's own web server](https://www.home-assistant.io/integrations/http/#hosting-files) to provide the JSON definition. The advantages of this are:
1. the file is as public as you make your Home Assistant,
2. the file is editable within Home Assistant via "Studio Code Server", and
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`.
Schema verification is a big part of this design choice. If the application cannot read your menu definition, there's a limited amount of debug it can reasonable provide on a small screen. That responsibility now falls to you and the schema checker for help.
Schema verification is a big part of this design choice. If the application cannot read your menu definition, there's a limited amount of debug it can reasonably provide on a small screen. That responsibility now falls to you and the schema checker for help.
Example schema as shown in the images:
Example schema:
```json
{
@ -60,7 +65,6 @@ Example schema as shown in the images:
"type": "toggle"
},
{
"entity": "menu.each_lounge_light",
"name": "Each Lounge Light",
"title": "Lounge",
"type": "group",
@ -112,35 +116,40 @@ Example schema as shown in the images:
}
```
NB. Entity names are not real in case anyone's a hacker.
NB. Entity names are not real in case anyone's a hacker ;-).
The example above illustrates how to configure:
* Light or switch toggles
* Automation enable toggles
* Lights or switches (toggle), <img src="images/toggle_icon.png" height="20">
* Enables for automations (toggle), <img src="images/toggle_icon.png" height="20">
* Script invocation (tap)
* Service invocation, e.g. Scene setting, (tap)
* A sub-menu to open (tap)
* A sub-menu to open (group)
* You can also display the status of devices (template) and add an optional 'tap' action. However that's a bit more involved and has its own [examples page](examples/Templates.md). Add those later!
The example JSON shows an example usage of each of these Home Assistance entity types. Presently, an automation is the only one that can be either a 'tap' or a 'toggle'.
The following table indicates how Home Assistant entity types can map to the Garmin applications menu types. Presently, an automation is the only one that can be either a 'tap' or a 'toggle'.
| HA Type | Tap | Toggle |
|------------|:---:|:------:|
| Switch | ❌ | ✅ |
| Light | ❌ | ✅ |
| Automation | ✅ | ✅ |
| Script | ✅ | ❌ |
| Scene | ✅ | ❌ |
| HA Entity Type | Tap | Toggle | Template (custom status text with optional tap action) |
|------------------|:---:|:------:|:------------------------------------------------------:|
| Switch | ❌ | ✅ | ✅<br>Separate on and off, or anything in between |
| Light | ❌ | ✅ | ✅<br>Separate on and off, or anything in between |
| Automation | ✅ | ✅ | ✅ |
| Script | ✅ | ❌ | ✅ |
| Scene | ✅ | ❌ | ✅ |
| Sensor | ❌ | ❌ | ✅ |
| Binary Sensor | ❌ | ❌ | ✅ |
| Any other entity | ❌ | ❌ | ✅ |
| Any service | ✅ | ❌ | ✅ |
NB. All 'tap' items must specify a 'service' tag.
Templates need separate HTTP requests to update their status and send an action. Only the toggle items have the on/off <img src="images/toggle_icon.png" height="20"> icon. A Tap does not require a status update and hence does not require the associated HTTP GET request. NB. All 'tap' items must specify a 'service' tag.
Possible future extensions might include specifying the alternative texts to use instead of "On" and "Off", e.g. "Locked" and "Unlocked" (but wouldn't having locks operated from your watch be a security concern ;-))
You can now specify alternative texts to use instead of "On" and "Off", e.g. "Locked" and "Unlocked" or "Open" and "Closed" through the use of a [template menu item](examples/Templates.md). But wouldn't having locks operated from your watch be a security concern ;-) ?
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure Home Assistant. With a submenu, there's a difference between "title" and "name". The "name" goes on the menu item, and the "title" at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning.
The [schema](https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json) is checked by using a URL directly back to this GitHub source repository, so you do not need to install that file. You can just copy & paste your entity names from the YAML configuration files used to configure Home Assistant. With a submenu, there's a difference between "title" and "name". The "name" goes on the menu item, and the "title" at the head of the submenu. If your dashboard definition fails to meet the schema, the application will simply drop items with the wrong field names without warning to protect itself.
### Old deprecated format
Version 1.5 brought in a change to the JSON schema so the follow old format remains useable but is no longer favoured. The schema now marks it as 'deprecated' to nudge people over.
Version 1.5 brought in a change to the JSON schema so the following old format remains useable but is no longer favoured. The schema now marks it as 'deprecated' to nudge people over.
```json
{
@ -166,32 +175,36 @@ The above should be replaced by the following:
This allows the `confirm` field to be accommodated in the `tap_action` along side the `service` tag, and follows the Home Assistant YAML format more closely.
### More Examples
- [Switches](examples/Switches.md)
- [Actions](examples/Actions.md)
- [Templates](examples/Templates.md)
## Editing the JSON file
You have options. The first is what we use.
1. **Best!** 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.
2. Locally installed VSCode, or if not installed,
3. try the on-line version at https://vscode.dev/.
3. try 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 present with on your device.
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.
Make sure you can browse to the URL of your JSON file in a standard web browser to make sure it is accessible.
## API Key Creation
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on Home Assistant. You will need a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). This is not obvious and is bound to your own Home Assistant account.
Follow the menu sequence: `HA -> user profile -> Long-lived access tokens`. Make sure you save the generated token before dismissing it. You may like to perform this task on your phone so that you can copy and paste it (and message yourself a copy too ;-).
Having created your JSON definition for your dashboard, you need to create an API key for your personal account on Home Assistant. You will need a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token). This is not obvious to find and is bound to your own Home Assistant account. Follow the menu sequence: `HA -> user profile -> Long-lived access tokens`. Make sure you save the generated token before dismissing it.
![Long-Lived Access Token](images/Long_Lived_Access_Tokens.png)
Having created that token, before you dismiss the dialogue box with the value you will never see again, copy it somewhere safe. You need to paste this into the Garmin Application's settings.
Having created that token, before you dismiss the dialogue box with the value you will never see again, copy it somewhere safe. You need to paste this into the Garmin Application's settings. You may like to perform this task on your phone so that you can copy and paste it (and message yourself a copy too ;-)).
## API URL
If you are using Nabu Casa then your Cloud API URL can be found by looking up your URL via `HA -> Settings -> Home Assistant Cloud -> Remote Control -> Nabu Casa URL`.
If you are using [Nabu Casa](https://www.nabucasa.com/) then your Cloud API URL can be found by looking up your URL via `HA -> Settings -> Home Assistant Cloud -> Remote Control -> Nabu Casa URL` and don't forget to add `/api` to the end of the copied string.
![Nabu Casa Remote Control](images/Nabu_Casa_Remote_Control.png)
@ -199,11 +212,9 @@ If you have built your own infrastructure, you really don't need any assistance
## Settings
Unfortunately the Settings dialogue box in the Garmin IQ application times out in Android when you go to a different screen (browser for example). When you go back to the Connect IQ application (select the view again) the settings dialogue box is broken and you have to open the Settings again, so you will need to save the settings every time before you switch applications to avoid losing the information you just put in.
Unfortunately the Settings dialogue box in the Garmin IQ application "times out" in Android when you go to a different screen (a browser for example). When you go back to the Connect IQ application (select the view again) the settings dialogue box is broken and you have to open the Settings again, so you will need to save the settings every time before you switch applications to avoid losing the information you just put in. We recommend you can use an application like [Microsoft's "Phone Link"](https://apps.microsoft.com/detail/9NMPJ99VJBWV?hl=en-gb&gl=US) that allows you to *copy and paste* between your PC and your phone.
You can instead use an application like [Microsoft's "Phone Link"](https://apps.microsoft.com/detail/9NMPJ99VJBWV?hl=en-gb&gl=US) that allows you to copy and paste between your PC and your phone.
**Please, please, please!** Copy and paste your API key and all URLs, do not retype as it will be wrong.
**Please, please, please!** *Copy and paste* your API key and all URLs, do not retype them as they will be wrong.
<img src="images/GarminHomeAssistantSettings.png" width="400" title="Application Settings"/>
@ -213,16 +224,15 @@ You can instead use an application like [Microsoft's "Phone Link"](https://apps.
You should now have a working application on your watch and be able to operate your Home Assistant devices for as long as your watch is within Bluetooth range of your phone.
The first toggle option selects between two menu presentations as follows:
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.
| Menu Type | Image | Description |
|-----------------|------------------------------------------------------------------------|-------------|
| Icons (default) | <img src="images/Venu2_LeanUI.png" width="200" title="Venu 2"/> | "Lean User Interface" version removing the second row of text in favour of icons. Tap icons are blue with a pointing finger, menu items has three dots as favours by many graphical user interfaces. |
| Labels | <img src="images/Venu2_Original.png" width="200" title="Venu 2"/> | Initial version that had a second row of text. This extra text has yet to add much value. Menu and Tap actions are distinguished by text, and the toggle status is duplicated by text. A future version could possibly offer the means to customise the toggle menu item text, hence this option has not been deprecated yet. |
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 second toggle setting is for "text alignment" and provides finer adjustment for right-to-left languages. Perhaps this could be made automatic based on device language.
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?
The third toggle setting is for the Widget version of the application only. It 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.
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
@ -236,19 +246,17 @@ The application will display a 'toast' showing Home Assistant's friendly name of
Home Assistant will inevitably change the state of devices you are also controlling via your Garmin. The Garmin application does not maintain a web socket to listen for changes. Instead it must poll the Home Assistant API with your key. Therefore the application is not that responsive to changes. Instead there will be a delay of multiples of 100 ms per item whose status needs to be checked and amended.
The per toggle item delay is caused by a queue of responses to web requests filling up a queue and giving a [`Communications.BLE_QUEUE_FULL`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html). response code. For a Venu 2 Garmin watch an API call delay of 600 ms was found to be sustainable (500 ms was still too fast). The code now chains a sequence of updates, so as one finishes it invokes the next item's update. The more items requiring a status update that you pack into your dashboard, the slower each individual item will be updated!
The per toggle item delay is caused by a queue of responses to web requests. The responses fill up a buffer and in early testing we observed [`Communications.BLE_QUEUE_FULL`](https://developer.garmin.com/connect-iq/api-docs/Toybox/Communications.html) response codes. For a Venu 2 Garmin watch an API call delay of 600 ms was found to be sustainable (500 ms was still too fast). The code now chains a sequence of updates, so as one finishes it invokes the next item's update. **The more items requiring a status update that you pack into your dashboard, the slower each individual item will be updated!**
The thinking here is that the watch application will only ever be open briefly not persistently, so the delay in picking up state changes won't be observed often for any race condition between two controllers.
As a consequence of this update mechanism, if you request changes too quickly you will be notified that your device cannot keep up with the rate of API responses and you will have to dismiss the error in order to continue. The is a _feature not a bug_!
The thinking here is that the watch application will only ever be open briefly not persistently, so the delay in picking up state changes won't be observed often for any race condition between two controllers. As a consequence of this update mechanism, if you request changes too quickly you will be notified that your device cannot keep up with the rate of API responses and you will have to dismiss the error in order to continue. The is a _feature not a bug_!
## Changes to the (JSON) Dashboard Definition
When you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition, but it is not automatic.
When you change the JSON file defining your dashboard, you must exit the application and the reopen it. It only takes a matter of a few seconds to pick up the new definition, but it is not automatic. *Don't forget* you may need to choose to clear your cached menu.
## Submitting Corrections for Translations
Initially all text has been created in English, and a [Python script](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/translate.py) (Google Translate under the hood) has been used to create the first version of all translations. We have been pleased to accept better translations from native language speakers, **thank you**. If you would like to submit improved translations, our preference is you do so via a Git pull request. If you are not comfortable doing this, then just raise an issue and someone will eventually pick the request up.
Initially all text has been created in English, and a [Python script](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/translate.py) (Google Translate under the hood) has been used to create the first version of all translations. We have been pleased to accept better translations from native language speakers, *thank you*. If you would like to submit improved translations, our preference is you do so via a [Git pull request](https://github.com/house-of-abbey/GarminHomeAssistant/pulls). If you are not comfortable doing this, then just raise an issue and someone will eventually pick the request up.
In order to submit a language correction please create an XML file called `corrections.xml` in the same directory as your language containing the corrected text. The format of the XML file follows that of `strings.xml`. As an example here are some corrected French translations found in directory [`resources-fre/strings/corrections.xml`](https://github.com/house-of-abbey/GarminHomeAssistant/tree/main/resources-fre/strings/corrections.xml):
@ -260,30 +268,20 @@ In order to submit a language correction please create an XML file called `corre
</strings>
```
The `id` attribute values are taken from the same names used in [`strings.xml`](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/resources-fre/strings/strings.xml). Not all `id` values need to be specified as missing `id`s will then use automatic translations. If the existing convention is followed then:
The `id` attribute values are taken from the same names used in [`strings.xml`](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/resources-fre/strings/strings.xml). **Not all `id` values need to be specified as missing `id`s will then use automatic translations.** If the existing convention is followed then:
* The Python script will use the corrections in preference to translating, and
* Your pull request will be honoured without comment as we will take your corrections on trust.
## Battery Level Reporting
The application and widget both now include a background service to report your watch's battery level and charging status. This requires [significant setup](BatteryReporting.md) via YAML in Home Assistant to work. This is not for the feint hearted! We are keen to received improvements, but are reluctant to provide much in the way of support. The Home Assistant community, in particular the posts on the forum at [Bluetooth Battery Levels (Android)](https://community.home-assistant.io/t/bluetooth-battery-levels-android/661525), are your best source of support for this feature.
## Version History
| Version | Comment |
|:-------:|---------|
| 1.0 | Initial release for 26 devices. |
| 1.1 | Updated for 54 more devices, 80 in total. Scene support. Added vibrate acknowledgement for tap-based menu items. Falls back to a custom visual confirmation in the absence of 'toast' and vibrate support. Bug fix for large menus needing status updates. |
| 1.2 | Do not crash on zero items to update. Report unreachable URLs. Verify API URL does not have a trailing slash '/'. Increased HTTP response diagnosis. Reduced minimum API Level required from 3.3.0 to 3.1.0 to allow more device "part numbers" to be satisfied. |
| 1.3 | Tap for scripts was working in emulation but not on some phones. Decision is to make the 'service' field in the JSON compulsory for 'tap' menu items. This is a breaking change, but for many might be a fix for something not working correctly. Improve language support, we can now accept language corrections and prevent the automated translation of strings from clobbering manually refined entries. Thank you to two new contributors. |
| 1.4 | New lean user Interface with thanks to [Someone0nEarth](https://github.com/Someone0nEarth) for their contribution which is now the default. If you prefer the old style you can still select it in the settings. The provision of a 'service' tag is now not just heavily suggested by the JSON schema, it is enforced in code. With apologies to anyone suffering a breakage as a result. |
| 1.5 | <img src="images/confirmation_view.png" width="200" title="Confirmation View"/><br/>Added an optional confirmation dialogue view to prevent accidental execution of actions on mistaken tap. This also brings a change in the JSON schema to allow an optional field to specify that the confirmation should be used for a menu item. As we are now maturing and adding features we have decided to mitigate breaking changes to the JSON schema by being more careful to adopt the Home Assistant schema (noting there is a 1:1 mapping between YAML and JSON). This change does deprecate the top level `service` tag in favour of `tag_action` containing multiple fields including `service` & `confirm`. Users should migrate to the new format for the new functionality, but the timescale for actual deprecation are long and undecided. |
| 1.6 | Added a user configurable 'timeout' in seconds so that when no action is taken the application automatically closes, stopping the continuous polling for changes of status and hence saving the drain on the battery. This can be disabled with timeout=0. |
| 1.7 | Added timeout to confirmation views so that when used for security devices it does not linger when left unconfirmed. Thanks to [Jan Schneider](https://github.com/j-a-n) for the contribution. Known bug for devices not supporting [`WatchUi.getCurrentView()`](https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi.html#getCurrentView-instance_function) API call which is only available on API Level 3.4.0, e.g. Vivoactive 4S. |
| 2.0 | A significant code base change to enable both a 'widget' version for older devices, e.g. Venu (1), and an application with a glance, e.g. Venu2. These two versions must now be distributed under separate application IDs, but they have the same code base. A further 20 more devices are now supported, the settings have been internationalised, and there's a bug fix for older devices when trying to display a helpful error message but instead the application crashed. This version has come from a significant collaboration with [Someone0nEarth](https://github.com/Someone0nEarth). |
| 2.1 | Deployment of an idea to provide Home Assistant with access to the watch battery level. Using this requires [significant setup](BatteryReporting.md) on the Home Assistant configuration and will be detailed separately. Due to this, the default state for this battery option is _off_. Changed the application settings user interface to be more intuitive, and hence amended the way settings are managed in the background. |
## Known Issues
1. On some (old) devices (e.g. Vivoactive 3, Fexix 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. 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.
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!**
<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. 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!**

271
TroubleShooting.md Normal file
View File

@ -0,0 +1,271 @@
[Home](README.md) | [Switches](examples/Switches.md) | [Actions](examples/Actions.md) | [Templates](examples/Templates.md) | [Battery Reporting](BatteryReporting.md) | Trouble Shooting | [Version History](HISTORY.md)
# Troubleshooting Guides
## Watch Menu and API
With either of the following setups, there are inevitably some problems along the way. GarminHomeAssistant is careful to rely only on having working URLs. Getting them working is the user's responsibility. However, we have developed some fault finding tools.
### Nabu Casa Setup
You can purchase cloud-based access to your Home Assistant from [Nabu Casa](https://www.nabucasa.com/), and then your setup will look something like this.
![Nabu Casa Setup](images/nabu_casa_setup.png)
- Your API URL would be of the format `https://<id>.ui.nabu.casa/api`
- Your Garmin Watch Menu would be of the format Menu: `https://<id>.ui.nabu.casa/local/garmin/menu.json`
Where `<id>` is your personal Nabu Casa account ID.
### Do It Yourself Setup
Before Nabu Casa, or if you wanted to manage your own infrastructure, you might have something like the following:
![Do It Yourself Setup](images/do_it_yourself_setup.png)
Now you have to manage:
- Dynamic DNS
- Public access via router port forwarding
- Security via HTTPS and URL forwarding
- Certificates for HTTPS via say [Let's Encrypt](https://letsencrypt.org/) (an Nginx proxy web server helps here)
- Proxy allow list in `configuration.yaml` as follows:
```yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.xx.xx # Server IP - AMEND THIS
- 172.30.32.0/23 # Docker IPs for NGINX
- 172.30.33.0/24 # SSL proxy server
- 172.16.0.0/12 #
```
### Menu Configuration URL
This URL is very simple, you should be able to read the contents returned in a standard web browser.
![Browser Address Bar URL](images/menu_url.png)
(Other browsers are available...)
The browser page should then display the JSON string you saved to the file on the web server. The point is this is a simple HTTP GET request with no bells and whistles.
The menu configuration can be hosted anywhere, it does not have to be on the Home Assistant web server. Just as long as it is reachable from your phone from which you Bluetooth connect to your watch, or you watch if it has direct Internet access.
### Home Assistant API URL
This is slightly trickier owning to the need to supply the API key. Here are three ways you can test your API URL is correctly configured. If successful, each of these should produce a JSON string output looking like:
```json
{ "message": "API running." }
```
#### API: Linux, MacOS, UNIX, Cygwin etc
Save the following as a file called `api_test.sh`, edit to include your personal values for the variables, `chmod +x api_test.sh` and then execute with `./api_test.sh`.
```shell
#!/bin/bash
API_KEY="<Your API key>"
URL="https://<Your Domain>/api"
curl -s -X GET \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
${URL}/
```
#### API: MS Windows
Save the following as a file called `api_test.cmd`, edit to include your personal values for the variables and then double click.
```cmd
@echo off
set API_KEY=<Your API key>
set URL=https://<Your Domain>/api
curl -s -X GET ^
-H "Authorization: Bearer %API_KEY%" ^
-H "Content-Type: application/json" ^
%URL%/
echo.
pause
```
![API Test MS-DOS Output](images/api_test_dos_output.png)
#### API: On-line
There's an online way of testing the API URL too, thanks to [REQBIN](https://reqbin.com/post-online). This has less setup and it can be saved if you log into the web site.
![API Test REQBIN](images/api_test_online.png)
### Top Problems
1. Failure to copy & paste keys and URLs leading to minor and hard to see errors in strings, even with protestations they are the same! (No they weren't...)
2. Accessibility of URLs, hence the above help guide.
## Watch Battery Level Reporting
For this you will need to have already got the main application or widget working with a menu in order to prove that the API calls are successful. We have proven this works with both our home brew infrastructure as well as Nabu Casa. Now with a script similar to one of the following two, you should be able to fake the watch API call and verify receipt by Home Assistant.
#### Battery: Linux, MacOS, UNIX, Cygwin etc
Assume a file called: `send_battery.bash`
```shell
#!/bin/bash
#
# battery% charging {0|1}
# ./send_battery.bash 19 0
#
WEBHOOK_ID="<Your Webhook ID>"
URL="https://<Your Domain>/api"
level=${1:-50}
is_charging=${2:-0}
echo "Battery Level = ${level}"
if [ ${is_charging} -eq 1 ]; then
is_charging=true
else
is_charging=false
fi
echo "Battery Charging? = ${is_charging}"
echo ""
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{ "type": "update_sensor_states", "data": [ {"state": '${level}',"type": "sensor","unique_id": "battery_level"}, {"state": '${is_charging}',"type": "binary_sensor","unique_id": "battery_is_charging"} ] }' \
${URL}/webhook/${WEBHOOK_ID}
```
Execute:
```
$ ./send_battery.bash 45 1
```
The output looks like this:
```
Battery Level = 45
Battery Charging? = true
{
"battery_level": {
"success": true
},
"battery_is_charging": {
"success": true
}
}
```
NB. The device ID can be any string for the purposes of this testing. Your Garmin device will choose this ID for you when it submits the readings.
#### Battery: MS Windows
Assume a file called: `home_assistant_battery_level.cmd`
```cmd
@echo off
rem battery% charging {0|1}
rem ./home_assistant_battery_level 19 0
rem
set WEBHOOK_ID=<Your Webhook ID>
set URL=https://<Your Domain>/api
if [%1] == [] (
set level=50
) else (
set level=%1
)
if [%1] == [] (
set is_charging=0
) else (
set is_charging=%2
)
echo "Battery Level = %level%"
if "%is_charging%"=="1" (
set is_charging=true
) else (
set is_charging=false
)
echo "Battery Charging? = %is_charging%"
echo.
curl -s -X POST ^
-H "Content-Type: application/json" ^
-d "{ \"type\": \"update_sensor_states\", \"data\": [ {\"state\": %level%,\"type\": \"sensor\",\"unique_id\": \"battery_level\"}, {\"state\": %is_charging%,\"type\": \"binary_sensor\",\"unique_id\": \"battery_is_charging\"} ] }" ^
%URL%/webhook/%WEBHOOK_ID%
echo.
pause
```
Execute:
```
> home_assistant_battery_level.cmd 41 1
```
The output looks like this:
```
"Battery Level = 41"
"Battery Charging? = true"
{
"battery_level": {
"success": true
},
"battery_is_charging": {
"success": true
}
}
Press any key to continue . . .
```
NB. The device ID can be any string for the purposes of this testing. Your Garmin device will choose this ID for you when it submits the readings.
#### Battery: On-line
There's an online way of testing the API URL too, thanks to [REQBIN](https://reqbin.com/post-online). This has less setup and it can be saved if you log into the web site.
URL for copy & paste:
```
https://<Your Domain>/api/webhook/<Your Webhook ID>
```
![API Test REQBIN](images/api_test_online_battery.png)
JSON for copy & paste:
```json
{
"type": "update_sensor_states",
"data": [
{
"state": 40,
"type": "sensor",
"unique_id": "battery_level"
},
{
"state": true,
"type": "binary_sensor",
"unique_id": "battery_is_charging"
}
]
}
```

View File

@ -1,107 +0,0 @@
# Troubleshooting Guide
With either of the following setups, there are inevitably some problems along the way. GarminHomeAssistant is careful to rely only on having working URLs. Getting them working is the user's responsibility. However, we have developed some fault finding tools.
## Nabu Casa Setup
You can purchase cloud-based access to your Home Assistant from [Nabu Casa](https://www.nabucasa.com/), and then your setup will look something like this.
![Nabu Casa Setup](images/nabu_casa_setup.png)
* Your API URL would be of the format `https://<id>.ui.nabu.casa/api`
* Your Garmin Watch Menu would be of the format Menu: `https://<id>.ui.nabu.casa/local/garmin/menu.json`
Where `<id>` is your personal Nabu Casa account ID.
## Do It Yourself Setup
Before Nabu Casa, or if you wanted to manage your own infrastructure, you might have something like the following:
![Do It Yourself Setup](images/do_it_yourself_setup.png)
Now you have to manage:
* Dynamic DNS
* Public access via router port forwarding
* Security via HTTPS and URL forwarding
* Certificates for HTTPS via say [Let's Encrypt](https://letsencrypt.org/) (Nginx web server helps here)
* Proxy allow list in `configuration.yaml` as follows:
```yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.xx.xx # Server IP - AMEND THIS
- 172.30.32.0/23 # Docker IPs for NGINX
- 172.30.33.0/24 # SSL proxy server
- 172.16.0.0/12 #
```
## Menu Configuration URL
This URL is very simple, you should be able to read the contents returned in a standard web browser.
![Browser Address Bar URL](images/menu_url.png)
(Other browsers are available...)
The browser page should then display the JSON string you saved to the file on the web server. The point is this is a simple HTTP GET request with no bells and whistles.
The menu configuration can be hosted anywhere, it does not have to be on the Home Assistant web server. Just as long as it is reachable from your phone from which you Bluetooth connect to your watch, or you watch if it has direct Internet access.
## Home Assistant API URL
This is slightly trickier owning to the need to supply the API key. Here are three ways you can test your API URL is correctly configured. If successful, each of these should produce a JSON string output looking like:
```json
{"message":"API running."}
```
### Linux, MacOS, UNIX, Cygwin etc
Save the following as a file called `api_test.sh`, edit to include your personal values for the variables, `chmod +x api_test.sh` and then execute with `./api_test.sh`.
```shell
#!/bin/bash
API_KEY="<Your API key>"
URL="https://<Your Domain>/api"
curl -s -X GET \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
${URL}/
```
### MS Windows
Save the following as a file called `api_test.cmd`, edit to include your personal values for the variables and then double click.
```shell
@echo off
set API_KEY=<Your API key>
set URL=https://<Your Domain>/api
curl -s -X GET ^
-H "Authorization: Bearer %API_KEY%" ^
-H "Content-Type: application/json" ^
%URL%/
echo.
pause
```
![API Test MS-DOS Output](images/api_test_dos_output.png)
### On-line
There's an online way of testing the API URL too, thanks to [REQBIN](https://reqbin.com/post-online). This has less setup and it can be saved if you log into the web site.
![API Test MS-DOS Output](images/api_test_online.png)
## Top Problems
1. Failure to copy & paste keys and URLs leading to minor and hard to see errors in strings, even with protestations they are the same! (No they weren't...)
2. Accessibility of URLs, hence the above help guide.

View File

@ -27,8 +27,15 @@ 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
rem Device for simulation
set DEVICE=venu2
rem set DEVICE=venu2
set DEVICE=vivoactive3
rem Application
rem set JUNGLE=monkey.jungle
rem Or Widget
set JUNGLE=monkey-widget.jungle
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
@ -97,10 +104,11 @@ 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.jungle ^
--jungles %SRC%\monkey-widget.jungle ^
--private-key %SRC%\..\developer_key ^
--device %DEVICE%_sim ^
--warn
--warn ^
--release
if %ERRORLEVEL% equ 0 (
%SDK_PATH%\monkeydo.bat %SRC%\bin\HomeAssistant.prg %DEVICE%

View File

@ -2,34 +2,86 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"title": { "type": "string" },
"items": { "$ref": "#/$defs/items" },
"required": ["title", "items"],
"additionalProperties": false
"title": {
"type": "string"
},
"items": {
"$ref": "#/$defs/items"
},
"$schema": {
"type": "string"
}
},
"required": ["title", "items"],
"additionalProperties": false,
"$defs": {
"toggle": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "title": "Your familiar name", "type": "string" },
"entity": {
"$ref": "#/$defs/entity"
},
"name": {
"title": "Your familiar name",
"type": "string"
},
"type": {
"title": "Menu item type",
"description": "One of 'tap, 'toggle' or 'group'.",
"description": "One of 'tap', 'template', 'toggle' or 'group'.",
"const": "toggle"
},
"tap_action": {
"type": "object",
"properties": {
"confirm": {
"$ref": "#/$defs/confirm"
}
},
"additionalProperties": false
}
},
"required": ["entity", "name", "type"],
"additionalProperties": false
},
"template": {
"type": "object",
"properties": {
"entity": {
"$ref": "#/$defs/entity"
},
"name": {
"title": "Your familiar name",
"type": "string"
},
"content": {
"title": "What to display (template)",
"type": "string"
},
"type": {
"title": "Menu item type",
"description": "One of 'tap', 'template', 'toggle' or 'group'.",
"const": "template"
},
"tap_action": {
"$ref": "#/$defs/tap_action"
}
},
"required": ["name", "content", "type"],
"additionalProperties": false
},
"tap": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "title": "Your familiar name", "type": "string" },
"entity": {
"$ref": "#/$defs/entity"
},
"name": {
"title": "Your familiar name",
"type": "string"
},
"type": {
"title": "Menu item type",
"description": "One of 'tap, 'toggle' or 'group'.",
"description": "One of 'tap', 'template', 'toggle' or 'group'.",
"const": "tap"
},
"service": {
@ -38,58 +90,105 @@
"title": "Schema change:",
"description": "Use 'tap_action' instead to mirror Home Assistant."
},
"tap_action": { "$ref": "#/$defs/action" }
"tap_action": {
"$ref": "#/$defs/tap_action"
}
},
"oneOf": [
{ "required": ["entity", "name", "type", "service"] },
{ "required": ["entity", "name", "type", "tap_action"] }
{
"required": ["name", "type", "service"]
},
{
"required": ["name", "type", "tap_action"]
}
],
"additionalProperties": false
},
"menu": {
"group": {
"type": "object",
"properties": {
"entity": { "$ref": "#/$defs/entity" },
"name": { "title": "Your familiar name", "type": "string" },
"title": { "type": "string" },
"entity": {
"$ref": "#/$defs/entity",
"type": "string",
"pattern": "^[^.]+\\.[^.]+$",
"deprecated": true,
"title": "Schema change:",
"description": "'entity' is no longer necessary and should now be removed."
},
"name": {
"title": "Menu item's familiar name.",
"type": "string"
},
"title": {
"title": "Sub menu's title once displayed.",
"type": "string"
},
"type": {
"title": "Menu item type",
"description": "One of 'tap, 'toggle' or 'group'.",
"description": "One of 'tap', 'template', 'toggle' or 'group'.",
"const": "group"
},
"items": { "$ref": "#/$defs/items" }
"items": {
"$ref": "#/$defs/items"
}
},
"required": ["entity", "name", "title", "type", "items"],
"required": ["name", "title", "type", "items"],
"additionalProperties": false
},
"items": {
"type": "array",
"maxItems": 16,
"items": {
"oneOf": [
{ "$ref": "#/$defs/toggle" },
{ "$ref": "#/$defs/tap" },
{ "$ref": "#/$defs/menu" }
{
"$ref": "#/$defs/toggle"
},
{
"$ref": "#/$defs/template"
},
{
"$ref": "#/$defs/tap"
},
{
"$ref": "#/$defs/group"
}
]
}
},
"entity": {
"title": "Home Assistant entity name",
"type": "string",
"title": "Home Assistant entity name",
"pattern": "^[^.]+\\.[^.]+$"
},
"action": {
"service": {
"type": "string",
"title": "Home Assistant service name",
"pattern": "^[^.]+\\.[^.]+$"
},
"tap_action": {
"type": "object",
"title": "Action",
"description": "'confirm' field is optional.",
"type": "object",
"properties": {
"service": { "$ref": "#/$defs/entity" },
"service": {
"$ref": "#/$defs/service"
},
"confirm": {
"type": "boolean",
"default": false,
"description": "Confirm the action before execution as a precaution."
"$ref": "#/$defs/confirm"
},
"data": {
"type": "object",
"title": "Your services's parameters",
"description": "The object containing the parameters and their values to be passed to the entity. No schema checking can be done here, you are on your own! On application crash, remove the parameters."
}
},
"required": ["service"]
},
"confirm": {
"type": "boolean",
"default": false,
"title": "Confirmation",
"description": "Optional confirmation of the action before execution as a precaution."
}
}
}

56
examples/Actions.md Normal file
View File

@ -0,0 +1,56 @@
[Home](../README.md) | [Switches](Switches.md) | Actions | [Templates](Templates.md) | [Battery Reporting](../BatteryReporting.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Actions
A simple example using a scene as a `tap`` menu item.
```json
{
"entity": "scene.telly_watching",
"name": "Telly Scene",
"type": "tap",
"tap_action": {
"service": "scene.turn_on"
}
},
```
Any menu item with an action (`tap`, `template`, or `toggle`), may have a confirmation view added. For consistency this is always done via the `tap_action` JSON object, even though for a `toggle` menu item there will only ever be a single field inside. For the `toggle` menu item, the confirmation is presented on both `on` and `off` directions. There is no option for asymmetry, i.e. only in one direction.
```json
"tap_action": {
"confirm": true
}
```
<img src="../images/confirmation_view.png" width="200" title="Confirmation View"/>
For example:
```json
{
"entity": "switch.garage_door",
"name": "Garage Door",
"type": "toggle",
"tap_action": {
"confirm": true
}
}
```
Note that for notify events, you _must_ not supply an `entity_id` or the API call will fail. There are other examples too.
```json
{
"name": "Message",
"type": "tap",
"tap_action": {
"service": "notify.mobile_app_on_phone",
"data": {
"title": "This is a title",
"message": "This is the message"
},
"confirm": true
}
}
```

73
examples/Switches.md Normal file
View File

@ -0,0 +1,73 @@
[Home](../README.md) | Switches | [Actions](Actions.md) | [Templates](Templates.md) | [Battery Reporting](../BatteryReporting.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Switches
This is the simplest form:
```json
{
"entity": "light.bedside_light_switch",
"name": "Bedroom Light",
"type": "toggle"
},
```
To support a non-standard light, switch, or automation as a toggle menu item you may like to define a custom switch. In order to facilitate custom switches at this time, you must create a template switch in HomeAssistant.
```yaml
switch:
- platform: template
switches:
<switch-name>:
friendly_name: <name>
value_template: <value>
turn_on:
service: <service>
data:
entity_id: <entity>
<attribute>: <value>
turn_off:
service: <service>
data:
entity_id: <entity>
<attribute>: <value>
```
Then you can use the following in your config:
```json
{
"entity": "switch.<switch-name>",
"name": "<name>",
"type": "toggle"
}
```
## Example - Covers
```yaml
switch:
- platform: template
switches:
cover:
friendly_name: Cover
value_template: "{{ is_state('cover.cover', 'open') }}"
turn_on:
service: cover.open_cover
data:
entity_id: cover.cover
turn_off:
service: cover.close_cover
data:
entity_id: cover.cover
```
Then you can use the following in your config:
```json
{
"entity": "switch.cover",
"name": "Cover",
"type": "toggle"
}
```

163
examples/Templates.md Normal file
View File

@ -0,0 +1,163 @@
[Home](../README.md) | [Switches](Switches.md) | [Actions](Actions.md) | Templates | [Battery Reporting](../BatteryReporting.md) | [Trouble Shooting](../TroubleShooting.md) | [Version History](../HISTORY.md)
# Templates
In order to provide the most functionality possible the content of the menu item comes from a user-defined template (i.e. you generate your own text). This allows you to do some pretty cool things. It also makes the config 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.
- Anything between `{{` and `}}` is a template. Templates are used to dynamically insert values into the content. For more info see [the docs](https://www.home-assistant.io/docs/configuration/templating/).
## States
In this example we get the battery level of the device and add the percent sign. *Very simple*
```json
{
"entity": "sensor.<device>_battery_level",
"name": "Phone",
"type": "template",
"content": "{{ states('sensor.<device>_battery_level') }}%"
}
```
### Examples
The first two keep to the simple proposal above. The last combines them into a single menu item. Now you can start to see the utility of this menu item, composing your own formatted text.
```json
{
"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') }}%"
}
```
## Conditionals
Anything between `{%` and `%}` is a directive (`if`, `else`, `elif`, `endif`, etc.). Conditionals are used to dynamically change the content based on the state of the entity.
In this example we get the battery level of the device and add the percent sign. If the device is charging we add a plus sign.
```json
{
"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 %}"
}
```
Here we also use the else clause as well to give proper text instead of just `on` or `off`.
```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 %}"
}
```
## Advanced
Here we generate a bar graph of the battery level. We use the following steps to do this:
- Convert the state to a number.
- Divide by 100 to get a fraction.
- Multiply by the width to get the number of `#`s.
- Multiply by the `#` char to make a string.
- Subtract the width from the number of `#`s to get the number of `_`s.
- Multiply by the `_` char to make a string.
```json
{
"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)) }}"
}
```
An example of a dimmer light with 4 brightness settings 0..3. Here our light worked on a percentage, so that had to be converted to the range 0..3.
```json
{
"$schema": "./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 %}"
},
{
"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 %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 12
}
}
},
{
"entity": "light.green_house",
"name": "LEDs 1",
"type": "tap",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 37
}
}
},
{
"entity": "light.green_house",
"name": "LEDs 2",
"type": "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 %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 62
}
}
},
{
"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 %}",
"tap_action": {
"service": "light.turn_on",
"data": {
"brightness_pct": 87
}
}
}
]
}
```
## 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;"/>

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 KiB

After

Width:  |  Height:  |  Size: 764 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
images/app_crash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/rename_device.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
images/rename_device_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 KiB

BIN
images/toggle_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">على</string>
<string id="MenuItemOff">عن</string>
<string id="MenuItemTap">مقبض</string>
<string id="MenuItemMenu">قائمة طعام</string>
<string id="Confirm">بالتأكيد؟</string>
<string id="Executed" scope="glance">مؤكد</string>
<string id="NoPhone" scope="glance">لا يوجد اتصال الهاتف</string>
<string id="NoInternet">لا يوجد اتصال بالإنترنت</string>
<string id="NoResponse">لا توجد استجابة، تحقق من الاتصال بالإنترنت</string>
@ -37,26 +34,37 @@
<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="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="GlanceMenu" scope="glance">قائمة طعام</string>
<string id="Memory" scope="glance">ذاكرة</string>
<!-- لإعدادات واجهة المستخدم الرسومية -->
<string id="SettingsSelect">يختار...</string>
<string id="SettingsApiKey">مفتاح API لـ HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">رمز الوصول طويل الأمد.</string>
<string id="SettingsApiUrl">عنوان URL لواجهة برمجة تطبيقات HomeAssistant.</string>
<string id="SettingsConfigUrl">عنوان URL لتكوين القائمة (JSON).</string>
<string id="SettingsAppTimeout">المهلة بالثواني. قم بالخروج من التطبيق بعد هذه الفترة من عدم النشاط لحفظ بطارية الجهاز.</string>
<string id="SettingsConfirmTimeout">بعد هذا الوقت (بالثواني)، يتم إغلاق مربع حوار تأكيد الإجراء تلقائيًا ويتم إلغاء الإجراء. اضبط على 0 لتعطيل المهلة.</string>
<string id="SettingsMenuItemStyle">نمط عنصر القائمة.</string>
<string id="SettingsMenuItemStyleIcons">أيقونات</string>
<string id="SettingsMenuItemStyleText">نص إضافي</string>
<string id="SettingsCacheConfig">هل يجب على التطبيق تخزين تكوين القائمة مؤقتًا؟</string>
<string id="SettingsClearCache">يجب أن يقوم التطبيق بمسح ذاكرة التخزين المؤقت الموجودة في المرة القادمة
بدأت؟</string>
<string id="SettingsAppTimeout">المهلة بالثواني. الخروج من التطبيق بعد هذه الفترة
عدم النشاط لحفظ بطارية الجهاز.</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="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي يجب أن تكرر عنده خدمة الخلفية إرسال مستوى البطارية.</string>
</strings>
<string id="SettingsWidgetStart">(القطعة فقط) ابدأ تشغيل التطبيق تلقائيًا من الأداة
دون انتظار الصنبور.</string>
<string id="SettingsEnableBatteryLevel">تمكين خدمة الخلفية لإرسال بطارية الساعة
المستوى إلى مساعد المنزل.</string>
<string id="SettingsBatteryLevelRefreshRate">معدل التحديث (بالدقائق) الذي الخلفية
يجب أن تكرر الخدمة إرسال مستوى البطارية.</string>
<string id="WebhookId">(للقراءة فقط) معرف Webhook الذي أنشأته الساعة لتحديثات مستوى البطارية.
قد تحتاج إلى هذا لتصحيح الأخطاء.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">На</string>
<string id="MenuItemOff">Изкл</string>
<string id="MenuItemTap">Докоснете</string>
<string id="MenuItemMenu">Меню</string>
<string id="Confirm">Сигурен?</string>
<string id="Executed" scope="glance">Потвърдено</string>
<string id="NoPhone" scope="glance">Няма телефонна връзка</string>
<string id="NoInternet">Няма интернет връзка</string>
<string id="NoResponse">Няма отговор, проверете интернет връзката</string>
@ -37,26 +34,37 @@
<string id="NoJson">Няма върнат JSON от HTTP заявка.</string>
<string id="UnhandledHttpErr">HTTP заявката върна код на грешка =</string>
<string id="TrailingSlashErr">URL адресът на API не трябва да има наклонена черта '/' в края</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="GlanceMenu" scope="glance">Меню</string>
<string id="Memory" scope="glance">памет</string>
<!-- За GUI за настройки -->
<string id="SettingsSelect">Изберете...</string>
<string id="SettingsApiKey">API ключ за HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Токен за дълготраен достъп.</string>
<string id="SettingsApiUrl">URL адрес за API на HomeAssistant.</string>
<string id="SettingsConfigUrl">URL за конфигурация на менюто (JSON).</string>
<string id="SettingsAppTimeout">Изчакване в секунди. Излезте от приложението след този период на неактивност, за да запазите батерията на устройството.</string>
<string id="SettingsConfirmTimeout">След това време (в секунди) диалоговият прозорец за потвърждение за действие се затваря автоматично и действието се отменя. Задайте 0, за да деактивирате изчакването.</string>
<string id="SettingsMenuItemStyle">Стил на елемент от менюто.</string>
<string id="SettingsMenuItemStyleIcons">Икони</string>
<string id="SettingsMenuItemStyleText">Допълнителен текст</string>
<string id="SettingsCacheConfig">Трябва ли приложението да кешира конфигурацията на менюто?</string>
<string id="SettingsClearCache">Трябва ли приложението да изчисти съществуващия кеш следващия път, когато е
започна?</string>
<string id="SettingsAppTimeout">Изчакване в секунди. Излезте от приложението след този период от
бездействие, за да запазите батерията на устройството.</string>
<string id="SettingsConfirmTimeout">След това време (в секунди) се появява диалогов прозорец за потвърждение за an
действието се затваря автоматично и действието се отменя. Задайте 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="SettingsBatteryLevelRefreshRate">Честотата на опресняване (в минути), с която фоновата услуга трябва да повтори изпращането на нивото на батерията.</string>
</strings>
<string id="SettingsWidgetStart">(Само за притурка) Автоматично стартиране на приложението от приспособлението
без да чакате кран.</string>
<string id="SettingsEnableBatteryLevel">Активирайте фоновата услуга, за да изпратите батерията на часовника
ниво до домашен асистент.</string>
<string id="SettingsBatteryLevelRefreshRate">Честотата на опресняване (в минути), с която фонът
услугата трябва да повтори изпращането на нивото на батерията.</string>
<string id="WebhookId">(Само за четене) ID на Webhook, създаден от часовника за актуализации на нивото на батерията.
Може да ви е необходимо това за отстраняване на грешки.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Na</string>
<string id="MenuItemOff">Vypnuto</string>
<string id="MenuItemTap">Klepněte</string>
<string id="MenuItemMenu">Jídelní lístek</string>
<string id="Confirm">Tak 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>
@ -37,26 +34,37 @@
<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="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="Memory" scope="glance">Paměť</string>
<!-- Pro nastavení GUI -->
<string id="SettingsSelect">Vybrat...</string>
<string id="SettingsApiKey">Klíč API pro HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Přístupový token s dlouhou životností.</string>
<string id="SettingsApiUrl">URL pro HomeAssistant API.</string>
<string id="SettingsConfigUrl">Adresa URL pro konfiguraci nabídky (JSON).</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="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="SettingsMenuItemStyle">Styl položky menu.</string>
<string id="SettingsMenuItemStyleIcons">ikony</string>
<string id="SettingsMenuItemStyleText">Doplňkový text</string>
<string id="SettingsCacheConfig">Má aplikace uložit konfiguraci nabídky do mezipaměti?</string>
<string id="SettingsClearCache">Měla by aplikace příště vymazat stávající mezipaměť
začal?</string>
<string id="SettingsAppTimeout">Časový limit v sekundách. Po uplynutí této doby aplikaci ukončete
nečinnosti, aby se šetřila baterie zařízení.</string>
<string id="SettingsConfirmTimeout">Po uplynutí této doby (v sekundách) se zobrazí potvrzovací dialog pro
akce se 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>
<string id="RightToLeft">Zprava doleva</string>
<string id="SettingsWidgetStart">(Pouze widget) Automaticky spusťte aplikaci z widgetu bez čekání na klepnutí.</string>
<string id="SettingsEnableBatteryLevel">Povolte službu na pozadí, aby odeslala stav baterie hodin do Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Obnovovací frekvence (v minutách), při které by služba na pozadí měla opakovat odesílání úrovně baterie.</string>
</strings>
<string id="SettingsWidgetStart">(Pouze widget) Automaticky spustit aplikaci z widgetu
bez čekání na klepnutí.</string>
<string id="SettingsEnableBatteryLevel">Povolte službu na pozadí pro odeslání baterie hodin
úroveň na Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Obnovovací frekvence (v minutách), při které je pozadí
servis by měl zopakovat odeslání stavu baterie.</string>
<string id="WebhookId">(Pouze pro čtení) ID webhooku vytvořené hodinkami pro aktualizace úrovně baterie.
Možná to budete potřebovat pro ladění.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">Af</string>
<string id="MenuItemTap">Tryk på</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">Jo da?</string>
<string id="Executed" scope="glance">Bekræftet</string>
<string id="NoPhone" scope="glance">Ingen telefonforbindelse</string>
<string id="NoInternet">Ingen internetforbindelse</string>
<string id="NoResponse">Intet svar, tjek internetforbindelse</string>
@ -37,26 +34,37 @@
<string id="NoJson">Ingen JSON returneret fra HTTP-anmodning.</string>
<string id="UnhandledHttpErr">HTTP-anmodning returnerede fejlkode =</string>
<string id="TrailingSlashErr">API URL må ikke have en efterfølgende skråstreg '/'</string>
<string id="WebhookFailed">Kunne ikke registrere Webhook</string>
<string id="TemplateError">Skabelonen kunne ikke gengives</string>
<string id="Available" scope="glance">Ledig</string>
<string id="Checking" scope="glance">Tjekker...</string>
<string id="Unavailable" scope="glance">Ikke tilgængelig</string>
<string id="Unconfigured" scope="glance">Ukonfigureret</string>
<string id="Cached" scope="glance">Cachelagret</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Hukommelse</string>
<!-- Til indstillingerne GUI -->
<string id="SettingsSelect">Vælg...</string>
<string id="SettingsApiKey">API-nøgle til HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Adgangstoken med lang levetid.</string>
<string id="SettingsApiUrl">URL til HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL til menukonfiguration (JSON).</string>
<string id="SettingsAppTimeout">Timeout i sekunder. Afslut applikationen efter denne periode med inaktivitet for at spare på enhedens batteri.</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="SettingsMenuItemStyle">Menupunkt stil.</string>
<string id="SettingsMenuItemStyleIcons">Ikoner</string>
<string id="SettingsMenuItemStyleText">Yderligere tekst</string>
<string id="SettingsCacheConfig">Skal applikationen cache menukonfigurationen?</string>
<string id="SettingsClearCache">Skal applikationen rydde den eksisterende cache næste gang
startede?</string>
<string id="SettingsAppTimeout">Timeout i sekunder. Afslut ansøgningen efter denne periode på
inaktivitet for at spare enhedens batteri.</string>
<string id="SettingsConfirmTimeout">Efter dette tidspunkt (i sekunder) vises en bekræftelsesdialog for en
handlingen lukkes 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="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 urets batteriniveau til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Opdateringshastigheden (i minutter), hvormed baggrundstjenesten skal gentage afsendelsen af batteriniveauet.</string>
</strings>
<string id="SettingsWidgetStart">(Kun widget) Start automatisk programmet fra widgetten
uden at vente på et tryk.</string>
<string id="SettingsEnableBatteryLevel">Aktiver baggrundstjenesten for at sende urets batteri
niveau til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Opdateringshastigheden (i minutter), som baggrunden
tjenesten skal gentage afsendelsen af batteriniveauet.</string>
<string id="WebhookId">(Skrivebeskyttet) Webhook-id'et oprettet af uret til opdateringer af batteriniveau.
Du kan kræve dette til fejlretning.</string>
</strings>

View File

@ -19,7 +19,5 @@
-->
<strings>
<string id="MenuItemTap">Antippen</string>
<string id="MenuItemMenu">Menü</string>
<string id="UnhandledHttpErr">Die HTTP-Anfrage gab folgenden Fehlercode zurück = </string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">An</string>
<string id="MenuItemOff">Aus</string>
<string id="MenuItemTap">Antippen</string>
<string id="MenuItemMenu">Menü</string>
<string id="Confirm">Sicher?</string>
<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>
@ -37,26 +34,37 @@
<string id="NoJson">Von der HTTP-Anfrage 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>
<string id="TemplateError">Vorlage konnte nicht gerendert werden</string>
<string id="Available" scope="glance">Verfügbar</string>
<string id="Checking" scope="glance">Überprüfung...</string>
<string id="Unavailable" scope="glance">Nicht verfügbar</string>
<string id="Unconfigured" scope="glance">Unkonfiguriert</string>
<string id="Cached" scope="glance">Zwischengespeichert</string>
<string id="GlanceMenu" scope="glance">Speisekarte</string>
<string id="Memory" scope="glance">Erinnerung</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="SettingsApiUrl">URL für die HomeAssistant-API.</string>
<string id="SettingsConfigUrl">URL zur Menükonfiguration (JSON).</string>
<string id="SettingsAppTimeout">Timeout in Sekunden. Beenden Sie die Anwendung nach dieser Zeit der Inaktivität, um den Akku des Geräts zu schonen.</string>
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) wird automatisch ein Bestätigungsdialog für eine Aktion geschlossen und die Aktion abgebrochen. Auf 0 setzen, um das Timeout zu deaktivieren.</string>
<string id="SettingsMenuItemStyle">Menüelementstil.</string>
<string id="SettingsMenuItemStyleIcons">Symbole</string>
<string id="SettingsMenuItemStyleText">Zusätzlicher Text</string>
<string id="SettingsCacheConfig">Soll die Anwendung die Menükonfiguration zwischenspeichern?</string>
<string id="SettingsClearCache">Sollte die Anwendung beim nächsten Mal den vorhandenen Cache löschen?
gestartet?</string>
<string id="SettingsAppTimeout">Timeout in Sekunden. Beenden Sie die Anwendung nach Ablauf dieser Frist
Inaktivität, um den Akku des Geräts zu schonen.</string>
<string id="SettingsConfirmTimeout">Nach dieser Zeit (in Sekunden) erscheint ein Bestätigungsdialog für eine
Die Aktion wird automatisch geschlossen und die Aktion abgebrochen. Auf 0 setzen, um das Timeout zu deaktivieren.</string>
<string id="SettingsTextAlign">Menüausrichtung links (aus) oder rechts (ein).</string>
<string id="LeftToRight">Links nach rechts</string>
<string id="RightToLeft">Rechts nach links</string>
<string id="SettingsWidgetStart">(Nur Widget) Starten Sie die Anwendung automatisch über das Widget, ohne auf einen Tipp warten zu müssen.</string>
<string id="SettingsEnableBatteryLevel">Aktivieren Sie den Hintergrunddienst, um den Batteriestand der Uhr an Home Assistant zu senden.</string>
<string id="SettingsBatteryLevelRefreshRate">Die Aktualisierungsrate (in Minuten), mit der der Hintergrunddienst das Senden des Akkustands wiederholen soll.</string>
</strings>
<string id="SettingsWidgetStart">(Nur Widget) Starten Sie die Anwendung automatisch über das Widget
ohne auf einen Fingertipp warten zu müssen.</string>
<string id="SettingsEnableBatteryLevel">Aktivieren Sie den Hintergrunddienst, um die Uhrbatterie zu senden
Ebene zum Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Die Aktualisierungsrate (in Minuten), mit der der Hintergrund angezeigt wird
Der Service sollte das Senden des Batteriestands wiederholen.</string>
<string id="WebhookId">(Schreibgeschützt) Die von der Uhr erstellte Webhook-ID für Aktualisierungen des Batteriestands.
Möglicherweise benötigen Sie dies zum Debuggen.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Op</string>
<string id="MenuItemOff">Uit</string>
<string id="MenuItemTap">Kraan</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">Zeker?</string>
<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>
@ -37,26 +34,37 @@
<string id="NoJson">Er is geen JSON geretourneerd door een HTTP-verzoek.</string>
<string id="UnhandledHttpErr">HTTP-verzoek 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="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="GlanceMenu" scope="glance">Menu</string>
<!-- Voor de instellingen-GUI -->
<string id="Memory" scope="glance">Geheugen</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="SettingsApiUrl">URL voor HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL voor menuconfiguratie (JSON).</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="SettingsMenuItemStyle">Stijl van menu-items.</string>
<string id="SettingsMenuItemStyleIcons">Pictogrammen</string>
<string id="SettingsMenuItemStyleText">Aanvullende tekst</string>
<string id="SettingsCacheConfig">Moet de applicatie de menuconfiguratie in de cache opslaan?</string>
<string id="SettingsClearCache">Moet de toepassing de volgende keer de bestaande cache wissen?
begonnen?</string>
<string id="SettingsAppTimeout">Time-out in seconden. Sluit de applicatie na deze periode af
inactiviteit om de batterij van het apparaat te sparen.</string>
<string id="SettingsConfirmTimeout">Na deze tijd (in seconden) verschijnt er een bevestigingsvenster voor een
actie wordt automatisch gesloten en de actie wordt 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="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="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om het batterijniveau van de klok naar Home Assistant te sturen.</string>
<string id="SettingsBatteryLevelRefreshRate">De vernieuwingsfrequentie (in minuten) waarmee de achtergrondservice het batterijniveau opnieuw moet verzenden.</string>
</strings>
<string id="SettingsWidgetStart">(Alleen Widget) Start de applicatie automatisch vanuit de widget
zonder te wachten op een tikje.</string>
<string id="SettingsEnableBatteryLevel">Schakel de achtergrondservice in om de klokbatterij te verzenden
niveau naar Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">De vernieuwingsfrequentie (in minuten) waarmee de achtergrond wordt weergegeven
service moet het batterijniveau opnieuw verzenden.</string>
<string id="WebhookId">(Alleen-lezen) De Webhook-ID die door het horloge is aangemaakt voor updates van het batterijniveau.
Mogelijk hebt u dit nodig voor foutopsporing.</string>
</strings>

View File

@ -15,48 +15,56 @@
<!--
Generated by Google Translate: English to Estonian
Loodud Google'i tõlke abil inglise keelest
Inglise keelest loodud Google'i tõlke abil
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Peal</string>
<string id="MenuItemOff">Väljas</string>
<string id="MenuItemTap">Puudutage</string>
<string id="MenuItemMenu">Menüü</string>
<string id="Confirm">Muidugi?</string>
<string id="Executed" scope="glance">Kinnitatud</string>
<string id="NoPhone" scope="glance">Telefoniühendus puudub</string>
<string id="NoInternet">Interneti-ühendus puudub</string>
<string id="NoResponse">Ei reageeri, kontrollige Interneti-ühendust</string>
<string id="NoAPIKey" scope="glance">Rakenduse seadetes pole API-võtit</string>
<string id="NoApiUrl" scope="glance">Rakenduse seadetes pole API URL-i</string>
<string id="NoConfigUrl" scope="glance">Rakenduse seadetes pole konfiguratsiooni URL-i</string>
<string id="ApiFlood">API-kutsed liiga kiired. Palun aeglustage taotluste esitamist.</string>
<string id="ApiFlood">API-kutsed 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">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>
<string id="Unavailable" scope="glance">Pole saadaval</string>
<string id="Unconfigured" scope="glance">Konfigureerimata</string>
<string id="Cached" scope="glance">Vahemällu salvestatud</string>
<string id="GlanceMenu" scope="glance">Menüü</string>
<string id="Memory" scope="glance">Mälu</string>
<!-- Seadete GUI jaoks -->
<string id="SettingsSelect">Vali...</string>
<string id="SettingsApiKey">API-võti HomeAssistantile.</string>
<string id="SettingsApiKeyPrompt">Pikaealine juurdepääsuluba.</string>
<string id="SettingsApiUrl">HomeAssistant API URL.</string>
<string id="SettingsConfigUrl">URL menüü konfigureerimiseks (JSON).</string>
<string id="SettingsAppTimeout">Aegumine sekundites. Seadme aku säästmiseks sulgege rakendus pärast seda tegevusetusperioodi.</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="SettingsMenuItemStyle">Menüüelemendi stiil.</string>
<string id="SettingsMenuItemStyleIcons">Ikoonid</string>
<string id="SettingsMenuItemStyleText">Täiendav tekst</string>
<string id="SettingsCacheConfig">Kas rakendus peaks menüü konfiguratsiooni vahemällu salvestama?</string>
<string id="SettingsClearCache">Kas rakendus peaks järgmisel korral olemasoleva vahemälu tühjendama
algas?</string>
<string id="SettingsAppTimeout">Aegumine sekundites. Väljuge rakendusest pärast seda perioodi
tegevusetus, et säästa seadme akut.</string>
<string id="SettingsConfirmTimeout">Pärast seda aega (sekundites) kuvatakse kinnitusdialoog an
toiming suletakse automaatselt 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 taustteenus, et saata Home Assistantile kella aku tase.</string>
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), mille juures taustateenus peaks aku taseme saatmist kordama.</string>
</strings>
<string id="SettingsWidgetStart">(Ainult vidin) Käivitage rakendus automaatselt vidinast
puudutust ootamata.</string>
<string id="SettingsEnableBatteryLevel">Kella aku saatmiseks lubage taustteenus
tasemel koduabilisele.</string>
<string id="SettingsBatteryLevelRefreshRate">Värskendussagedus (minutites), mille juures taust
teenindus peaks aku taseme saatmist kordama.</string>
<string id="WebhookId">(Ainult lugemiseks) Kella loodud veebihaagi ID aku taseme värskendamiseks.
Võib-olla vajate seda silumiseks.</string>
</strings>

View File

@ -20,15 +20,12 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Päällä</string>
<string id="MenuItemOff">Vinossa</string>
<string id="MenuItemTap">Napauta</string>
<string id="MenuItemMenu">Valikko</string>
<string id="Confirm">Varma?</string>
<string id="Executed" scope="glance">Vahvistettu</string>
<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>
@ -37,26 +34,37 @@
<string id="NoJson">HTTP-pyynnöstä ei palautettu JSON-tiedostoja.</string>
<string id="UnhandledHttpErr">HTTP-pyyntö palautti virhekoodin =</string>
<string id="TrailingSlashErr">API-URL-osoitteessa ei saa olla perässä olevaa kauttaviivaa '/'</string>
<string id="WebhookFailed">Webhookin rekisteröinti epäonnistui</string>
<string id="TemplateError">Mallin renderöinti epäonnistui</string>
<string id="Available" scope="glance">Saatavilla</string>
<string id="Checking" scope="glance">Tarkistetaan...</string>
<string id="Unavailable" scope="glance">Ei saatavilla</string>
<string id="Unconfigured" scope="glance">Määrittämätön</string>
<string id="Cached" scope="glance">Välimuistissa</string>
<string id="GlanceMenu" scope="glance">Valikko</string>
<string id="Memory" scope="glance">Muisti</string>
<!-- GUI-asetusten osalta -->
<string id="SettingsSelect">Valitse...</string>
<string id="SettingsApiKey">API-avain HomeAssistantille.</string>
<string id="SettingsApiKeyPrompt">Pitkäikäinen pääsytunnus.</string>
<string id="SettingsApiUrl">HomeAssistant API:n URL-osoite.</string>
<string id="SettingsConfigUrl">URL-osoite valikon määrityksiä varten (JSON).</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 poistaaksesi aikakatkaisun käytöstä.</string>
<string id="SettingsMenuItemStyle">Valikkokohdan tyyli.</string>
<string id="SettingsMenuItemStyleIcons">Kuvakkeet</string>
<string id="SettingsMenuItemStyleText">Lisäteksti</string>
<string id="SettingsCacheConfig">Pitäisikö sovelluksen tallentaa valikon asetukset välimuistiin?</string>
<string id="SettingsClearCache">Pitäisikö sovelluksen tyhjentää olemassa oleva välimuisti seuraavan kerran
alkanut?</string>
<string id="SettingsAppTimeout">Aikakatkaisu sekunneissa. Poistu sovelluksesta tämän ajanjakson jälkeen
käyttämättömyys säästääksesi laitteen akkua.</string>
<string id="SettingsConfirmTimeout">Tämän ajan kuluttua (sekunneissa) vahvistusikkuna an
toiminto suljetaan automaattisesti ja toiminto peruutetaan. Aseta arvoksi 0, jos haluat poistaa 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 lähettääksesi kellon akun varaustason Home Assistantille.</string>
<string id="SettingsBatteryLevelRefreshRate">Virkistystaajuus (minuutteina), jolla taustapalvelun pitäisi toistaa akun varaustason lähettämistä.</string>
</strings>
<string id="SettingsWidgetStart">(Vain widget) Käynnistä sovellus automaattisesti widgetistä
odottamatta napausta.</string>
<string id="SettingsEnableBatteryLevel">Ota taustapalvelu käyttöön kellon akun lähettämiseksi
tasolle Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Päivitystaajuus (minuutteina), jolla tausta
palvelun pitäisi toistaa akun varaustason lähettäminen.</string>
<string id="WebhookId">(Vain luku) Kellon luoma Webhook-tunnus akun varaustason päivityksiä varten.
Saatat tarvita tätä virheenkorjaukseen.</string>
</strings>

View File

@ -19,7 +19,5 @@
-->
<strings>
<string id="MenuItemOn">Activé</string>
<string id="MenuItemTap">Clic</string>
<string id="ApiFlood">Appels API trop rapide. Veuillez signaler cette erreur avec les détails de l'appareil.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Activé</string>
<string id="MenuItemOff">Désactivé</string>
<string id="MenuItemTap">Clic</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">Bien sûr?</string>
<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>
@ -37,26 +34,37 @@
<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="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="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="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Mémoire</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="SettingsAppTimeout">Délai d'attente 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="SettingsMenuItemStyle">Style des éléments de menu.</string>
<string id="SettingsMenuItemStyleIcons">Icônes</string>
<string id="SettingsMenuItemStyleText">Texte supplémentaire</string>
<string id="SettingsCacheConfig">L'application doit-elle mettre en cache la configuration du menu ?</string>
<string id="SettingsClearCache">L'application devrait-elle vider le cache existant la prochaine fois
commencé?</string>
<string id="SettingsAppTimeout">Délai d'attente en secondes. Quittez l'application après cette période de
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 pour un
l'action est automatiquement clôturé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 d'arrière-plan pour envoyer le niveau de batterie de l'horloge à 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 du niveau de la batterie.</string>
</strings>
<string id="SettingsWidgetStart">(Widget uniquement) Démarrez automatiquement l'application à partir du widget
sans attendre un robinet.</string>
<string id="SettingsEnableBatteryLevel">Activer le service d'arrière-plan pour envoyer la batterie de l'horloge
niveau à Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Le taux de rafraîchissement (en minutes) auquel l'arrière-plan
Le service doit répéter l'envoi du niveau de la batterie.</string>
<string id="WebhookId">(Lecture seule) L'ID Webhook créé par la montre pour les mises à jour du niveau de batterie.
Vous pourriez en avoir besoin pour le débogage.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Επί</string>
<string id="MenuItemOff">Μακριά από</string>
<string id="MenuItemTap">Παρακέντηση</string>
<string id="MenuItemMenu">Μενού</string>
<string id="Confirm">Σίγουρος?</string>
<string id="Executed" scope="glance">Επιβεβαιωμένος</string>
<string id="NoPhone" scope="glance">Δεν υπάρχει σύνδεση τηλεφώνου</string>
<string id="NoInternet">Δεν υπάρχει σύνδεση στο διαδίκτυο</string>
<string id="NoResponse">Καμία απάντηση, ελέγξτε τη σύνδεση στο Διαδίκτυο</string>
@ -37,26 +34,37 @@
<string id="NoJson">Δεν επιστράφηκε JSON από αίτημα HTTP.</string>
<string id="UnhandledHttpErr">Το αίτημα HTTP επέστρεψε κωδικό σφάλματος =</string>
<string id="TrailingSlashErr">Η διεύθυνση URL του API δεν πρέπει να έχει τελική κάθετο "/"</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="GlanceMenu" scope="glance">Μενού</string>
<string id="Memory" scope="glance">Μνήμη</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="SettingsAppTimeout">Timeout σε δευτερόλεπτα. Κλείστε την εφαρμογή μετά από αυτήν την περίοδο αδράνειας για να εξοικονομήσετε την μπαταρία της συσκευής.</string>
<string id="SettingsConfirmTimeout">Μετά από αυτό το χρονικό διάστημα (σε δευτερόλεπτα), ένα παράθυρο διαλόγου επιβεβαίωσης για μια ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται. Ορίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
<string id="SettingsMenuItemStyle">Στυλ στοιχείου μενού.</string>
<string id="SettingsMenuItemStyleIcons">εικονίδια</string>
<string id="SettingsMenuItemStyleText">Πρόσθετο Κείμενο</string>
<string id="SettingsCacheConfig">Πρέπει η εφαρμογή να αποθηκεύσει προσωρινά τη διαμόρφωση του μενού;</string>
<string id="SettingsClearCache">Εάν η εφαρμογή εκκαθαρίσει την υπάρχουσα κρυφή μνήμη την επόμενη φορά
ξεκίνησε;</string>
<string id="SettingsAppTimeout">Timeout σε δευτερόλεπτα. Έξοδος από την εφαρμογή μετά από αυτήν την περίοδο του
αδράνεια για εξοικονόμηση μπαταρίας της συσκευής.</string>
<string id="SettingsConfirmTimeout">Μετά από αυτό το διάστημα (σε δευτερόλεπτα), ένα παράθυρο διαλόγου επιβεβαίωσης για ένα
η ενέργεια κλείνει αυτόματα και η ενέργεια ακυρώνεται. Ορίστε στο 0 για να απενεργοποιήσετε το χρονικό όριο.</string>
<string id="SettingsTextAlign">Αριστερά (απενεργοποίηση) ή Δεξιά (ενεργό) Ευθυγράμμιση μενού.</string>
<string id="LeftToRight">Από αριστερά προς τα δεξιά</string>
<string id="RightToLeft">Δεξιά προς τα αριστερά</string>
<string id="SettingsWidgetStart">(Μόνο widget) Αυτόματη εκκίνηση της εφαρμογής από το widget χωρίς να περιμένετε ένα πάτημα.</string>
<string id="SettingsEnableBatteryLevel">Ενεργοποιήστε την υπηρεσία παρασκηνίου για αποστολή της στάθμης της μπαταρίας του ρολογιού στο Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Ο ρυθμός ανανέωσης (σε λεπτά) με τον οποίο η υπηρεσία παρασκηνίου θα πρέπει να επαναλάβει στέλνοντας το επίπεδο της μπαταρίας.</string>
</strings>
<string id="SettingsWidgetStart">(Μόνο γραφικό στοιχείο) Αυτόματη εκκίνηση της εφαρμογής από το γραφικό στοιχείο
χωρίς να περιμένεις ένα πάτημα.</string>
<string id="SettingsEnableBatteryLevel">Ενεργοποιήστε την υπηρεσία παρασκηνίου για αποστολή της μπαταρίας του ρολογιού
επίπεδο στο Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Ο ρυθμός ανανέωσης (σε λεπτά) με τον οποίο το φόντο
Το σέρβις θα πρέπει να επαναλάβει την αποστολή της στάθμης της μπαταρίας.</string>
<string id="WebhookId">(Μόνο για ανάγνωση) Το αναγνωριστικό Webhook που δημιουργήθηκε από το ρολόι για ενημερώσεις επιπέδου μπαταρίας.
Μπορεί να το χρειάζεστε για τον εντοπισμό σφαλμάτων.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">עַל</string>
<string id="MenuItemOff">כבוי</string>
<string id="MenuItemTap">בֶּרֶז</string>
<string id="MenuItemMenu">תַפרִיט</string>
<string id="Confirm">בטוח?</string>
<string id="Executed" scope="glance">מְאוּשָׁר</string>
<string id="NoPhone" scope="glance">אין חיבור לטלפון</string>
<string id="NoInternet">אין חיבור אינטרנט</string>
<string id="NoResponse">אין תגובה, בדוק חיבור לאינטרנט</string>
@ -37,26 +34,37 @@
<string id="NoJson">לא הוחזר JSON מבקשת HTTP.</string>
<string id="UnhandledHttpErr">בקשת HTTP החזירה קוד שגיאה =</string>
<string id="TrailingSlashErr">כתובת ה-API לא חייבת לכלול לוכסן אחורי '/'</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="GlanceMenu" scope="glance">תַפרִיט</string>
<string id="Memory" scope="glance">זיכרון</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="SettingsAppTimeout">פסק זמן בשניות. צא מהאפליקציה לאחר תקופה זו של חוסר פעילות כדי לחסוך בסוללת המכשיר.</string>
<string id="SettingsConfirmTimeout">לאחר זמן זה (בשניות), תיבת דו-שיח לאישור פעולה נסגרת אוטומטית והפעולה מבוטלת. הגדר ל-0 כדי להשבית את הזמן הקצוב.</string>
<string id="SettingsMenuItemStyle">סגנון פריט בתפריט.</string>
<string id="SettingsMenuItemStyleIcons">אייקונים</string>
<string id="SettingsMenuItemStyleText">טקסט נוסף</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="LeftToRight">משמאל לימין</string>
<string id="RightToLeft">מימין לשמאל</string>
<string id="SettingsWidgetStart">(יישומון בלבד) הפעל אוטומטית את האפליקציה מהווידג'ט מבלי לחכות להקשה.</string>
<string id="SettingsEnableBatteryLevel">אפשר את שירות הרקע כדי לשלוח את רמת הסוללה של השעון אל Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">קצב הרענון (בדקות) שבו שירות הרקע אמור לחזור על שליחת רמת הסוללה.</string>
</strings>
<string id="SettingsWidgetStart">(יישומון בלבד) הפעל אוטומטית את האפליקציה מהווידג'ט
בלי לחכות לברז.</string>
<string id="SettingsEnableBatteryLevel">אפשר את שירות הרקע כדי לשלוח את סוללת השעון
רמה ל-Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">קצב הרענון (בדקות) שבו הרקע
השירות צריך לחזור על שליחת רמת הסוללה.</string>
<string id="WebhookId">(לקריאה בלבד) מזהה ה-Webhook שנוצר על ידי השעון עבור עדכוני רמת הסוללה.
ייתכן שתדרוש את זה בשביל איתור באגים.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Na</string>
<string id="MenuItemOff">Isključeno</string>
<string id="MenuItemTap">Dodirnite</string>
<string id="MenuItemMenu">Jelovnik</string>
<string id="Confirm">Naravno?</string>
<string id="Executed" scope="glance">Potvrđeno</string>
<string id="NoPhone" scope="glance">Nema telefonske veze</string>
<string id="NoInternet">Nema internetske veze</string>
<string id="NoResponse">Nema odgovora, provjerite internetsku vezu</string>
@ -37,26 +34,37 @@
<string id="NoJson">HTTP zahtjev nije vratio JSON.</string>
<string id="UnhandledHttpErr">HTTP zahtjev vratio je kod greške =</string>
<string id="TrailingSlashErr">API URL ne smije imati kosu crtu na kraju '/'</string>
<string id="WebhookFailed">Registracija Webhooka nije uspjela</string>
<string id="TemplateError">Nije uspjelo generiranje predloška</string>
<string id="Available" scope="glance">Dostupno</string>
<string id="Checking" scope="glance">Provjera...</string>
<string id="Unavailable" scope="glance">Nedostupan</string>
<string id="Unconfigured" scope="glance">Nekonfigurirano</string>
<string id="Cached" scope="glance">Spremljeno u predmemoriju</string>
<string id="GlanceMenu" scope="glance">Jelovnik</string>
<string id="Memory" scope="glance">Memorija</string>
<!-- Za GUI postavki -->
<string id="SettingsSelect">Izaberi...</string>
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Dugotrajni pristupni token.</string>
<string id="SettingsApiUrl">URL za HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL za konfiguraciju izbornika (JSON).</string>
<string id="SettingsAppTimeout">Istek u sekundama. Izađite iz aplikacije nakon ovog razdoblja neaktivnosti kako biste uštedjeli bateriju uređaja.</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="SettingsMenuItemStyle">Stil stavke izbornika.</string>
<string id="SettingsMenuItemStyleIcons">Ikone</string>
<string id="SettingsMenuItemStyleText">Dodatni tekst</string>
<string id="SettingsCacheConfig">Treba li aplikacija spremiti konfiguraciju izbornika u predmemoriju?</string>
<string id="SettingsClearCache">Treba li aplikacija sljedeći put izbrisati postojeću predmemoriju
počeo?</string>
<string id="SettingsAppTimeout">Istek u sekundama. Izađite iz aplikacije nakon tog razdoblja od
neaktivnosti radi uštede baterije uređaja.</string>
<string id="SettingsConfirmTimeout">Nakon tog vremena (u sekundama), dijaloški okvir potvrde za an
radnja se automatski zatvara i akcija 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>
<string id="RightToLeft">S desna na lijevo</string>
<string id="SettingsWidgetStart">(Samo widget) Automatski pokrenite aplikaciju iz widgeta bez čekanja na dodir.</string>
<string id="SettingsEnableBatteryLevel">Omogućite pozadinsku uslugu za slanje razine baterije sata kućnom pomoćniku.</string>
<string id="SettingsBatteryLevelRefreshRate">Brzina osvježavanja (u minutama) pri kojoj bi pozadinska usluga trebala ponavljati slanje razine baterije.</string>
</strings>
<string id="SettingsWidgetStart">(Samo widget) Automatski pokrenite aplikaciju iz widgeta
bez čekanja na slavinu.</string>
<string id="SettingsEnableBatteryLevel">Omogućite pozadinsku uslugu za slanje baterije sata
razinu do kućnog pomoćnika.</string>
<string id="SettingsBatteryLevelRefreshRate">Brzina osvježavanja (u minutama) pri kojoj pozadina
servis bi trebao ponoviti slanje razine baterije.</string>
<string id="WebhookId">(Samo za čitanje) Webhook ID koji je kreirao sat za ažuriranje razine baterije.
Ovo vam može trebati za otklanjanje pogrešaka.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Tovább</string>
<string id="MenuItemOff">Ki</string>
<string id="MenuItemTap">Koppintson a</string>
<string id="MenuItemMenu">Menü</string>
<string id="Confirm">Biztos?</string>
<string id="Executed" scope="glance">Megerősített</string>
<string id="NoPhone" scope="glance">Nincs telefonkapcsolat</string>
<string id="NoInternet">Nincs internetkapcsolat</string>
<string id="NoResponse">Nincs válasz, ellenőrizze az internetkapcsolatot</string>
@ -37,26 +34,37 @@
<string id="NoJson">A HTTP-kérésből nem érkezett vissza JSON.</string>
<string id="UnhandledHttpErr">A HTTP-kérés = hibakódot adott vissza</string>
<string id="TrailingSlashErr">Az API URL-ben nem lehet perjel a „/”</string>
<string id="WebhookFailed">Nem sikerült regisztrálni a Webhook-ot</string>
<string id="TemplateError">Nem sikerült megjeleníteni a sablont</string>
<string id="Available" scope="glance">Elérhető</string>
<string id="Checking" scope="glance">Ellenőrzés...</string>
<string id="Unavailable" scope="glance">Nem érhető el</string>
<string id="Unconfigured" scope="glance">Nincs konfigurálva</string>
<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>
<!-- A beállítások GUI-hoz -->
<string id="SettingsSelect">Válassz...</string>
<string id="SettingsSelect">Válasszon...</string>
<string id="SettingsApiKey">API-kulcs a HomeAssistant számára.</string>
<string id="SettingsApiKeyPrompt">Hosszú életű hozzáférési token.</string>
<string id="SettingsApiUrl">A HomeAssistant API URL-je.</string>
<string id="SettingsConfigUrl">URL a menükonfigurációhoz (JSON).</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="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="SettingsMenuItemStyle">Menüelem stílusa.</string>
<string id="SettingsMenuItemStyleIcons">Ikonok</string>
<string id="SettingsMenuItemStyleText">Kiegészítő szöveg</string>
<string id="SettingsCacheConfig">Az alkalmazásnak gyorsítótárba kell helyeznie a menü konfigurációját?</string>
<string id="SettingsClearCache">Ha az alkalmazás legközelebb törli a meglévő gyorsítótárat
elkezdődött?</string>
<string id="SettingsAppTimeout">Időtúllépés másodpercben. Lépjen ki az alkalmazásból ezen időszak után
tétlenség, hogy kímélje a készülék akkumulátorát.</string>
<string id="SettingsConfirmTimeout">Ezen idő letelte után (másodpercben) megjelenik egy megerősítő párbeszédpanel az an
A művelet automatikusan lezá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>
<string id="RightToLeft">Jobbról balra</string>
<string id="SettingsWidgetStart">(Csak Widget) Az alkalmazás automatikus indítása a widgetről anélkül, hogy egy érintésre várna.</string>
<string id="SettingsEnableBatteryLevel">Engedélyezze a háttérszolgáltatást, hogy elküldje az óra töltöttségi szintjét a Home Assistantnek.</string>
<string id="SettingsBatteryLevelRefreshRate">Az a frissítési gyakoriság (percben), amelynél a háttérszolgáltatásnak meg kell ismételnie az akkumulátor töltöttségi szintjének küldését.</string>
</strings>
<string id="SettingsWidgetStart">(Csak widget) Az alkalmazás automatikus indítása a widgetről
csapásra várva.</string>
<string id="SettingsEnableBatteryLevel">Engedélyezze a háttérszolgáltatást az óra akkumulátorának küldéséhez
szinten az Otthoni asszisztensre.</string>
<string id="SettingsBatteryLevelRefreshRate">Az a frissítési gyakoriság (percben), amelynél a háttér
a szerviznek meg kell ismételnie az akkumulátor töltöttségi szintjének küldését.</string>
<string id="WebhookId">(Csak olvasható) Az óra által az akkumulátor töltöttségi szintjének frissítéséhez létrehozott Webhook azonosító.
Erre szükség lehet a hibakereséshez.</string>
</strings>

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="18" viewBox="0 -960 960 960" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="21" viewBox="0 -960 960 960" width="21" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="24" viewBox="0 -960 960 960" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="26" viewBox="0 -960 960 960" width="26" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="28" viewBox="0 -960 960 960" width="28" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="30" viewBox="0 -960 960 960" width="30" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="32" viewBox="0 -960 960 960" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="38" viewBox="0 -960 960 960" width="38" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="42" viewBox="0 -960 960 960" width="42" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="46" viewBox="0 -960 960 960" width="46" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -19,4 +19,5 @@
<bitmap id="ErrorIcon" filename="error.svg"/>
<bitmap id="GroupTypeIcon" filename="group_type.svg"/>
<bitmap id="TapTypeIcon" filename="tap_type.svg"/>
<bitmap id="InfoTypeIcon" filename="info_type.svg"/>
</drawables>

View File

@ -0,0 +1 @@
<svg height="53" viewBox="0 -960 960 960" width="53" xmlns="http://www.w3.org/2000/svg"><path d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" fill="blue" stroke="blue"/></svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -20,43 +20,51 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Pada</string>
<string id="MenuItemOff">Mati</string>
<string id="MenuItemTap">Mengetuk</string>
<string id="MenuItemMenu">Menu</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="NoInternet">Tidak ada 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="NoConfigUrl" scope="glance">Tidak ada URL konfigurasi dalam 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="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="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="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Penyimpanan</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="SettingsApiUrl">URL untuk API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</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="SettingsMenuItemStyle">Gaya item menu.</string>
<string id="SettingsMenuItemStyleIcons">Ikon</string>
<string id="SettingsMenuItemStyleText">Teks Tambahan</string>
<string id="SettingsCacheConfig">Haruskah aplikasi menyimpan konfigurasi menu dalam cache?</string>
<string id="SettingsClearCache">Sebaiknya aplikasi menghapus cache yang ada di lain waktu
dimulai?</string>
<string id="SettingsAppTimeout">Batas waktu dalam hitungan detik. Keluar dari aplikasi setelah periode ini
ketidakaktifan untuk menghemat baterai perangkat.</string>
<string id="SettingsConfirmTimeout">Setelah waktu ini (dalam detik), dialog konfirmasi untuk
tindakan secara otomatis ditutup dan tindakan dibatalkan. Setel ke 0 untuk menonaktifkan batas waktu.</string>
<string id="SettingsTextAlign">Penyelarasan Menu Kiri (mati) atau Kanan (hidup).</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 level baterai jam ke Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Kecepatan refresh (dalam menit) saat layanan latar belakang harus mengulangi pengiriman level baterai.</string>
</strings>
<string id="SettingsWidgetStart">(Khusus widget) Secara otomatis memulai aplikasi dari widget
tanpa menunggu ketukan.</string>
<string id="SettingsEnableBatteryLevel">Aktifkan layanan latar belakang untuk mengirim baterai jam
tingkat ke Asisten Rumah.</string>
<string id="SettingsBatteryLevelRefreshRate">Kecepatan refresh (dalam menit) pada latar belakang
layanan harus mengulangi pengiriman level baterai.</string>
<string id="WebhookId">(Hanya baca) ID Webhook yang dibuat oleh jam tangan untuk pembaruan level baterai.
Anda mungkin memerlukan ini untuk debugging.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">SU</string>
<string id="MenuItemOff">Spento</string>
<string id="MenuItemTap">Rubinetto</string>
<string id="MenuItemMenu">Menù</string>
<string id="Confirm">Sicuro?</string>
<string id="Executed" scope="glance">Confermato</string>
<string id="NoPhone" scope="glance">Nessuna connessione telefonica</string>
<string id="NoInternet">Nessuna connessione internet</string>
<string id="NoResponse">Nessuna risposta, controlla la connessione Internet</string>
@ -37,26 +34,37 @@
<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="TemplateError">Impossibile eseguire il rendering del modello</string>
<string id="Available" scope="glance">Disponibile</string>
<string id="Checking" scope="glance">Controllo...</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="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="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="SettingsMenuItemStyle">Stile della voce di menu.</string>
<string id="SettingsMenuItemStyleIcons">Icone</string>
<string id="SettingsMenuItemStyleText">Testo aggiuntivo</string>
<string id="SettingsCacheConfig">L'applicazione dovrebbe memorizzare nella cache la configurazione del menu?</string>
<string id="SettingsClearCache">L'applicazione dovrebbe cancellare la cache esistente la prossima volta
iniziato?</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), verrà visualizzata una finestra di dialogo di conferma per un
l'azione viene chiusa automaticamente e 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="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 il livello della batteria dell'orologio a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frequenza di aggiornamento (in minuti) alla quale il servizio in background deve ripetere l'invio del livello della batteria.</string>
</strings>
<string id="SettingsWidgetStart">(Solo widget) Avvia automaticamente l'applicazione dal widget
senza aspettare un tocco.</string>
<string id="SettingsEnableBatteryLevel">Abilita il servizio in background per inviare la batteria dell'orologio
livello su Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frequenza di aggiornamento (in minuti) alla quale viene visualizzato lo sfondo
il servizio dovrebbe ripetere l'invio del livello della batteria.</string>
<string id="WebhookId">(Sola lettura) L'ID webhook creato dall'orologio per gli aggiornamenti del livello della batteria.
Potrebbe essere necessario per il debug.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">の上</string>
<string id="MenuItemOff">オフ</string>
<string id="MenuItemTap">タップ</string>
<string id="MenuItemMenu">メニュー</string>
<string id="Confirm">もちろん?</string>
<string id="Executed" scope="glance">確認済み</string>
<string id="NoPhone" scope="glance">電話が接続されていません</string>
<string id="NoInternet">インターネット接続なし</string>
<string id="NoResponse">応答がありません。インターネット接続を確認してください</string>
@ -37,26 +34,37 @@
<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="GlanceMenu" scope="glance">メニュー</string>
<string id="Memory" scope="glance">メモリ</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="SettingsAppTimeout">秒単位のタイムアウト。デバイスのバッテリーを節約するために、この期間非アクティブになった後はアプリケーションを終了してください。</string>
<string id="SettingsConfirmTimeout">この時間 (秒単位) が経過すると、アクションの確認ダイアログが自動的に閉じられ、アクションがキャンセルされます。タイムアウトを無効にするには、0 に設定します。</string>
<string id="SettingsMenuItemStyle">メニュー項目のスタイル。</string>
<string id="SettingsMenuItemStyleIcons">アイコン</string>
<string id="SettingsMenuItemStyleText">追加テキスト</string>
<string id="SettingsCacheConfig">アプリケーションはメニュー構成をキャッシュする必要がありますか?</string>
<string id="SettingsClearCache">次回アプリケーションが既存のキャッシュをクリアする必要があるかどうか
始めましたか?</string>
<string id="SettingsAppTimeout">秒単位のタイムアウト。この期間が経過したらアプリケーションを終了してください
デバイスのバッテリーを節約するために非アクティブにします。</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>
</strings>
<string id="SettingsWidgetStart">(ウィジェットのみ) ウィジェットからアプリを自動起動します
タップを待たずに</string>
<string id="SettingsEnableBatteryLevel">時計のバッテリーを送信するバックグラウンド サービスを有効にする
ホームアシスタントレベル。</string>
<string id="SettingsBatteryLevelRefreshRate">バックグラウンドのリフレッシュ レート (分単位)。
サービスはバッテリー残量の送信を繰り返す必要があります。</string>
<string id="WebhookId">(読み取り専用) バッテリー レベルの更新のためにウォッチによって作成された Webhook ID。
デバッグのためにこれが必要になる場合があります。</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">~에</string>
<string id="MenuItemOff">끄다</string>
<string id="MenuItemTap">수도꼭지</string>
<string id="MenuItemMenu">메뉴</string>
<string id="Confirm">확신하는?</string>
<string id="Executed" scope="glance">확인됨</string>
<string id="NoPhone" scope="glance">전화 연결 없음</string>
<string id="NoInternet">인터넷에 연결되지 않음</string>
<string id="NoResponse">응답이 없습니다. 인터넷 연결을 확인하세요.</string>
@ -37,26 +34,37 @@
<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="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="GlanceMenu" scope="glance">메뉴</string>
<string id="Memory" scope="glance">메모리</string>
<!-- 설정 GUI의 경우 -->
<string id="SettingsSelect">선택하다...</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="SettingsAppTimeout">시간 초과(초)입니다. 장치 배터리를 절약하려면 이 비활성 기간 후에 애플리케이션을 종료하십시오.</string>
<string id="SettingsConfirmTimeout">이 시간(초)이 지나면 작업에 대한 확인 대화 상자가 자동으로 닫히고 작업이 취소됩니다. 시간 초과를 비활성화하려면 0으로 설정합니다.</string>
<string id="SettingsMenuItemStyle">메뉴 항목 스타일.</string>
<string id="SettingsMenuItemStyleIcons">아이콘</string>
<string id="SettingsMenuItemStyleText">추가 텍스트</string>
<string id="SettingsCacheConfig">애플리케이션이 메뉴 구성을 캐시해야 합니까?</string>
<string id="SettingsClearCache">다음 번에 애플리케이션이 기존 캐시를 지워야 할까요?
시작됐나요?</string>
<string id="SettingsAppTimeout">시간 초과(초)입니다. 이 기간이 지나면 응용 프로그램을 종료하십시오.
장치 배터리를 절약하기 위해 활동하지 않습니다.</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>
</strings>
<string id="SettingsWidgetStart">(위젯만 해당) 위젯에서 자동으로 애플리케이션 시작
탭을 기다리지 않고.</string>
<string id="SettingsEnableBatteryLevel">시계 배터리를 보내려면 백그라운드 서비스를 활성화하세요.
홈어시스턴트 수준.</string>
<string id="SettingsBatteryLevelRefreshRate">배경이 재생되는 새로 고침 빈도(분)입니다.
서비스는 배터리 잔량 전송을 반복해야 합니다.</string>
<string id="WebhookId">(읽기 전용) 배터리 잔량 업데이트를 위해 시계에서 생성된 웹훅 ID입니다.
디버깅을 위해 이 정보가 필요할 수 있습니다.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Ieslēgts</string>
<string id="MenuItemOff">Izslēgts</string>
<string id="MenuItemTap">Krāns</string>
<string id="MenuItemMenu">Izvēlne</string>
<string id="Confirm">Protams?</string>
<string id="Executed" scope="glance">Apstiprināts</string>
<string id="NoPhone" scope="glance">Nav tālruņa savienojuma</string>
<string id="NoInternet">Nav interneta savienojuma</string>
<string id="NoResponse">Nav atbildes, pārbaudiet interneta savienojumu</string>
@ -37,26 +34,37 @@
<string id="NoJson">No HTTP pieprasījuma netika atgriezts neviens JSON fails.</string>
<string id="UnhandledHttpErr">HTTP pieprasījums atgrieza kļūdas kodu =</string>
<string id="TrailingSlashErr">API URL beigās nedrīkst būt slīpsvītra “/”</string>
<string id="WebhookFailed">Neizdevās reģistrēt Web aizķeri</string>
<string id="TemplateError">Neizdevās renderēt veidni</string>
<string id="Available" scope="glance">Pieejams</string>
<string id="Checking" scope="glance">Notiek pārbaude...</string>
<string id="Unavailable" scope="glance">Nav pieejams</string>
<string id="Unconfigured" scope="glance">Nav konfigurēts</string>
<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>
<!-- Iestatījumu GUI -->
<string id="SettingsSelect">Izvēlieties...</string>
<string id="SettingsApiKey">API atslēga Home Assistant.</string>
<string id="SettingsApiKeyPrompt">Ilgmūžīgs piekļuves marķieris.</string>
<string id="SettingsApiUrl">HomeAssistant API URL.</string>
<string id="SettingsConfigUrl">URL izvēlnes konfigurācijai (JSON).</string>
<string id="SettingsAppTimeout">Taimauts sekundēs. Pēc šī neaktivitātes perioda izejiet no lietojumprogrammas, lai taupītu ierīces akumulatoru.</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="SettingsMenuItemStyle">Izvēlnes vienuma stils.</string>
<string id="SettingsMenuItemStyleIcons">Ikonas</string>
<string id="SettingsMenuItemStyleText">Papildu teksts</string>
<string id="SettingsCacheConfig">Vai lietojumprogrammai vajadzētu saglabāt izvēlnes konfigurāciju kešatmiņā?</string>
<string id="SettingsClearCache">Ja lietojumprogramma nākamreiz notīra esošo kešatmiņu
sākās?</string>
<string id="SettingsAppTimeout">Taimauts sekundēs. Izejiet no lietojumprogrammas pēc šī perioda
neaktivitāte, lai taupītu ierīces akumulatoru.</string>
<string id="SettingsConfirmTimeout">Pēc šī laika (sekundēs) tiek parādīts apstiprinājuma dialoglodziņš
darbība tiek automātiski aizvērta 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>
<string id="RightToLeft">No labās uz kreiso</string>
<string id="SettingsWidgetStart">(tikai logrīkam) Automātiski startējiet lietojumprogrammu no logrīka, negaidot pieskārienu.</string>
<string id="SettingsEnableBatteryLevel">Iespējojiet fona pakalpojumu, lai uz Home Assistant nosūtītu pulksteņa akumulatora uzlādes līmeni.</string>
<string id="SettingsBatteryLevelRefreshRate">Atsvaidzes intensitāte (minūtēs), ar kādu fona pakalpojumam ir jāatkārto akumulatora līmeņa nosūtīšana.</string>
</strings>
<string id="SettingsWidgetStart">(tikai logrīkam) Automātiski startējiet lietojumprogrammu no logrīka
negaidot pieskārienu.</string>
<string id="SettingsEnableBatteryLevel">Iespējojiet fona pakalpojumu, lai nosūtītu pulksteņa akumulatoru
Mājas palīga līmenī.</string>
<string id="SettingsBatteryLevelRefreshRate">Atsvaidzes intensitāte (minūtēs), ar kādu fons
pakalpojumam ir jāatkārto akumulatora līmeņa nosūtīšana.</string>
<string id="WebhookId">(Tikai lasāms) Web aizķeres ID, ko pulkstenis izveidojis akumulatora uzlādes līmeņa atjauninājumiem.
Tas var būt nepieciešams atkļūdošanai.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Įjungta</string>
<string id="MenuItemOff">Išjungta</string>
<string id="MenuItemTap">Bakstelėkite</string>
<string id="MenuItemMenu">Meniu</string>
<string id="Confirm">Žinoma?</string>
<string id="Executed" scope="glance">Patvirtinta</string>
<string id="NoPhone" scope="glance">Nėra telefono ryšio</string>
<string id="NoInternet">Nėra interneto ryšio</string>
<string id="NoResponse">Neatsako, patikrinkite interneto ryšį</string>
@ -37,26 +34,37 @@
<string id="NoJson">Joks JSON negrąžintas iš HTTP užklausos.</string>
<string id="UnhandledHttpErr">HTTP užklausa grąžino klaidos kodą =</string>
<string id="TrailingSlashErr">API URL pabaigoje negali būti pasvirojo brūkšnio „/“</string>
<string id="Available" scope="glance">Galima</string>
<string id="WebhookFailed">Nepavyko užregistruoti Webhook</string>
<string id="TemplateError">Nepavyko pateikti šablono</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>
<!-- Dėl nustatymų GUI -->
<string id="SettingsSelect">Pasirinkite...</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="SettingsAppTimeout">Skirtasis laikas sekundėmis. Po šio neveiklumo laikotarpio išeikite iš programos, kad taupytumėte įrenginio akumuliatorių.</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="SettingsMenuItemStyle">Meniu elemento stilius.</string>
<string id="SettingsMenuItemStyleIcons">Piktogramos</string>
<string id="SettingsMenuItemStyleText">Papildomas tekstas</string>
<string id="SettingsCacheConfig">Ar programa turėtų talpykloje išsaugoti meniu konfigūraciją?</string>
<string id="SettingsClearCache">Ar programa kitą kartą išvalys esamą talpyklą
prasidėjo?</string>
<string id="SettingsAppTimeout">Skirtasis laikas sekundėmis. Išeikite iš programos pasibaigus šiam laikotarpiui
neaktyvumas, kad taupytų įrenginio akumuliatorių.</string>
<string id="SettingsConfirmTimeout">Po šio laiko (sekundėmis) atsiras patvirtinimo dialogo langas
veiksmas 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="SettingsEnableBatteryLevel">Įgalinkite foninę paslaugą, kad į „Home Assistant“ būtų išsiųstas laikrodžio akumuliatoriaus lygis.</string>
<string id="SettingsBatteryLevelRefreshRate">Atnaujinimo dažnis (minutėmis), kuriuo foninė paslauga turėtų pakartoti baterijos lygio siuntimą.</string>
</strings>
<string id="SettingsWidgetStart">(Tik valdiklis) Automatiškai paleiskite programą iš valdiklio
nelaukdamas bakstelėjimo.</string>
<string id="SettingsEnableBatteryLevel">Įgalinkite foninę paslaugą, kad išsiųstumėte laikrodžio bateriją
lygiu iki namų asistento.</string>
<string id="SettingsBatteryLevelRefreshRate">Fono atnaujinimo dažnis (minutėmis).
paslauga turėtų pakartoti baterijos lygio siuntimą.</string>
<string id="WebhookId">(Tik skaitoma) Laikrodžio sukurtas „Webhook“ ID, kad būtų galima atnaujinti akumuliatoriaus lygį.
Jums gali prireikti derinimo.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">Av</string>
<string id="MenuItemTap">Trykk på</string>
<string id="MenuItemMenu">Meny</string>
<string id="Confirm">Sikker?</string>
<string id="Executed" scope="glance">Bekreftet</string>
<string id="NoPhone" scope="glance">Ingen telefonforbindelse</string>
<string id="NoInternet">Ingen Internett-tilkobling</string>
<string id="NoResponse">Ingen svar, sjekk Internett-tilkoblingen</string>
@ -37,26 +34,37 @@
<string id="NoJson">Ingen JSON returnert fra HTTP-forespørsel.</string>
<string id="UnhandledHttpErr">HTTP-forespørsel returnerte feilkode =</string>
<string id="TrailingSlashErr">API URL må ikke ha en etterfølgende skråstrek '/'</string>
<string id="WebhookFailed">Kunne ikke registrere Webhook</string>
<string id="TemplateError">Kunne ikke gjengi malen</string>
<string id="Available" scope="glance">Tilgjengelig</string>
<string id="Checking" scope="glance">Sjekker...</string>
<string id="Unavailable" scope="glance">Utilgjengelig</string>
<string id="Unconfigured" scope="glance">Ukonfigurert</string>
<string id="Cached" scope="glance">Bufret</string>
<string id="GlanceMenu" scope="glance">Meny</string>
<string id="Memory" scope="glance">Hukommelse</string>
<!-- For innstillingene GUI -->
<string id="SettingsSelect">Plukke ut...</string>
<string id="SettingsApiKey">API-nøkkel for HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Langlevd tilgangstoken.</string>
<string id="SettingsApiUrl">URL for HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL for menykonfigurasjon (JSON).</string>
<string id="SettingsAppTimeout">Tidsavbrudd i sekunder. Avslutt applikasjonen etter denne perioden med inaktivitet for å spare enhetens batteri.</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="SettingsMenuItemStyle">Menyelementstil.</string>
<string id="SettingsMenuItemStyleIcons">Ikoner</string>
<string id="SettingsMenuItemStyleText">Ekstra tekst</string>
<string id="SettingsCacheConfig">Skal applikasjonen bufre menykonfigurasjonen?</string>
<string id="SettingsClearCache">Skal applikasjonen tømme den eksisterende cachen neste gang den er det
startet?</string>
<string id="SettingsAppTimeout">Tidsavbrudd i sekunder. Avslutt søknaden etter denne perioden på
inaktivitet for å spare enhetens batteri.</string>
<string id="SettingsConfirmTimeout">Etter denne tiden (i sekunder), vises en bekreftelsesdialog for en
handlingen lukkes 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>
<string id="RightToLeft">Høyre til venstre</string>
<string id="SettingsWidgetStart">(Kun widget) Start applikasjonen automatisk fra widgeten uten å vente på et trykk.</string>
<string id="SettingsEnableBatteryLevel">Aktiver bakgrunnstjenesten for å sende klokkens batterinivå til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Oppdateringshastigheten (i minutter) som bakgrunnstjenesten skal gjenta sendingen av batterinivået med.</string>
</strings>
<string id="SettingsWidgetStart">(Kun widget) Start applikasjonen automatisk fra widgeten
uten å vente på et trykk.</string>
<string id="SettingsEnableBatteryLevel">Aktiver bakgrunnstjenesten for å sende klokkebatteriet
nivå til Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Oppdateringshastigheten (i minutter) som bakgrunnen
tjenesten skal gjenta sendingen av batterinivået.</string>
<string id="WebhookId">(Skrivebeskyttet) Webhook-IDen opprettet av klokken for oppdateringer av batterinivå.
Du kan kreve dette for feilsøking.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">NA</string>
<string id="MenuItemOff">Wyłączony</string>
<string id="MenuItemTap">Uzyskiwać</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">Jasne?</string>
<string id="Executed" scope="glance">Potwierdzony</string>
<string id="NoPhone" scope="glance">Brak połączenia telefonicznego</string>
<string id="NoInternet">Brak połączenia z internetem</string>
<string id="NoResponse">Brak odpowiedzi, sprawdź połączenie internetowe</string>
@ -37,26 +34,37 @@
<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="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="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Pamięć</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="SettingsApiUrl">Adres URL interfejsu API HomeAssistant.</string>
<string id="SettingsConfigUrl">Adres URL konfiguracji menu (JSON).</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="SettingsMenuItemStyle">Styl pozycji menu.</string>
<string id="SettingsMenuItemStyleIcons">Ikony</string>
<string id="SettingsMenuItemStyleText">Dodatkowy tekst</string>
<string id="SettingsCacheConfig">Czy aplikacja powinna buforować konfigurację menu?</string>
<string id="SettingsClearCache">Czy następnym razem aplikacja powinna wyczyścić istniejącą pamięć podręczną
Rozpoczęty?</string>
<string id="SettingsAppTimeout">Limit czasu w sekundach. Wyjdź z aplikacji po upływie tego okresu
bezczynności, aby oszczędzać baterię urządzenia.</string>
<string id="SettingsConfirmTimeout">Po tym czasie (w sekundach) pojawi się okno dialogowe z potwierdzeniem
akcja zostaje automatycznie zamknięta, a akcja 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="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ć poziom naładowania baterii zegara do Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Częstotliwość odświeżania (w minutach), z jaką usługa działająca w tle powinna powtarzać wysyłanie informacji o poziomie baterii.</string>
</strings>
<string id="SettingsWidgetStart">(Tylko widget) Automatycznie uruchamiaj aplikację z poziomu widgetu
bez czekania na dotknięcie.</string>
<string id="SettingsEnableBatteryLevel">Włącz usługę w tle, aby wysłać baterię zegara
poziom do Asystenta Domowego.</string>
<string id="SettingsBatteryLevelRefreshRate">Częstotliwość odświeżania (w minutach), z jaką tło
serwis powinien powtórzyć wysyłanie poziomu naładowania baterii.</string>
<string id="WebhookId">(Tylko do odczytu) Identyfikator webhooka utworzony przez zegarek w celu aktualizacji poziomu baterii.
Możesz tego potrzebować do debugowania.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Sobre</string>
<string id="MenuItemOff">Desligado</string>
<string id="MenuItemTap">Tocar</string>
<string id="MenuItemMenu">Cardápio</string>
<string id="Confirm">Claro?</string>
<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>
@ -37,26 +34,37 @@
<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="WebhookFailed">Falha ao registrar o Webhook</string>
<string id="TemplateError">Falha ao renderizar o modelo</string>
<string id="Available" scope="glance">Disponível</string>
<string id="Checking" scope="glance">Verificando...</string>
<string id="Unavailable" scope="glance">Indisponível</string>
<string id="Unconfigured" scope="glance">Não configurado</string>
<string id="Cached" scope="glance">Em cache</string>
<string id="GlanceMenu" scope="glance">Cardápio</string>
<string id="Memory" scope="glance">Memória</string>
<!-- Para a GUI de configurações -->
<string id="SettingsSelect">Selecione...</string>
<string id="SettingsApiKey">Chave de 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="SettingsAppTimeout">Tempo limite em segundos. Saia do aplicativo após esse período de inatividade para economizar bateria do aparelho.</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="SettingsMenuItemStyle">Estilo do item de menu.</string>
<string id="SettingsMenuItemStyleIcons">Ícones</string>
<string id="SettingsMenuItemStyleText">Texto Adicional</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 dispositivo.</string>
<string id="SettingsConfirmTimeout">Após este tempo (em segundos), uma caixa de diálogo de confirmação para um
a 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 relógio ao 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 do nível da bateria.</string>
</strings>
<string id="SettingsWidgetStart">(Somente widget) Iniciar automaticamente o aplicativo a partir do widget
sem esperar por um toque.</string>
<string id="SettingsEnableBatteryLevel">Habilite o serviço em segundo plano para enviar a bateria do relógio
nível para Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">A taxa de atualização (em minutos) na qual o plano de fundo
o serviço deve repetir o envio do nível da bateria.</string>
<string id="WebhookId">(Somente leitura) O ID do Webhook criado pelo relógio para atualizações do nível da bateria.
Você pode precisar disso para depuração.</string>
</strings>

View File

@ -20,43 +20,51 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Pe</string>
<string id="MenuItemOff">Oprit</string>
<string id="MenuItemTap">Atingeți</string>
<string id="MenuItemMenu">Meniul</string>
<string id="Confirm">Sigur?</string>
<string id="Executed" scope="glance">Confirmat</string>
<string id="NoPhone" scope="glance">Fără conexiune telefonică</string>
<string id="NoInternet">Fără conexiune internet</string>
<string id="NoResponse">Niciun răspuns, verificați conexiunea la internet</string>
<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 solicitările.</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="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>
<string id="TemplateError">Șablonul a eșuat</string>
<string id="Available" scope="glance">Disponibil</string>
<string id="Checking" scope="glance">Control...</string>
<string id="Unavailable" scope="glance">Indisponibil</string>
<string id="Unconfigured" scope="glance">Neconfigurat</string>
<string id="Cached" scope="glance">În cache</string>
<string id="GlanceMenu" scope="glance">Meniul</string>
<string id="Memory" scope="glance">Memorie</string>
<!-- Pentru GUI de setări -->
<string id="SettingsSelect">Selectați...</string>
<string id="SettingsApiKey">Cheie API pentru HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token de acces cu viață lungă.</string>
<string id="SettingsApiUrl">Adresa URL pentru API-ul HomeAssistant.</string>
<string id="SettingsConfigUrl">URL pentru configurarea meniului (JSON).</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="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="SettingsMenuItemStyle">Stilul elementului de meniu.</string>
<string id="SettingsMenuItemStyleIcons">Pictograme</string>
<string id="SettingsMenuItemStyleText">Text suplimentar</string>
<string id="SettingsCacheConfig">Ar trebui aplicația să memoreze în cache configurația meniului?</string>
<string id="SettingsClearCache">Dacă aplicația șterge memoria cache existentă data viitoare
început?</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="SettingsConfirmTimeout">După acest timp (în secunde), un dialog de confirmare pentru un
acțiunea 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>
<string id="RightToLeft">De la dreapta la stanga</string>
<string id="SettingsWidgetStart">(Numai widget) Porniți automat aplicația din widget fără a aștepta o atingere.</string>
<string id="SettingsEnableBatteryLevel">Activați serviciul de fundal pentru a trimite nivelul bateriei ceasului către Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Rata de reîmprospătare (în minute) la care serviciul de fundal ar trebui să repete trimiterea nivelului bateriei.</string>
</strings>
<string id="SettingsWidgetStart">(Numai widget) Porniți automat aplicația din widget
fără să aștepte o atingere.</string>
<string id="SettingsEnableBatteryLevel">Activați serviciul de fundal pentru a trimite bateria ceasului
nivel la Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Rata de reîmprospătare (în minute) la care fundalul
serviciul ar trebui să repete trimiterea nivelului bateriei.</string>
<string id="WebhookId">(Numai citire) ID-ul Webhook creat de ceas pentru actualizările nivelului bateriei.
Este posibil să aveți nevoie de acest lucru pentru depanare.</string>
</strings>

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Distributed under MIT Licence
See https://github.com/house-of-abbey/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
-->
<!--
Generated by Google Translate: English to Slovak
Vygenerované službou Google Translate z angličtiny
-->
<strings>
<string id="Confirm">Potvrďte</string>
<string id="Executed" scope="glance">Spustený</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Zapnuté</string>
<string id="MenuItemOff">Vypnuté</string>
<string id="MenuItemTap">Klepnite</string>
<string id="MenuItemMenu">Ponuka</string>
<string id="Confirm">Samozrejme?</string>
<string id="Confirm">Potvrďte</string>
<string id="Executed" scope="glance">Spustený</string>
<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>
@ -37,26 +34,37 @@
<string id="NoJson">Z požiadavky HTTP sa nevrátil žiadny JSON.</string>
<string id="UnhandledHttpErr">Požiadavka HTTP vrátila kód chyby =</string>
<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="Checking" scope="glance">Prebieha kontrola...</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>
<!-- 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="SettingsApiUrl">URL pre HomeAssistant API.</string>
<string id="SettingsConfigUrl">Webová adresa pre konfiguráciu ponuky (JSON).</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="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="SettingsMenuItemStyle">Štýl položky menu.</string>
<string id="SettingsMenuItemStyleIcons">ikony</string>
<string id="SettingsMenuItemStyleText">Doplnkový text</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 nabudúce vymazať existujúcu vyrovnávaciu pamäť
začal?</string>
<string id="SettingsAppTimeout">Časový limit v sekundách. Po uplynutí tejto doby aplikáciu ukončite
nečinnosti, aby sa šetrila batéria zariadenia.</string>
<string id="SettingsConfirmTimeout">Po uplynutí tejto doby (v sekundách) sa zobrazí dialógové okno s potvrdením
akcia sa automaticky uzavrie 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="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 úrovne batérie hodín do domáceho asistenta.</string>
<string id="SettingsBatteryLevelRefreshRate">Obnovovacia frekvencia (v minútach), pri ktorej by služba na pozadí mala opakovať odosielanie úrovne batérie.</string>
</strings>
<string id="SettingsWidgetStart">(Len miniaplikácia) Automaticky spustiť aplikáciu z miniaplikácie
bez čakania na klepnutie.</string>
<string id="SettingsEnableBatteryLevel">Povoľte službu na pozadí na odoslanie batérie hodín
úroveň na Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Obnovovacia frekvencia (v minútach), pri ktorej je pozadie
servis by mal zopakovať odoslanie úrovne batérie.</string>
<string id="WebhookId">(Iba na čítanie) Webhook ID vytvorený hodinkami na aktualizáciu úrovne batérie.
Možno to budete potrebovať na ladenie.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Vklopljeno</string>
<string id="MenuItemOff">Izključeno</string>
<string id="MenuItemTap">Tapnite</string>
<string id="MenuItemMenu">meni</string>
<string id="Confirm">Seveda?</string>
<string id="Executed" scope="glance">Potrjeno</string>
<string id="NoPhone" scope="glance">Ni telefonske povezave</string>
<string id="NoInternet">Ni internetne povezave</string>
<string id="NoResponse">Ni odgovora, preverite internetno povezavo</string>
@ -37,26 +34,37 @@
<string id="NoJson">Zahteva HTTP ni vrnila JSON.</string>
<string id="UnhandledHttpErr">Zahteva HTTP je vrnila kodo napake =</string>
<string id="TrailingSlashErr">URL API-ja ne sme imeti končne poševnice '/'</string>
<string id="WebhookFailed">Webhooka ni bilo mogoče registrirati</string>
<string id="TemplateError">Upodabljanje predloge ni uspelo</string>
<string id="Available" scope="glance">Na voljo</string>
<string id="Checking" scope="glance">Preverjanje ...</string>
<string id="Unavailable" scope="glance">Ni na voljo</string>
<string id="Unconfigured" scope="glance">Nekonfigurirano</string>
<string id="Cached" scope="glance">Predpomnjeno</string>
<string id="GlanceMenu" scope="glance">meni</string>
<string id="Memory" scope="glance">Spomin</string>
<!-- Za nastavitve GUI -->
<string id="SettingsSelect">Izberite ...</string>
<string id="SettingsApiKey">API ključ za HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Dolgoživ dostopni žeton.</string>
<string id="SettingsApiUrl">URL za HomeAssistant API.</string>
<string id="SettingsApiUrl">URL za API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL za konfiguracijo menija (JSON).</string>
<string id="SettingsAppTimeout">Časovna omejitev v sekundah. Po tem obdobju nedejavnosti zaprite aplikacijo, da prihranite baterijo naprave.</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="SettingsMenuItemStyle">Slog elementa menija.</string>
<string id="SettingsMenuItemStyleIcons">Ikone</string>
<string id="SettingsMenuItemStyleText">Dodatno besedilo</string>
<string id="SettingsCacheConfig">Ali naj aplikacija predpomni konfiguracijo menija?</string>
<string id="SettingsClearCache">Ali naj aplikacija naslednjič počisti obstoječi predpomnilnik
začelo?</string>
<string id="SettingsAppTimeout">Časovna omejitev v sekundah. Po tem obdobju zaprite aplikacijo
nedejavnosti, da prihranite baterijo naprave.</string>
<string id="SettingsConfirmTimeout">Po tem času (v sekundah) se prikaže potrditveno pogovorno okno za an
dejanje se samodejno zapre in dejanje 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>
<string id="RightToLeft">Od desne proti levi</string>
<string id="SettingsWidgetStart">(Samo pripomoček) Samodejno zaženite aplikacijo iz pripomočka, ne da bi čakali na dotik.</string>
<string id="SettingsEnableBatteryLevel">Omogočite storitev v ozadju za pošiljanje ravni baterije ure domačemu pomočniku.</string>
<string id="SettingsBatteryLevelRefreshRate">Hitrost osveževanja (v minutah), pri kateri naj storitev v ozadju ponavlja pošiljanje stanja baterije.</string>
</strings>
<string id="SettingsWidgetStart">(Samo pripomoček) Samodejni zagon aplikacije iz pripomočka
brez čakanja na pipo.</string>
<string id="SettingsEnableBatteryLevel">Omogočite storitev v ozadju za pošiljanje baterije ure
stopnje do domačega pomočnika.</string>
<string id="SettingsBatteryLevelRefreshRate">Hitrost osveževanja (v minutah), pri kateri je ozadje
servis bi moral ponoviti pošiljanje stanja baterije.</string>
<string id="WebhookId">(Samo za branje) ID Webhook, ki ga ustvari ura za posodobitve ravni baterije.
To boste morda potrebovali za odpravljanje napak.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">En</string>
<string id="MenuItemOff">Apagado</string>
<string id="MenuItemTap">Grifo</string>
<string id="MenuItemMenu">Menú</string>
<string id="Confirm">¿Seguro?</string>
<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>
@ -37,26 +34,37 @@
<string id="NoJson">No se devolvió ningún 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="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="Cached" scope="glance">En caché</string>
<string id="GlanceMenu" scope="glance">Menú</string>
<string id="Memory" scope="glance">Memoria</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="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="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="SettingsMenuItemStyle">Estilo de elemento de menú.</string>
<string id="SettingsMenuItemStyleIcons">Iconos</string>
<string id="SettingsMenuItemStyleText">Texto adicional</string>
<string id="SettingsCacheConfig">¿La aplicación debería almacenar en caché la configuración del menú?</string>
<string id="SettingsClearCache">¿Debería la aplicación borrar el caché existente la próxima vez?
¿comenzó?</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="SettingsConfirmTimeout">Después de este tiempo (en segundos), aparecerá un cuadro de diálogo de confirmación para una
La acción se cierra automáticamente y la acción se cancela. 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 reloj 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 del nivel de la batería.</string>
</strings>
<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 la batería del reloj.
nivel a Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">La frecuencia de actualización (en minutos) a la que se reproduce el fondo.
El servicio debe repetir enviando el nivel de batería.</string>
<string id="WebhookId">(Solo lectura) El ID de Webhook creado por el reloj para actualizaciones del nivel de batería.
Es posible que necesite esto para la depuración.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">Av</string>
<string id="MenuItemTap">Knacka</string>
<string id="MenuItemMenu">Meny</string>
<string id="Confirm">Säker?</string>
<string id="Executed" scope="glance">Bekräftad</string>
<string id="NoPhone" scope="glance">Ingen telefonanslutning</string>
<string id="NoInternet">Ingen internetanslutning</string>
<string id="NoResponse">Inget svar, kontrollera internetanslutningen</string>
@ -37,26 +34,37 @@
<string id="NoJson">Ingen JSON returnerades från HTTP-begäran.</string>
<string id="UnhandledHttpErr">HTTP-begäran returnerade felkod =</string>
<string id="TrailingSlashErr">API-URL får inte ha ett snedstreck '/'</string>
<string id="WebhookFailed">Det gick inte att registrera Webhook</string>
<string id="TemplateError">Det gick inte att rendera mallen</string>
<string id="Available" scope="glance">Tillgängliga</string>
<string id="Checking" scope="glance">Kontroll...</string>
<string id="Unavailable" scope="glance">Inte tillgänglig</string>
<string id="Unconfigured" scope="glance">Okonfigurerad</string>
<string id="Cached" scope="glance">Cachad</string>
<string id="GlanceMenu" scope="glance">Meny</string>
<string id="Memory" scope="glance">Minne</string>
<!-- För inställningar GUI -->
<string id="SettingsSelect">Välj...</string>
<string id="SettingsApiKey">API-nyckel för HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Långlivad åtkomsttoken.</string>
<string id="SettingsApiUrl">URL för HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL för menykonfiguration (JSON).</string>
<string id="SettingsAppTimeout">Timeout på sekunder. Avsluta programmet efter denna period av inaktivitet för att spara enhetens batteri.</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="SettingsMenuItemStyle">Menyalternativ stil.</string>
<string id="SettingsMenuItemStyleIcons">Ikoner</string>
<string id="SettingsMenuItemStyleText">Ytterligare text</string>
<string id="SettingsCacheConfig">Ska programmet cachelagra menykonfigurationen?</string>
<string id="SettingsClearCache">Ska applikationen rensa den befintliga cachen nästa gång
satte igång?</string>
<string id="SettingsAppTimeout">Timeout på sekunder. Avsluta ansökan efter denna period av
inaktivitet för att spara enhetens batteri.</string>
<string id="SettingsConfirmTimeout">Efter denna tid (i sekunder) visas en bekräftelsedialog för en
åtgärden stängs 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>
<string id="RightToLeft">Höger till vänster</string>
<string id="SettingsWidgetStart">(Endast widget) Starta programmet automatiskt från widgeten utan att vänta på ett tryck.</string>
<string id="SettingsEnableBatteryLevel">Aktivera bakgrundstjänsten för att skicka klockans batterinivå till Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Uppdateringshastigheten (i minuter) med vilken bakgrundstjänsten ska upprepa sändningen av batterinivån.</string>
</strings>
<string id="SettingsWidgetStart">(Endast widget) Starta programmet automatiskt från widgeten
utan att vänta på ett tryck.</string>
<string id="SettingsEnableBatteryLevel">Aktivera bakgrundstjänsten för att skicka klockbatteriet
nivå till Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Uppdateringshastigheten (i minuter) med vilken bakgrunden
tjänsten bör upprepa sändningen av batterinivån.</string>
<string id="WebhookId">(Endast läs) Webhook-ID som skapats av klockan för uppdateringar av batterinivån.
Du kan behöva detta för felsökning.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">บน</string>
<string id="MenuItemOff">ปิด</string>
<string id="MenuItemTap">แตะ</string>
<string id="MenuItemMenu">เมนู</string>
<string id="Confirm">แน่นอน?</string>
<string id="Executed" scope="glance">ยืนยันแล้ว</string>
<string id="NoPhone" scope="glance">ไม่มีการเชื่อมต่อโทรศัพท์</string>
<string id="NoInternet">ไม่มีการเชื่อมต่ออินเทอร์เน็ต</string>
<string id="NoResponse">ไม่มีการตอบสนอง ตรวจสอบการเชื่อมต่ออินเทอร์เน็ต</string>
@ -37,26 +34,37 @@
<string id="NoJson">ไม่มี JSON ที่ส่งคืนจากคำขอ HTTP</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="Unconfigured" scope="glance">ไม่ได้กำหนดค่า</string>
<string id="Cached" scope="glance">แคช</string>
<string id="GlanceMenu" scope="glance">เมนู</string>
<string id="Memory" scope="glance">หน่วยความจำ</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="SettingsAppTimeout">หมดเวลาเป็นวินาที ออกจากแอปพลิเคชันหลังจากไม่มีการใช้งานเป็นระยะเวลาหนึ่งเพื่อประหยัดแบตเตอรี่ของอุปกรณ์</string>
<string id="SettingsConfirmTimeout">หลังจากเวลานี้ (เป็นวินาที) กล่องโต้ตอบการยืนยันสำหรับการดำเนินการจะปิดโดยอัตโนมัติและการดำเนินการจะถูกยกเลิก ตั้งค่าเป็น 0 เพื่อปิดใช้งานการหมดเวลา</string>
<string id="SettingsMenuItemStyle">รูปแบบรายการเมนู</string>
<string id="SettingsMenuItemStyleIcons">ไอคอน</string>
<string id="SettingsMenuItemStyleText">ข้อความเพิ่มเติม</string>
<string id="SettingsCacheConfig">แอปพลิเคชันควรแคชการกำหนดค่าเมนูหรือไม่</string>
<string id="SettingsClearCache">หากแอปพลิเคชันล้างแคชที่มีอยู่ในครั้งต่อไป
เริ่ม?</string>
<string id="SettingsAppTimeout">หมดเวลาเป็นวินาที ออกจากแอปพลิเคชันหลังจากช่วงเวลานี้
ไม่มีการใช้งานเพื่อประหยัดแบตเตอรี่ของอุปกรณ์</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="SettingsBatteryLevelRefreshRate">อัตรารีเฟรช (เป็นนาที) ที่บริการพื้นหลังควรส่งระดับแบตเตอรี่ซ้ำ</string>
</strings>
<string id="SettingsWidgetStart">(วิดเจ็ตเท่านั้น) เริ่มแอปพลิเคชันจากวิดเจ็ตโดยอัตโนมัติ
โดยไม่ต้องรอการแตะ</string>
<string id="SettingsEnableBatteryLevel">เปิดใช้งานบริการพื้นหลังเพื่อส่งแบตเตอรี่นาฬิกา
ระดับผู้ช่วยที่บ้าน</string>
<string id="SettingsBatteryLevelRefreshRate">อัตรารีเฟรช (เป็นนาที) ที่พื้นหลัง
บริการควรส่งระดับแบตเตอรี่ซ้ำ</string>
<string id="WebhookId">(อ่านอย่างเดียว) Webhook ID ที่สร้างโดยนาฬิกาสำหรับการอัปเดตระดับแบตเตอรี่
คุณอาจต้องการสิ่งนี้สำหรับการดีบัก</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">ık</string>
<string id="MenuItemOff">Kapalı</string>
<string id="MenuItemTap">Musluk</string>
<string id="MenuItemMenu">Menü</string>
<string id="Confirm">Elbette?</string>
<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>
@ -36,27 +33,38 @@
<string id="ConfigUrlNotFound">URL bulunamadı. Ayarlarda Olası Yapılandırma URL'si 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="TrailingSlashErr">API URL'sinin sonunda eğik çizgi '/' olmamalıdır</string>
<string id="WebhookFailed">Webhook kaydedilemedi</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ındı</string>
<string id="GlanceMenu" scope="glance">Menü</string>
<string id="Memory" scope="glance">Hafıza</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="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="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="SettingsMenuItemStyle">Menü öğesi stili.</string>
<string id="SettingsMenuItemStyleIcons">Simgeler</string>
<string id="SettingsMenuItemStyleText">Ek Metin</string>
<string id="SettingsCacheConfig">Uygulama menü yapılandırmasını önbelleğe almalı mı?</string>
<string id="SettingsClearCache">Uygulamanın bir dahaki sefere mevcut önbelleği temizlemesi gerekir mi?
başladı mı?</string>
<string id="SettingsAppTimeout">Saniye cinsinden zaman aşımı. Bu süre sonunda uygulamadan çıkın
cihazın pilinden tasarruf etmek için hareketsizlik.</string>
<string id="SettingsConfirmTimeout">Bu sürenin sonunda (saniye cinsinden), bir onay iletişim kutusu
işlem otomatik olarak kapatılır ve işlem 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="SettingsEnableBatteryLevel">Saatin pil seviyesini Ev Asistanına göndermek için arka plan hizmetini etkinleştirin.</string>
<string id="SettingsBatteryLevelRefreshRate">Arka plan hizmetinin pil seviyesini göndermeyi tekrarlaması gereken yenileme hızı (dakika olarak).</string>
</strings>
<string id="SettingsWidgetStart">(Yalnızca Widget) Uygulamayı widget'tan otomatik olarak başlat
bir dokunuş beklemeden.</string>
<string id="SettingsEnableBatteryLevel">Saat pilini göndermek için arka plan hizmetini etkinleştirin
seviyesini Ev Asistanı'na getirin.</string>
<string id="SettingsBatteryLevelRefreshRate">Arka planın yenileme hızı (dakika cinsinden)
Servis pil seviyesini göndermeyi tekrarlamalıdır.</string>
<string id="WebhookId">(Salt okunur) Saatin pil seviyesi güncellemeleri için oluşturduğu Webhook Kimliği.
Hata ayıklama için buna ihtiyacınız olabilir.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">Увімкнено</string>
<string id="MenuItemOff">Вимкнено</string>
<string id="MenuItemTap">Торкніться</string>
<string id="MenuItemMenu">Меню</string>
<string id="Confirm">Зрозуміло?</string>
<string id="Executed" scope="glance">Підтверджено</string>
<string id="NoPhone" scope="glance">Немає телефонного зв'язку</string>
<string id="NoInternet">Немає підключення до Інтернету</string>
<string id="NoResponse">Немає відповіді, перевірте підключення до Інтернету</string>
@ -37,26 +34,37 @@
<string id="NoJson">Запит HTTP не повертає JSON.</string>
<string id="UnhandledHttpErr">Запит HTTP повернув код помилки =</string>
<string id="TrailingSlashErr">URL-адреса API не повинна містити косу риску '/'</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="GlanceMenu" scope="glance">Меню</string>
<string id="Memory" scope="glance">Пам'ять</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="SettingsAppTimeout">Час очікування в секундах. Вийдіть із програми після цього періоду бездіяльності, щоб заощадити батарею пристрою.</string>
<string id="SettingsConfirmTimeout">Після закінчення цього часу (у секундах) діалогове вікно підтвердження дії автоматично закривається, а дія скасовується. Встановіть 0, щоб вимкнути тайм-аут.</string>
<string id="SettingsMenuItemStyle">Стиль пункту меню.</string>
<string id="SettingsMenuItemStyleIcons">іконки</string>
<string id="SettingsMenuItemStyleText">Додатковий текст</string>
<string id="SettingsCacheConfig">Чи має програма кешувати конфігурацію меню?</string>
<string id="SettingsClearCache">Чи має програма очистити наявний кеш наступного разу
почав?</string>
<string id="SettingsAppTimeout">Час очікування в секундах. Вийдіть із програми після закінчення цього періоду
бездіяльність, щоб зберегти акумулятор пристрою.</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="SettingsBatteryLevelRefreshRate">Частота оновлення (у хвилинах), з якою фонова служба має повторно надсилати рівень заряду акумулятора.</string>
</strings>
<string id="SettingsWidgetStart">(Лише віджет) Автоматично запускати програму з віджета
не чекаючи дотику.</string>
<string id="SettingsEnableBatteryLevel">Увімкніть фонову службу, щоб надіслати батарею годинника
рівень до домашнього помічника.</string>
<string id="SettingsBatteryLevelRefreshRate">Частота оновлення (у хвилинах), з якою працює фон
служба має повторити надсилання рівня заряду батареї.</string>
<string id="WebhookId">(Лише читання) Ідентифікатор Webhook, створений годинником для оновлення рівня заряду акумулятора.
Це може знадобитися для налагодження.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">TRÊN</string>
<string id="MenuItemOff">Tắt</string>
<string id="MenuItemTap">Vỗ nhẹ</string>
<string id="MenuItemMenu">Thực đơn</string>
<string id="Confirm">Chắc chắn?</string>
<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>
@ -37,26 +34,37 @@
<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="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="GlanceMenu" scope="glance">Thực đơn</string>
<string id="Memory" scope="glance">Ký ức</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="SettingsApiUrl">URL cho API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL cho cấu hình menu (JSON).</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="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 lại và hành động đó sẽ bị hủy. Đặt thành 0 để tắt thời gian chờ.</string>
<string id="SettingsMenuItemStyle">Phong cách mục menu.</string>
<string id="SettingsMenuItemStyleIcons">Biểu tượng</string>
<string id="SettingsMenuItemStyleText">Văn bản bổ sung</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 tiếp theo không
đã bắt đầu?</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 này
không hoạt động để tiết kiệm pin thiết bị.</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
hành động được tự động đóng lại và hành động bị hủy bỏ. Đặ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="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">Kích hoạt dịch vụ nền để gửi mức pin đồng hồ đến 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 mức pin.</string>
</strings>
<string id="SettingsWidgetStart">(Chỉ widget) Tự động khởi động ứng dụng từ widget
mà không cần chờ một cú chạm.</string>
<string id="SettingsEnableBatteryLevel">Kích hoạt dịch vụ nền để gửi pin đồng hồ
lên cấp Trợ lý tại nhà.</string>
<string id="SettingsBatteryLevelRefreshRate">Tốc độ làm mới (tính bằng phút) mà nền
dịch vụ sẽ lặp lại việc gửi mức pin.</string>
<string id="WebhookId">(Chỉ đọc) ID Webhook do đồng hồ tạo để cập nhật mức pin.
Bạn có thể yêu cầu điều này để gỡ lỗi.</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">离开</string>
<string id="MenuItemTap">轻敲</string>
<string id="MenuItemMenu">菜单</string>
<string id="Confirm">当然?</string>
<string id="Executed" scope="glance">确认的</string>
<string id="NoPhone" scope="glance">没有电话连接</string>
<string id="NoInternet">没有网络连接</string>
<string id="NoResponse">无响应,请检查互联网连接</string>
@ -37,26 +34,37 @@
<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="GlanceMenu" scope="glance">菜单</string>
<string id="Memory" scope="glance">记忆</string>
<!-- 对于设置 GUI -->
<string id="SettingsSelect">选择...</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="SettingsAppTimeout">超时(以秒为单位)。闲置一段时间后退出应用程序以节省设备电池。</string>
<string id="SettingsConfirmTimeout">在此时间(以秒为单位)之后,操作的确认对话框将自动关闭并取消该操作。设置为 0 以禁用超时。</string>
<string id="SettingsMenuItemStyle">菜单项样式。</string>
<string id="SettingsMenuItemStyleIcons">图标</string>
<string id="SettingsMenuItemStyleText">附加文本</string>
<string id="SettingsCacheConfig">应用程序是否应该缓存菜单配置?</string>
<string id="SettingsClearCache">应用程序下次是否应该清除现有缓存
开始了?</string>
<string id="SettingsAppTimeout">超时(以秒为单位)。在此期限后退出应用程序
不活动以节省设备电池。</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="SettingsBatteryLevelRefreshRate">后台服务应重复发送电池电量的刷新率(以分钟为单位)。</string>
</strings>
<string id="SettingsWidgetStart">(仅限小部件)从小部件自动启动应用程序
无需等待点击</string>
<string id="SettingsEnableBatteryLevel">启用后台服务发送时钟电池
级别为家庭助理。</string>
<string id="SettingsBatteryLevelRefreshRate">背景的刷新率(以分钟为单位)
服务应重复发送电池电量。</string>
<string id="WebhookId">(只读)手表创建的用于电池电量更新的 Webhook ID。
您可能需要它来进行调试。</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn"></string>
<string id="MenuItemOff">離開</string>
<string id="MenuItemTap">輕敲</string>
<string id="MenuItemMenu">選單</string>
<string id="Confirm">當然?</string>
<string id="Executed" scope="glance">確認的</string>
<string id="NoPhone" scope="glance">沒有電話連接</string>
<string id="NoInternet">沒有網路連線</string>
<string id="NoResponse">無響應,請檢查互聯網連接</string>
@ -37,26 +34,37 @@
<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="GlanceMenu" scope="glance">選單</string>
<string id="Memory" scope="glance">記憶</string>
<!-- 對於設定 GUI -->
<string id="SettingsSelect">選擇...</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="SettingsAppTimeout">超時(以秒為單位)。閒置一段時間後退出應用程式以節省設備電池。</string>
<string id="SettingsConfirmTimeout">在此時間(以秒為單位)之後,操作的確認對話方塊將自動關閉並取消該操作。設定為 0 以停用逾時。</string>
<string id="SettingsMenuItemStyle">選單項目樣式。</string>
<string id="SettingsMenuItemStyleIcons">圖示</string>
<string id="SettingsMenuItemStyleText">附加文字</string>
<string id="SettingsCacheConfig">應用程式是否應該快取選單配置?</string>
<string id="SettingsClearCache">應用程式下次是否應該清除現有緩存
開始了?</string>
<string id="SettingsAppTimeout">超時(以秒為單位)。在此期限後退出應用程式
不活動以節省設備電池。</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="SettingsBatteryLevelRefreshRate">後台服務應重複發送電池電量的更新率(以分鐘為單位)。</string>
</strings>
<string id="SettingsWidgetStart">(僅限小工具)從小部件自動啟動應用程
無需等待點擊</string>
<string id="SettingsEnableBatteryLevel">啟用後台服務發送時鐘電池
級別為家庭助理。</string>
<string id="SettingsBatteryLevelRefreshRate">背景的刷新率(以分鐘為單位)
服務應重複發送電池電量。</string>
<string id="WebhookId">(唯讀)手錶創建的用於電池電量更新的 Webhook ID。
您可能需要它來進行調試。</string>
</strings>

View File

@ -20,11 +20,8 @@
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">hidup</string>
<string id="MenuItemOff">Mati</string>
<string id="MenuItemTap">Ketik</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">pasti?</string>
<string id="Executed" scope="glance">Disahkan</string>
<string id="NoPhone" scope="glance">Tiada sambungan Telefon</string>
<string id="NoInternet">Tiada sambungan internet</string>
<string id="NoResponse">Tiada Respons, semak sambungan Internet</string>
@ -37,26 +34,37 @@
<string id="NoJson">Tiada JSON dikembalikan daripada permintaan HTTP.</string>
<string id="UnhandledHttpErr">Permintaan HTTP mengembalikan kod ralat =</string>
<string id="TrailingSlashErr">URL API tidak boleh mempunyai garis miring '/'</string>
<string id="WebhookFailed">Gagal mendaftar Webhook</string>
<string id="TemplateError">Gagal untuk memaparkan templat</string>
<string id="Available" scope="glance">Tersedia</string>
<string id="Checking" scope="glance">Menyemak...</string>
<string id="Unavailable" scope="glance">Tidak ada</string>
<string id="Unconfigured" scope="glance">Tidak dikonfigurasikan</string>
<string id="Cached" scope="glance">Dicache</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Ingatan</string>
<!-- Untuk GUI tetapan -->
<string id="SettingsSelect">Pilih...</string>
<string id="SettingsApiKey">Kunci API untuk HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Token Akses Berumur Panjang.</string>
<string id="SettingsApiUrl">URL untuk API HomeAssistant.</string>
<string id="SettingsConfigUrl">URL untuk konfigurasi menu (JSON).</string>
<string id="SettingsAppTimeout">Tamat masa dalam beberapa saat. Keluar dari aplikasi selepas tempoh tidak aktif ini untuk menjimatkan bateri peranti.</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="SettingsMenuItemStyle">Gaya item menu.</string>
<string id="SettingsMenuItemStyleIcons">ikon</string>
<string id="SettingsMenuItemStyleText">Teks Tambahan</string>
<string id="SettingsCacheConfig">Sekiranya aplikasi cache konfigurasi menu?</string>
<string id="SettingsClearCache">Sekiranya aplikasi mengosongkan cache sedia ada pada masa akan datang
bermula?</string>
<string id="SettingsAppTimeout">Tamat masa dalam beberapa saat. Keluar dari permohonan selepas tempoh ini
tidak aktif untuk menjimatkan bateri peranti.</string>
<string id="SettingsConfirmTimeout">Selepas masa ini (dalam saat), dialog pengesahan untuk a
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>
<string id="RightToLeft">Kanan ke kiri</string>
<string id="SettingsWidgetStart">(Widget sahaja) Mulakan aplikasi secara automatik daripada widget tanpa menunggu satu ketikan.</string>
<string id="SettingsEnableBatteryLevel">Dayakan perkhidmatan latar belakang untuk menghantar paras bateri jam kepada Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">Kadar penyegaran semula (dalam minit) di mana perkhidmatan latar belakang harus mengulangi penghantaran tahap bateri.</string>
</strings>
<string id="SettingsWidgetStart">(Widget sahaja) Mulakan aplikasi secara automatik daripada widget
tanpa menunggu ketuk.</string>
<string id="SettingsEnableBatteryLevel">Dayakan perkhidmatan latar belakang untuk menghantar bateri jam
tahap kepada Pembantu Rumah.</string>
<string id="SettingsBatteryLevelRefreshRate">Kadar muat semula (dalam minit) di mana latar belakang
perkhidmatan harus berulang menghantar paras bateri.</string>
<string id="WebhookId">(Baca sahaja) ID Webhook yang dibuat oleh jam tangan untuk kemas kini tahap bateri.
Anda mungkin memerlukan ini untuk penyahpepijatan.</string>
</strings>

View File

@ -13,34 +13,44 @@
-->
<properties>
<property id="api_key" type="string"></property>
<property id="api_key" type="string"></property>
<!--
Internal URL "https://homeassistant.local/api"
External URL "https://<dynamic DNS>/api"
-->
<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 -->
<property id="config_url" type="string"></property>
<property id="api_url" type="string"></property>
<!--
Application timeout in seconds, except 0 for no timeout (default). After this amount of elapsed time
with no activity, exit the application.
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. -->
<property id="cache_config" type="boolean">false</property>
<!--
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.
-->
<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.
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>
<!--
Lean UI with icons vs second level of menu text.
-->
<property id="menu_theme" type="number">0</property>
<!--
Left to right or right to left text. Language dependent.
-->
@ -49,8 +59,8 @@
<!--
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.
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>
@ -60,9 +70,18 @@
<property id="enable_battery_level" type="boolean">false</property>
<!--
If enabled by 'enable_battery_level', the refresh rate (in minutes) at which the background service
should repeat sending the battery level.
If enabled by 'enable_battery_level', the refresh rate (in minutes) at
which the background service should repeat sending the battery level.
-->
<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.
-->
<property id="webhook_id" type="string"></property>
</properties>

View File

@ -37,6 +37,20 @@
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.cache_config"
title="@Strings.SettingsCacheConfig"
>
<settingConfig type="boolean" />
</setting>
<setting
propertyKey="@Properties.clear_cache"
title="@Strings.SettingsClearCache"
>
<settingConfig type="boolean" />
</setting>
<setting
propertyKey="@Properties.app_timeout"
title="@Strings.SettingsAppTimeout"
@ -51,17 +65,6 @@
<settingConfig type="numeric" min="0" />
</setting>
<setting
propertyKey="@Properties.menu_theme"
title="@Strings.SettingsMenuItemStyle"
prompt="@Strings.SettingsSelect"
>
<settingConfig type="list">
<listEntry value="0">@Strings.SettingsMenuItemStyleIcons</listEntry>
<listEntry value="1">@Strings.SettingsMenuItemStyleText</listEntry>
</settingConfig>
</setting>
<setting
propertyKey="@Properties.menu_alignment"
title="@Strings.SettingsTextAlign"
@ -93,4 +96,10 @@
<settingConfig type="numeric" min="5" />
</setting>
<setting
propertyKey="@Properties.webhook_id"
title="@Strings.WebhookId"
>
<settingConfig type="alphaNumeric" readonly="true" />
</setting>
</settings>

View File

@ -13,45 +13,53 @@
-->
<strings>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="MenuItemOn">On</string>
<string id="MenuItemOff">Off</string>
<string id="MenuItemTap">Tap</string>
<string id="MenuItemMenu">Menu</string>
<string id="Confirm">Sure?</string>
<string id="NoPhone" scope="glance">No Phone connection</string>
<string id="NoInternet">No Internet connection</string>
<string id="NoResponse">No Response, check Internet connection</string>
<string id="NoAPIKey" scope="glance">No API key in the application settings</string>
<string id="NoApiUrl" scope="glance">No API URL in the application settings</string>
<string id="NoConfigUrl" scope="glance">No configuration URL in the application settings</string>
<string id="ApiFlood">API calls too rapid. Please slow down your requests.</string>
<string id="ApiUrlNotFound">URL not found. Potential API URL error in settings.</string>
<string id="ConfigUrlNotFound">URL not found. Potential Configuration URL error in settings.</string>
<string id="NoJson">No JSON returned from HTTP request.</string>
<string id="UnhandledHttpErr">HTTP request returned error code = </string>
<string id="TrailingSlashErr">API URL must not have a trailing slash '/'</string>
<string id="Available" scope="glance">Available</string>
<string id="Checking" scope="glance">Checking...</string>
<string id="Unavailable" scope="glance">Unavailable</string>
<string id="Unconfigured" scope="glance">Unconfigured</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="AppName" scope="glance">HomeAssistant</string>
<string id="Confirm">Sure?</string>
<string id="Executed" scope="glance">Confirmed</string>
<string id="NoPhone" scope="glance">No Phone connection</string>
<string id="NoInternet">No Internet connection</string>
<string id="NoResponse">No Response, check Internet connection</string>
<string id="NoAPIKey" scope="glance">No API key in the application settings</string>
<string id="NoApiUrl" scope="glance">No API URL in the application settings</string>
<string id="NoConfigUrl" scope="glance">No configuration URL in the application settings</string>
<string id="ApiFlood">API calls too rapid. Please slow down your requests.</string>
<string id="ApiUrlNotFound">URL not found. Potential API URL error in settings.</string>
<string id="ConfigUrlNotFound">URL not found. Potential Configuration URL error in settings.</string>
<string id="NoJson">No JSON returned from HTTP request.</string>
<string id="UnhandledHttpErr">HTTP request returned error code = </string>
<string id="TrailingSlashErr">API URL must not have a trailing slash '/'</string>
<string id="WebhookFailed">Failed to register Webhook</string>
<string id="TemplateError">Failed to render template</string>
<string id="Available" scope="glance">Available</string>
<string id="Checking" scope="glance">Checking...</string>
<string id="Unavailable" scope="glance">Unavailable</string>
<string id="Unconfigured" scope="glance">Unconfigured</string>
<string id="Cached" scope="glance">Cached</string>
<string id="GlanceMenu" scope="glance">Menu</string>
<string id="Memory" scope="glance">Memory</string>
<!-- For the settings GUI -->
<string id="SettingsSelect">Select...</string>
<string id="SettingsApiKey">API Key for HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Long-Lived Access Token.</string>
<string id="SettingsApiUrl">URL for HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL for menu configuration (JSON).</string>
<string id="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of inactivity to save the device battery.</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="SettingsMenuItemStyle">Menu item style.</string>
<string id="SettingsMenuItemStyleIcons">Icons</string>
<string id="SettingsMenuItemStyleText">Additional Text</string>
<string id="SettingsTextAlign">Left (off) or Right (on) Menu Alignment.</string>
<string id="LeftToRight">Left to right</string>
<string id="RightToLeft">Right to Left</string>
<string id="SettingsWidgetStart">(Widget only) Automatically start the application from the widget without waiting for a tap.</string>
<string id="SettingsEnableBatteryLevel">Enable the background service to send the clock battery level to Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">The refresh rate (in minutes) at which the background service should repeat sending the battery level.</string>
<!-- For the settings GUI -->
<string id="SettingsSelect">Select...</string>
<string id="SettingsApiKey">API Key for HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Long-Lived Access Token.</string>
<string id="SettingsApiUrl">URL for HomeAssistant API.</string>
<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="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of
inactivity to save the device battery.</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>
<string id="RightToLeft">Right to Left</string>
<string id="SettingsWidgetStart">(Widget only) Automatically start the application from the widget
without waiting for a tap.</string>
<string id="SettingsEnableBatteryLevel">Enable the background service to send the clock battery
level to Home Assistant.</string>
<string id="SettingsBatteryLevelRefreshRate">The refresh rate (in minutes) at which the background
service should repeat sending the battery level.</string>
<string id="WebhookId">(Read only) The Webhook ID created by the watch for battery level updates.
You might require this for debugging.</string>
</strings>

View File

@ -28,7 +28,7 @@ using Toybox.WatchUi;
using Toybox.Timer;
class Alert extends WatchUi.View {
private static const bRadius = 10;
private static const scRadius = 10;
private var mTimer as Timer.Timer;
private var mTimeout as Lang.Number;
private var mText as Lang.String;
@ -75,7 +75,7 @@ class Alert extends WatchUi.View {
mTimer.stop();
}
function onUpdate(dc) {
function onUpdate(dc as Graphics.Dc) {
var tWidth = dc.getTextWidthInPixels(mText, mFont);
var tHeight = dc.getFontHeight(mFont);
var bWidth = tWidth + 20;
@ -83,7 +83,7 @@ class Alert extends WatchUi.View {
var bX = (dc.getWidth() - bWidth) / 2;
var bY = (dc.getHeight() - bHeight) / 2;
if (dc has :setAntiAlias) {
if (Graphics.Dc has :setAntiAlias) {
dc.setAntiAlias(true);
}
@ -93,7 +93,7 @@ class Alert extends WatchUi.View {
);
dc.clear();
dc.setColor(mBgcolor, mBgcolor);
dc.fillRoundedRectangle(bX, bY, bWidth, bHeight, bRadius);
dc.fillRoundedRectangle(bX, bY, bWidth, bHeight, scRadius);
dc.setColor(mFgcolor, mBgcolor);
for (var i = 0; i < 3; ++i) {
@ -101,7 +101,7 @@ class Alert extends WatchUi.View {
bY += i;
bWidth -= (2 * i);
bHeight -= (2 * i);
dc.drawRoundedRectangle(bX, bY, bWidth, bHeight, bRadius);
dc.drawRoundedRectangle(bX, bY, bWidth, bHeight, scRadius);
}
var tX = dc.getWidth() / 2;

View File

@ -32,36 +32,39 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
}
function onReturnBatteryUpdate(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
if (Globals.scDebug) {
System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Code: " + responseCode);
System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Data: " + data);
}
// System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Code: " + responseCode);
// System.println("BackgroundServiceDelegate onReturnBatteryUpdate() Response Data: " + data);
Background.exit(null);
}
function onTemporalEvent() as Void {
if (! System.getDeviceSettings().phoneConnected) {
if (Globals.scDebug) {
System.println("BackgroundServiceDelegate onTemporalEvent(): No Phone connection, skipping API call.");
}
// System.println("BackgroundServiceDelegate onTemporalEvent(): No Phone connection, skipping API call.");
} else if (! System.getDeviceSettings().connectionAvailable) {
if (Globals.scDebug) {
System.println("BackgroundServiceDelegate onTemporalEvent(): No Internet connection, skipping API call.");
}
// System.println("BackgroundServiceDelegate onTemporalEvent(): No Internet connection, skipping API call.");
} else {
// Don't use Settings.* here as the object lasts < 30 secs and is recreated each time the background service is run
Communications.makeWebRequest(
(Properties.getValue("api_url") as Lang.String) + "/events/garmin.battery_level",
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
{
"level" => System.getSystemStats().battery,
"is_charging" => System.getSystemStats().charging,
"device_id" => System.getDeviceSettings().uniqueIdentifier
"type" => "update_sensor_states",
"data" => [
{
"state" => System.getSystemStats().battery,
"type" => "sensor",
"unique_id" => "battery_level"
},
{
"state" => System.getSystemStats().charging,
"type" => "binary_sensor",
"unique_id" => "battery_is_charging"
}
]
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
"Authorization" => "Bearer " + (Properties.getValue("api_key") as Lang.String)
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},

View File

@ -36,15 +36,14 @@ using Toybox.Communications;
using Toybox.Timer;
class ErrorView extends ScalableView {
private var mText as Lang.String = "";
private static const scErrorIconMargin as Lang.Float = 7f;
private var mText as Lang.String = "";
private var mDelegate as ErrorDelegate;
private const cSettings as Lang.Dictionary = {
:errorIconMargin => 7f
};
// Vertical spacing between the top of the face and the error icon
private var mErrorIconMargin as Lang.Number;
private var mErrorIcon;
private var mTextArea;
private var mTextArea as WatchUi.TextArea or Null;
private var mAntiAlias as Lang.Boolean = false;
private static var instance;
private static var mShown as Lang.Boolean = false;
@ -53,8 +52,11 @@ class ErrorView extends ScalableView {
ScalableView.initialize();
mDelegate = new ErrorDelegate(self);
// Convert the settings from % of screen size to pixels
mErrorIconMargin = pixelsForScreen(cSettings.get(:errorIconMargin) as Lang.Float);
mErrorIconMargin = pixelsForScreen(scErrorIconMargin);
mErrorIcon = Application.loadResource(Rez.Drawables.ErrorIcon) as Graphics.BitmapResource;
if (Graphics.Dc has :setAntiAlias) {
mAntiAlias = true;
}
}
// Load your resources here
@ -76,7 +78,7 @@ class ErrorView extends ScalableView {
// Update the view
function onUpdate(dc as Graphics.Dc) as Void {
var w = dc.getWidth();
if(dc has :setAntiAlias) {
if (mAntiAlias) {
dc.setAntiAlias(true);
}
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLUE);

View File

@ -22,9 +22,6 @@ using Toybox.Lang;
(:glance)
class Globals {
// Enable printing of messages to the debug console (don't make this a Property
// as the messages can't be read from a watch!)
static const scDebug = false;
static const scAlertTimeout = 2000; // ms
static const scTapTimeout = 1000; // ms
// Time to let the existing HTTP responses get serviced after a
@ -33,4 +30,6 @@ class Globals {
// Needs to be long enough to enable a "double ESC" to quit the application from
// an ErrorView.
static const scApiResume = 200; // ms
// Warn the user after fetching the menu if their watch is low on memory before the device crashes.
static const scLowMem = 0.90; // percent as a fraction.
}

View File

@ -32,8 +32,9 @@ class HomeAssistantApp extends Application.AppBase {
private var mHaMenu as HomeAssistantView or Null;
private var mQuitTimer as QuitTimer or Null;
private var mTimer as Timer.Timer or Null;
private var mItemsToUpdate as Lang.Array<HomeAssistantToggleMenuItem> or Null; // Array initialised by onReturnFetchMenuConfig()
private var mNextItemToUpdate as Lang.Number = 0; // Index into the above array
// 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
@ -86,50 +87,42 @@ 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 = RezStrings.getChecking();
mMenuStatus = RezStrings.getChecking();
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;
Settings.update();
if (Settings.getApiKey().length() == 0) {
if (Globals.scDebug) {
System.println("HomeAssistantApp getInitialView(): No API key in the application Settings.");
}
return ErrorView.create(RezStrings.getNoApiKey() + ".");
// System.println("HomeAssistantApp getInitialView(): No API key in the application Settings.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoAPIKey) as Lang.String + ".");
} else if (Settings.getApiUrl().length() == 0) {
if (Globals.scDebug) {
System.println("HomeAssistantApp getInitialView(): No API URL in the application Settings.");
}
return ErrorView.create(RezStrings.getNoApiUrl() + ".");
// System.println("HomeAssistantApp getInitialView(): No API URL in the application Settings.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoApiUrl) as Lang.String + ".");
} else if (Settings.getApiUrl().substring(-1, Settings.getApiUrl().length()).equals("/")) {
if (Globals.scDebug) {
System.println("HomeAssistantApp getInitialView(): API URL must not have a trailing slash '/'.");
}
return ErrorView.create(RezStrings.getTrailingSlashErr() + ".");
// System.println("HomeAssistantApp getInitialView(): API URL must not have a trailing slash '/'.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.TrailingSlashErr) as Lang.String + ".");
} else if (Settings.getConfigUrl().length() == 0) {
if (Globals.scDebug) {
System.println("HomeAssistantApp getInitialView(): No configuration URL in the application settings.");
}
return ErrorView.create(RezStrings.getNoConfigUrl() + ".");
// 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) {
if (Globals.scDebug) {
System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
}
return ErrorView.create(RezStrings.getNoPhone() + ".");
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
} else if (! System.getDeviceSettings().connectionAvailable) {
if (Globals.scDebug) {
System.println("HomeAssistantApp fetchMenuConfig(): No Internet connection, skipping API call.");
}
return ErrorView.create(RezStrings.getNoInternet() + ".");
// System.println("HomeAssistantApp fetchMenuConfig(): No Internet connection, skipping API call.");
return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
} else {
fetchMenuConfig();
var isCached = fetchMenuConfig();
fetchApiStatus();
if (WidgetApp.isWidget) {
return [new RootView(self), new RootViewDelegate(self)] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
} else {
return [new WatchUi.View(), new WatchUi.BehaviorDelegate()] as Lang.Array<WatchUi.Views or WatchUi.InputDelegates>;
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>;
}
}
}
}
@ -138,76 +131,56 @@ class HomeAssistantApp extends Application.AppBase {
//
(:glance)
function onReturnFetchMenuConfig(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: " + responseCode);
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Data: " + data);
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: " + responseCode);
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Data: " + data);
mMenuStatus = RezStrings.getUnavailable();
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
switch (responseCode) {
case Communications.BLE_HOST_TIMEOUT:
case Communications.BLE_CONNECTION_UNAVAILABLE:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoPhone() + ".");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
}
break;
case Communications.BLE_QUEUE_FULL:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getApiFlood());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiFlood) as Lang.String);
}
break;
case Communications.NETWORK_REQUEST_TIMED_OUT:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoResponse());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoResponse) as Lang.String);
}
break;
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoJson());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
}
break;
case 404:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: 404, page not found. Check Configuration URL setting.");
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig() Response Code: 404, page not found. Check Configuration URL setting.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getConfigUrlNotFound());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ConfigUrlNotFound) as Lang.String);
}
break;
case 200:
mMenuStatus = RezStrings.getAvailable();
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) {
mHaMenu = new HomeAssistantView(data, 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();
}
buildMenu(data);
if (!WidgetApp.isWidget) {
WatchUi.switchToView(mHaMenu, new HomeAssistantViewDelegate(false), WatchUi.SLIDE_IMMEDIATE);
}
@ -215,54 +188,83 @@ class HomeAssistantApp extends Application.AppBase {
break;
default:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchMenuConfig(): Unhandled HTTP response code = " + responseCode);
}
// System.println("HomeAssistantApp onReturnFetchMenuConfig(): Unhandled HTTP response code = " + responseCode);
if (!mIsGlance) {
ErrorView.show(RezStrings.getUnhandledHttpErr() + responseCode);
ErrorView.show(WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
break;
}
WatchUi.requestUpdate();
}
// Return true if the menu came from the cache, otherwise false. This is because fetching the menu when not in the cache is
// asynchronous and affects how the views are managed.
(:glance)
function fetchMenuConfig() as Void {
function fetchMenuConfig() as Lang.Boolean {
if (Settings.getConfigUrl().equals("")) {
mMenuStatus = RezStrings.getUnconfigured();
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unconfigured) as Lang.String;
WatchUi.requestUpdate();
} else {
if (! System.getDeviceSettings().phoneConnected) {
if (Globals.scDebug) {
System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
}
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(RezStrings.getNoPhone() + ".");
}
mMenuStatus = RezStrings.getUnavailable();
} else if (! System.getDeviceSettings().connectionAvailable) {
if (Globals.scDebug) {
System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
}
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(RezStrings.getNoInternet() + ".");
}
mMenuStatus = RezStrings.getUnavailable();
} else {
Communications.makeWebRequest(
Settings.getConfigUrl(),
null,
{
:method => Communications.HTTP_REQUEST_METHOD_GET,
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:onReturnFetchMenuConfig)
);
var menu = Storage.getValue("menu") as Lang.Dictionary;
if (menu != null and Settings.getClearCache()) {
Storage.deleteValue("menu");
menu = null;
Settings.unsetClearCache();
}
if (menu == null) {
if (! System.getDeviceSettings().phoneConnected) {
// System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
}
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
} else if (! System.getDeviceSettings().connectionAvailable) {
// System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
}
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
} else {
Communications.makeWebRequest(
Settings.getConfigUrl(),
null,
{
:method => Communications.HTTP_REQUEST_METHOD_GET,
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:onReturnFetchMenuConfig)
);
}
} else {
mMenuStatus = WatchUi.loadResource($.Rez.Strings.Cached) as Lang.String;
WatchUi.requestUpdate();
if (!mIsGlance) {
buildMenu(menu);
}
return true;
}
}
return false;
}
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();
}
}
@ -270,56 +272,44 @@ class HomeAssistantApp extends Application.AppBase {
//
(:glance)
function onReturnFetchApiStatus(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String) as Void {
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: " + responseCode);
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Data: " + data);
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: " + responseCode);
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Data: " + data);
mApiStatus = RezStrings.getUnavailable();
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
switch (responseCode) {
case Communications.BLE_HOST_TIMEOUT:
case Communications.BLE_CONNECTION_UNAVAILABLE:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoPhone() + ".");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
}
break;
case Communications.BLE_QUEUE_FULL:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getApiFlood());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiFlood) as Lang.String);
}
break;
case Communications.NETWORK_REQUEST_TIMED_OUT:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoResponse());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoResponse) as Lang.String);
}
break;
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getNoJson());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
}
break;
case 404:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: 404, page not found. Check Configuration URL setting.");
}
// System.println("HomeAssistantApp onReturnFetchApiStatus() Response Code: 404, page not found. Check Configuration URL setting.");
if (!mIsGlance) {
ErrorView.show(RezStrings.getConfigUrlNotFound());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ConfigUrlNotFound) as Lang.String);
}
break;
@ -329,7 +319,7 @@ class HomeAssistantApp extends Application.AppBase {
msg = data.get("message");
}
if (msg.equals("API running.")) {
mApiStatus = RezStrings.getAvailable();
mApiStatus = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
} else {
if (!mIsGlance) {
ErrorView.show("API " + mApiStatus + ".");
@ -338,11 +328,9 @@ class HomeAssistantApp extends Application.AppBase {
break;
default:
if (Globals.scDebug) {
System.println("HomeAssistantApp onReturnFetchApiStatus(): Unhandled HTTP response code = " + responseCode);
}
// System.println("HomeAssistantApp onReturnFetchApiStatus(): Unhandled HTTP response code = " + responseCode);
if (!mIsGlance) {
ErrorView.show(RezStrings.getUnhandledHttpErr() + responseCode);
ErrorView.show(WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
}
WatchUi.requestUpdate();
@ -351,28 +339,24 @@ class HomeAssistantApp extends Application.AppBase {
(:glance)
function fetchApiStatus() as Void {
if (Settings.getApiUrl().equals("")) {
mApiStatus = RezStrings.getUnconfigured();
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unconfigured) as Lang.String;
WatchUi.requestUpdate();
} else {
if (! System.getDeviceSettings().phoneConnected) {
if (Globals.scDebug) {
System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
}
mApiStatus = RezStrings.getUnavailable();
// System.println("HomeAssistantToggleMenuItem getState(): No Phone connection, skipping API call.");
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(RezStrings.getNoPhone() + ".");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
}
} else if (! System.getDeviceSettings().connectionAvailable) {
if (Globals.scDebug) {
System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
}
mApiStatus = RezStrings.getUnavailable();
// System.println("HomeAssistantToggleMenuItem getState(): No Internet connection, skipping API call.");
mApiStatus = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
if (mIsGlance) {
WatchUi.requestUpdate();
} else {
ErrorView.show(RezStrings.getNoInternet() + ".");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
}
} else {
Communications.makeWebRequest(
@ -418,11 +402,9 @@ class HomeAssistantApp extends Application.AppBase {
function updateNextMenuItem() as Void {
var itu = mItemsToUpdate as Lang.Array<HomeAssistantToggleMenuItem>;
if (itu == null) {
if (Globals.scDebug) {
System.println("HomeAssistantApp updateNextMenuItem(): No menu items to update");
}
// System.println("HomeAssistantApp updateNextMenuItem(): No menu items to update");
if (!mIsGlance) {
ErrorView.show(RezStrings.getConfigUrlNotFound());
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ConfigUrlNotFound) as Lang.String);
}
} else {
itu[mNextItemToUpdate].getState();
@ -436,18 +418,18 @@ class HomeAssistantApp extends Application.AppBase {
function getGlanceView() as Lang.Array<WatchUi.GlanceView or WatchUi.GlanceViewDelegate> or Null {
mIsGlance = true;
RezStrings.update_glance();
mApiStatus = RezStrings.getChecking();
mMenuStatus = RezStrings.getChecking();
updateGlance();
// RezStrings.update_glance();
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(:updateGlance), Globals.scApiBackoff, true);
mTimer.start(method(:updateStatus), Globals.scApiBackoff, true);
return [new HomeAssistantGlanceView(self)];
}
// Required for the Glance update timer.
function updateGlance() as Void {
function updateStatus() as Void {
fetchMenuConfig();
fetchApiStatus();
}
@ -455,9 +437,7 @@ class HomeAssistantApp extends Application.AppBase {
// 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 {
if (Globals.scDebug) {
System.println("HomeAssistantApp onSettingsChanged()");
}
// System.println("HomeAssistantApp onSettingsChanged()");
Settings.update();
}

View File

@ -28,18 +28,20 @@ using Toybox.Application.Properties;
class HomeAssistantConfirmation extends WatchUi.Confirmation {
function initialize() {
WatchUi.Confirmation.initialize(RezStrings.getConfirm());
WatchUi.Confirmation.initialize(WatchUi.loadResource($.Rez.Strings.Confirm) as Lang.String);
}
}
class HomeAssistantConfirmationDelegate extends WatchUi.ConfirmationDelegate {
private var mConfirmMethod;
private var mTimer;
private var mConfirmMethod as Method(state as Lang.Boolean) as Void;
private var mTimer as Timer.Timer or Null;
private var mState as Lang.Boolean;
function initialize(callback as Method() as Void) {
function initialize(callback as Method(state as Lang.Boolean) as Void, state as Lang.Boolean) {
WatchUi.ConfirmationDelegate.initialize();
mConfirmMethod = callback;
mState = state;
var timeout = Settings.getConfirmTimeout(); // ms
if (timeout > 0) {
mTimer = new Timer.Timer();
@ -49,11 +51,11 @@ class HomeAssistantConfirmationDelegate extends WatchUi.ConfirmationDelegate {
function onResponse(response) as Lang.Boolean {
getApp().getQuitTimer().reset();
if (mTimer) {
if (mTimer != null) {
mTimer.stop();
}
if (response == WatchUi.CONFIRM_YES) {
mConfirmMethod.invoke();
mConfirmMethod.invoke(mState);
}
return true;
}

View File

@ -32,18 +32,22 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
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 mAntiAlias as Lang.Boolean = false;
function initialize(app as HomeAssistantApp) {
GlanceView.initialize();
mApp = app;
if (Graphics.Dc has :setAntiAlias) {
mAntiAlias = true;
}
}
function onLayout(dc as Graphics.Dc) as Void {
var h = dc.getHeight();
var tw = dc.getTextWidthInPixels(RezStrings.getGlanceMenu(), Graphics.FONT_XTINY);
var tw = dc.getTextWidthInPixels(WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String, Graphics.FONT_XTINY);
mTitle = new WatchUi.Text({
:text => RezStrings.getAppName(),
:text => WatchUi.loadResource($.Rez.Strings.AppName) as Lang.String,
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_TINY,
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
@ -60,7 +64,7 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
:locY => 3 * h / 6
});
mApiStatus = new WatchUi.Text({
:text => RezStrings.getChecking(),
: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,
@ -68,7 +72,7 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
:locY => 3 * h / 6
});
mMenuText = new WatchUi.Text({
:text => RezStrings.getGlanceMenu() + ":",
:text => WatchUi.loadResource($.Rez.Strings.GlanceMenu) as Lang.String + ":",
:color => Graphics.COLOR_WHITE,
:font => Graphics.FONT_XTINY,
:justification => Graphics.TEXT_JUSTIFY_LEFT | Graphics.TEXT_JUSTIFY_VCENTER,
@ -76,7 +80,7 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
:locY => 5 * h / 6
});
mMenuStatus = new WatchUi.Text({
:text => RezStrings.getChecking(),
: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,
@ -85,9 +89,9 @@ class HomeAssistantGlanceView extends WatchUi.GlanceView {
});
}
function onUpdate(dc) as Void {
function onUpdate(dc as Graphics.Dc) as Void {
GlanceView.onUpdate(dc);
if(dc has :setAntiAlias) {
if(mAntiAlias) {
dc.setAntiAlias(true);
}
dc.setColor(

View File

@ -9,31 +9,32 @@
// 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, 16 November 2023
// P A Abbey & J D Abbey & Someone0nEarth, 31 October 2023
//
//
// Description:
//
// Menu button with an icon that opens a sub-menu.
// Menu button with an icon that opens a sub-menu, i.e. group.
//
//-----------------------------------------------------------------------------------
using Toybox.Lang;
using Toybox.WatchUi;
class HomeAssistantViewIconMenuItem extends WatchUi.IconMenuItem {
class HomeAssistantGroupMenuItem extends WatchUi.IconMenuItem {
private var mMenu as HomeAssistantView;
function initialize(definition as Lang.Dictionary, icon as WatchUi.Drawable, options as {
function initialize(
definition as Lang.Dictionary,
icon as WatchUi.Drawable,
options as {
:alignment as WatchUi.MenuItem.Alignment
} or Null) {
var label = definition.get("name") as Lang.String;
var identifier = definition.get("entity") as Lang.String;
WatchUi.IconMenuItem.initialize(
label,
definition.get("name") as Lang.String,
null,
null,
identifier,
icon,
options
);

View File

@ -1,70 +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, 31 October 2023
//
//
// Description:
//
// Menu button that triggers a service.
//
//-----------------------------------------------------------------------------------
using Toybox.Lang;
using Toybox.WatchUi;
using Toybox.Graphics;
class HomeAssistantMenuItem extends WatchUi.MenuItem {
private var mHomeAssistantService as HomeAssistantService;
private var mService as Lang.String;
private var mConfirm as Lang.Boolean;
function initialize(
label as Lang.String or Lang.Symbol,
subLabel as Lang.String or Lang.Symbol or Null,
identifier as Lang.Object or Null,
service as Lang.String or Null,
confirm as Lang.Boolean,
options as {
:alignment as WatchUi.MenuItem.Alignment,
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
} or Null,
haService as HomeAssistantService
) {
WatchUi.MenuItem.initialize(
label,
subLabel,
identifier,
options
);
mHomeAssistantService = haService;
mService = service;
mConfirm = confirm;
}
function callService() as Void {
if (mConfirm) {
WatchUi.pushView(
new HomeAssistantConfirmation(),
new HomeAssistantConfirmationDelegate(method(:onConfirm)),
WatchUi.SLIDE_IMMEDIATE
);
} else {
onConfirm();
}
}
function onConfirm() as Void {
mHomeAssistantService.call(mIdentifier as Lang.String, mService);
}
}

View File

@ -26,6 +26,7 @@ class HomeAssistantMenuItemFactory {
private var mMenuItemOptions as Lang.Dictionary;
private var mTapTypeIcon as WatchUi.Bitmap;
private var mGroupTypeIcon as WatchUi.Bitmap;
private var mInfoTypeIcon as WatchUi.Bitmap;
private var mHomeAssistantService as HomeAssistantService;
private static var instance;
@ -46,6 +47,13 @@ class HomeAssistantMenuItemFactory {
:locX => WatchUi.LAYOUT_HALIGN_CENTER,
:locY => WatchUi.LAYOUT_VALIGN_CENTER
});
mInfoTypeIcon = new WatchUi.Bitmap({
:rezId => $.Rez.Drawables.InfoTypeIcon,
:locX => WatchUi.LAYOUT_HALIGN_CENTER,
:locY => WatchUi.LAYOUT_VALIGN_CENTER
});
mHomeAssistantService = new HomeAssistantService();
}
@ -56,51 +64,88 @@ class HomeAssistantMenuItemFactory {
return instance;
}
function toggle(label as Lang.String or Lang.Symbol, identifier as Lang.Object or Null) as WatchUi.MenuItem {
function toggle(
label as Lang.String or Lang.Symbol,
entity_id as Lang.String or Null,
confirm as Lang.Boolean
) as WatchUi.MenuItem {
return new HomeAssistantToggleMenuItem(
label,
Settings.getMenuStyle() == Settings.MENU_STYLE_TEXT ? RezStrings.getLabelToggle() : null,
identifier,
false,
confirm,
{ "entity_id" => entity_id },
mMenuItemOptions
);
}
function tap(
label as Lang.String or Lang.Symbol,
identifier as Lang.Object or Null,
service as Lang.String or Null,
confirm as Lang.Boolean
function template_tap(
label as Lang.String or Lang.Symbol,
entity as Lang.String or Null,
template as Lang.String or Null,
service as Lang.String or Null,
confirm as Lang.Boolean,
data as Lang.Dictionary or Null
) as WatchUi.MenuItem {
if (Settings.getMenuStyle() == Settings.MENU_STYLE_TEXT) {
return new HomeAssistantMenuItem(
label,
RezStrings.getMenuItemTap(),
identifier,
service,
confirm,
mMenuItemOptions,
mHomeAssistantService
);
} else {
return new HomeAssistantIconMenuItem(
label,
null,
identifier,
service,
confirm,
mTapTypeIcon,
mMenuItemOptions,
mHomeAssistantService
);
if (entity != null) {
if (data == null) {
data = { "entity_id" => entity };
} else {
data.put("entity_id", entity);
}
}
return new HomeAssistantTemplateMenuItem(
label,
template,
service,
confirm,
data,
mTapTypeIcon,
mMenuItemOptions,
mHomeAssistantService
);
}
function template_notap(
label as Lang.String or Lang.Symbol,
template as Lang.String or Null
) as WatchUi.MenuItem {
return new HomeAssistantTemplateMenuItem(
label,
template,
null,
false,
null,
mInfoTypeIcon,
mMenuItemOptions,
mHomeAssistantService
);
}
function tap(
label as Lang.String or Lang.Symbol,
entity as Lang.String or Null,
service as Lang.String or Null,
confirm as Lang.Boolean,
data as Lang.Dictionary or Null
) as WatchUi.MenuItem {
if (entity != null) {
if (data == null) {
data = { "entity_id" => entity };
} else {
data.put("entity_id", entity);
}
}
return new HomeAssistantTapMenuItem(
label,
service,
confirm,
data,
mTapTypeIcon,
mMenuItemOptions,
mHomeAssistantService
);
}
function group(definition as Lang.Dictionary) as WatchUi.MenuItem {
if (Settings.getMenuStyle() == Settings.MENU_STYLE_TEXT) {
return new HomeAssistantViewMenuItem(definition);
} else {
return new HomeAssistantViewIconMenuItem(definition, mGroupTypeIcon, mMenuItemOptions);
}
return new HomeAssistantGroupMenuItem(definition, mGroupTypeIcon, mMenuItemOptions);
}
}

View File

@ -24,71 +24,70 @@ using Toybox.Graphics;
using Toybox.Application.Properties;
class HomeAssistantService {
private var mHasToast as Lang.Boolean = false;
private var mHasVibrate as Lang.Boolean = false;
function initialize() {
if (WatchUi has :showToast) {
mHasToast = true;
}
if (Attention has :vibrate) {
mHasVibrate = true;
}
}
// Callback function after completing the POST request to call a service.
//
function onReturnCall(responseCode as Lang.Number, data as Null or Lang.Dictionary or Lang.String, context as Lang.Object) as Void {
var identifier = context as Lang.String;
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: " + responseCode);
System.println("HomeAssistantService onReturnCall() Response Data: " + data);
}
function onReturnCall(
responseCode as Lang.Number,
data as Null or Lang.Dictionary or Lang.String,
context as Lang.Object
) as Void {
var entity_id = context as Lang.String or Null;
// System.println("HomeAssistantService onReturnCall() Response Code: " + responseCode);
// System.println("HomeAssistantService onReturnCall() Response Data: " + data);
switch (responseCode) {
case Communications.BLE_HOST_TIMEOUT:
case Communications.BLE_CONNECTION_UNAVAILABLE:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
}
ErrorView.show(RezStrings.getNoPhone() + ".");
// System.println("HomeAssistantService onReturnCall() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
break;
case Communications.BLE_QUEUE_FULL:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
}
ErrorView.show(RezStrings.getApiFlood());
// System.println("HomeAssistantService onReturnCall() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiFlood) as Lang.String);
break;
case Communications.NETWORK_REQUEST_TIMED_OUT:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
}
ErrorView.show(RezStrings.getNoResponse());
// System.println("HomeAssistantService onReturnCall() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoResponse) as Lang.String);
break;
case Communications.NETWORK_RESPONSE_OUT_OF_MEMORY:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: NETWORK_RESPONSE_OUT_OF_MEMORY, are we going too fast?");
}
// System.println("HomeAssistantService onReturnCall() Response Code: NETWORK_RESPONSE_OUT_OF_MEMORY, are we going too fast?");
// Ignore and see if we can carry on
break;
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
}
ErrorView.show(RezStrings.getNoJson());
// System.println("HomeAssistantService onReturnCall() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
break;
case 404:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall() Response Code: 404, page not found. Check API URL setting.");
}
ErrorView.show(RezStrings.getApiUrlNotFound());
// System.println("HomeAssistantService onReturnCall() Response Code: 404, page not found. Check API URL setting.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound) as Lang.String);
break;
case 200:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall(): Service executed.");
}
// System.println("HomeAssistantService onReturnCall(): Service executed.");
var d = data as Lang.Array;
var toast = "Executed";
var toast = WatchUi.loadResource($.Rez.Strings.Executed) as Lang.String;
for(var i = 0; i < d.size(); i++) {
if ((d[i].get("entity_id") as Lang.String).equals(identifier)) {
if ((d[i].get("entity_id") as Lang.String).equals(entity_id)) {
toast = (d[i].get("attributes") as Lang.Dictionary).get("friendly_name") as Lang.String;
}
}
if (WatchUi has :showToast) {
if (mHasToast) {
WatchUi.showToast(toast, null);
} else {
new Alert({
@ -102,36 +101,35 @@ class HomeAssistantService {
break;
default:
if (Globals.scDebug) {
System.println("HomeAssistantService onReturnCall(): Unhandled HTTP response code = " + responseCode);
}
ErrorView.show(RezStrings.getUnhandledHttpErr() + responseCode);
// System.println("HomeAssistantService onReturnCall(): Unhandled HTTP response code = " + responseCode);
ErrorView.show(WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
}
function call(identifier as Lang.String, service as Lang.String) as Void {
function call(
service as Lang.String,
data as Lang.Dictionary or Null
) as Void {
if (! System.getDeviceSettings().phoneConnected) {
if (Globals.scDebug) {
System.println("HomeAssistantService call(): No Phone connection, skipping API call.");
}
ErrorView.show(RezStrings.getNoPhone() + ".");
// System.println("HomeAssistantService call(): No Phone connection, skipping API call.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
} else if (! System.getDeviceSettings().connectionAvailable) {
if (Globals.scDebug) {
System.println("HomeAssistantService call(): No Internet connection, skipping API call.");
}
ErrorView.show(RezStrings.getNoInternet() + ".");
// System.println("HomeAssistantService call(): No Internet connection, skipping API call.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String + ".");
} else {
// Can't use null for substring() parameters due to API version level.
var url = Settings.getApiUrl() + "/services/" + service.substring(0, service.find(".")) + "/" + service.substring(service.find(".")+1, service.length());
if (Globals.scDebug) {
System.println("HomeAssistantService call() URL=" + url);
System.println("HomeAssistantService call() service=" + service);
// 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 = "";
}
Communications.makeWebRequest(
url,
{
"entity_id" => identifier
},
data, // Includes {"entity_id": xxxx}
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
@ -139,11 +137,11 @@ class HomeAssistantService {
"Authorization" => "Bearer " + Settings.getApiKey()
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
:context => identifier
:context => entity_id
},
method(:onReturnCall)
);
if (Attention has :vibrate) {
if (mHasVibrate) {
Attention.vibrate([
new Attention.VibeProfile(50, 100), // On for 100ms
new Attention.VibeProfile( 0, 100), // Off for 100ms

View File

@ -22,17 +22,17 @@ using Toybox.Lang;
using Toybox.WatchUi;
using Toybox.Graphics;
class HomeAssistantIconMenuItem extends WatchUi.IconMenuItem {
class HomeAssistantTapMenuItem extends WatchUi.IconMenuItem {
private var mHomeAssistantService as HomeAssistantService;
private var mService as Lang.String;
private var mConfirm as Lang.Boolean;
private var mData as Lang.Dictionary or Null;
function initialize(
label as Lang.String or Lang.Symbol,
subLabel as Lang.String or Lang.Symbol or Null,
identifier as Lang.Object or Null,
service as Lang.String or Null,
confirm as Lang.Boolean,
data as Lang.Dictionary or Null,
icon as Graphics.BitmapType or WatchUi.Drawable,
options as {
:alignment as WatchUi.MenuItem.Alignment
@ -41,32 +41,33 @@ class HomeAssistantIconMenuItem extends WatchUi.IconMenuItem {
) {
WatchUi.IconMenuItem.initialize(
label,
subLabel,
identifier,
null,
null,
icon,
options
);
mHomeAssistantService = haService;
mIdentifier = identifier;
mService = service;
mConfirm = confirm;
mData = data;
}
function callService() as Void {
if (mConfirm) {
WatchUi.pushView(
new HomeAssistantConfirmation(),
new HomeAssistantConfirmationDelegate(method(:onConfirm)),
new HomeAssistantConfirmationDelegate(method(:onConfirm), false),
WatchUi.SLIDE_IMMEDIATE
);
} else {
onConfirm();
mHomeAssistantService.call(mService, mData);
}
}
function onConfirm() as Void {
mHomeAssistantService.call(mIdentifier as Lang.String, mService);
// NB. Parameter 'b' is ignored
function onConfirm(b as Lang.Boolean) as Void {
mHomeAssistantService.call(mService, mData);
}
}

View File

@ -0,0 +1,175 @@
//-----------------------------------------------------------------------------------
//
// 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, 12 January 2024
//
//
// Description:
//
// Menu button that renders a Home Assistant Template, and optionally triggers a service.
//
// Reference:
// * https://developers.home-assistant.io/docs/api/rest/
// * https://www.home-assistant.io/docs/configuration/templating
//
//-----------------------------------------------------------------------------------
using Toybox.Lang;
using Toybox.WatchUi;
using Toybox.Graphics;
class HomeAssistantTemplateMenuItem extends WatchUi.IconMenuItem {
private var mHomeAssistantService as HomeAssistantService;
private var mTemplate as Lang.String;
private var mService as Lang.String or Null;
private var mConfirm as Lang.Boolean;
private var mData as Lang.Dictionary or Null;
function initialize(
label as Lang.String or Lang.Symbol,
template as Lang.String,
service as Lang.String or Null,
confirm as Lang.Boolean,
data as Lang.Dictionary or Null,
icon as Graphics.BitmapType or WatchUi.Drawable,
options as {
:alignment as WatchUi.MenuItem.Alignment
} or Null,
haService as HomeAssistantService
) {
WatchUi.IconMenuItem.initialize(
label,
null,
null,
icon,
options
);
mHomeAssistantService = haService;
mTemplate = template;
mService = service;
mConfirm = confirm;
mData = data;
}
function callService() as Void {
if (mConfirm) {
WatchUi.pushView(
new HomeAssistantConfirmation(),
new HomeAssistantConfirmationDelegate(method(:onConfirm), false),
WatchUi.SLIDE_IMMEDIATE
);
} else {
onConfirm(false);
}
}
// NB. Parameter 'b' is ignored
function onConfirm(b as Lang.Boolean) as Void {
if (mService != null) {
mHomeAssistantService.call(mService, mData);
}
}
// Callback function after completing the GET request to fetch the status.
// 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 {
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: " + responseCode);
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Data: " + data);
var status = WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String;
switch (responseCode) {
case Communications.BLE_HOST_TIMEOUT:
case Communications.BLE_CONNECTION_UNAVAILABLE:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: BLE_HOST_TIMEOUT or BLE_CONNECTION_UNAVAILABLE, Bluetooth connection severed.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
break;
case Communications.BLE_QUEUE_FULL:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: BLE_QUEUE_FULL, API calls too rapid.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiFlood) as Lang.String);
break;
case Communications.NETWORK_REQUEST_TIMED_OUT:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: NETWORK_REQUEST_TIMED_OUT, check Internet connection.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoResponse) as Lang.String);
break;
case Communications.INVALID_HTTP_BODY_IN_NETWORK_RESPONSE:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: INVALID_HTTP_BODY_IN_NETWORK_RESPONSE, check JSON is returned.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoJson) as Lang.String);
break;
case Communications.NETWORK_RESPONSE_OUT_OF_MEMORY:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: NETWORK_RESPONSE_OUT_OF_MEMORY, are we going too fast?");
var myTimer = new Timer.Timer();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
myTimer.start(getApp().method(:updateNextMenuItem), Globals.scApiBackoff, false);
// Revert status
status = getApp().getApiStatus();
break;
case 404:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: 404, page not found. Check API URL setting.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.ApiUrlNotFound) as Lang.String);
break;
case 400:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState() Response Code: 400, bad request. Template error.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.TemplateError) as Lang.String);
break;
case 200:
status = WatchUi.loadResource($.Rez.Strings.Available) as Lang.String;
setSubLabel(data);
requestUpdate();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
getApp().updateNextMenuItem();
break;
default:
// System.println("HomeAssistantTemplateMenuItem onReturnGetState(): Unhandled HTTP response code = " + responseCode);
ErrorView.show(WatchUi.loadResource($.Rez.Strings.UnhandledHttpErr) as Lang.String + responseCode);
}
getApp().setApiStatus(status);
}
function getState() as Void {
if (! System.getDeviceSettings().phoneConnected) {
// System.println("HomeAssistantTemplateMenuItem getState(): No Phone connection, skipping API call.");
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String + ".");
getApp().setApiStatus(WatchUi.loadResource($.Rez.Strings.Unavailable) as Lang.String);
} else if (! System.getDeviceSettings().connectionAvailable) {
// System.println("HomeAssistantTemplateMenuItem getState(): No Internet connection, skipping API call.");
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";
// 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()
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_TEXT_PLAIN
},
method(:onReturnGetState)
);
}
}
}

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