mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 03:18:35 +00:00
Added Watch Battery transmission
Added a background service to send the watch battery level to Home Assistant. Changed the Glance View as requested by a user. Updated to new HA icon using SVG in stead of PNG.
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB |
@ -31,20 +31,20 @@
|
||||
<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 vs second level of menu text.
|
||||
Lean UI with icons vs second level of menu text.
|
||||
-->
|
||||
<property id="types_representation" type="boolean"></property>
|
||||
<property id="menu_theme" type="number">0</property>
|
||||
|
||||
<!--
|
||||
left to right or right-to-left text. Language dependent.
|
||||
Left to right or right to left text. Language dependent.
|
||||
-->
|
||||
<property id="menu_alignment" type="boolean"></property>
|
||||
<property id="menu_alignment" type="number">1</property>
|
||||
|
||||
<!--
|
||||
Widget specific setting:
|
||||
@ -52,6 +52,17 @@
|
||||
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"></property>
|
||||
<property id="widget_start_no_tap" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
Enable the background service to send the clock battery level to Home Assistant.
|
||||
-->
|
||||
<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.
|
||||
-->
|
||||
<property id="battery_level_refresh_rate" type="number">15</property>
|
||||
|
||||
</properties>
|
||||
|
@ -18,9 +18,7 @@
|
||||
title="@Strings.SettingsApiKey"
|
||||
prompt="@Strings.SettingsApiKeyPrompt"
|
||||
>
|
||||
<settingConfig
|
||||
type="alphaNumeric"
|
||||
/>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -28,9 +26,7 @@
|
||||
title="@Strings.SettingsApiUrl"
|
||||
prompt="https://homeassistant.local/api"
|
||||
>
|
||||
<settingConfig
|
||||
type="alphaNumeric"
|
||||
/>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
@ -38,56 +34,63 @@
|
||||
title="@Strings.SettingsConfigUrl"
|
||||
prompt="https://homeassistant.local/local/garmin/menu.json"
|
||||
>
|
||||
<settingConfig
|
||||
type="alphaNumeric"
|
||||
/>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.app_timeout"
|
||||
title="@Strings.SettingsAppTimeout"
|
||||
>
|
||||
<settingConfig
|
||||
type="numeric"
|
||||
min="0"
|
||||
/>
|
||||
<settingConfig type="numeric" min="0" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.confirm_timeout"
|
||||
title="@Strings.SettingsConfirmTimeout"
|
||||
>
|
||||
<settingConfig
|
||||
type="numeric"
|
||||
min="0"
|
||||
/>
|
||||
<settingConfig type="numeric" min="0" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.types_representation"
|
||||
title="@Strings.SettingsUi"
|
||||
propertyKey="@Properties.menu_theme"
|
||||
title="@Strings.SettingsMenuItemStyle"
|
||||
prompt="@Strings.SettingsSelect"
|
||||
>
|
||||
<settingConfig
|
||||
type="boolean"
|
||||
/>
|
||||
<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"
|
||||
>
|
||||
<settingConfig
|
||||
type="boolean"
|
||||
/>
|
||||
<settingConfig type="list">
|
||||
<listEntry value="1">@Strings.LeftToRight</listEntry>
|
||||
<listEntry value="0">@Strings.RightToLeft</listEntry>
|
||||
</settingConfig>
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.widget_start_no_tap"
|
||||
title="@Strings.SettingsWidgetStart"
|
||||
>
|
||||
<settingConfig
|
||||
type="boolean"
|
||||
/>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.enable_battery_level"
|
||||
title="@Strings.SettingsEnableBatteryLevel"
|
||||
>
|
||||
<settingConfig type="boolean" />
|
||||
</setting>
|
||||
|
||||
<setting
|
||||
propertyKey="@Properties.battery_level_refresh_rate"
|
||||
title="@Strings.SettingsBatteryLevelRefreshRate"
|
||||
>
|
||||
<settingConfig type="numeric" min="5" />
|
||||
</setting>
|
||||
|
||||
</settings>
|
||||
|
@ -38,13 +38,20 @@
|
||||
<string id="GlanceMenu" scope="glance">Menu</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="SettingsUi">Representing types with icons (off) or with labels (on).</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>
|
||||
</strings>
|
||||
|
Reference in New Issue
Block a user