mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 03:18:35 +00:00
Use webhooks for battery
This commit is contained in:
@ -13,31 +13,44 @@
|
||||
-->
|
||||
|
||||
<properties>
|
||||
<property id="api_key" type="string"></property>
|
||||
<property id="api_key" type="string"></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
|
||||
persistent storage.
|
||||
-->
|
||||
<property id="webhook_id" type="string"></property>
|
||||
|
||||
<!--
|
||||
Internal URL "https://homeassistant.local/api"
|
||||
External URL "https://<dynamic DNS>/api"
|
||||
-->
|
||||
<property id="api_url" type="string"></property>
|
||||
<property id="api_url" type="string"></property>
|
||||
|
||||
<!-- Best be a public URL in order to work away from your home LAN and have a trusted HTTPS certificate -->
|
||||
<!-- Best be a public URL in order to work away from your home LAN and have a trusted HTTPS
|
||||
certificate -->
|
||||
<property id="config_url" type="string"></property>
|
||||
|
||||
<!-- Decide if the menu configuration should be cached. -->
|
||||
<property id="cache_config" type="boolean">false</property>
|
||||
|
||||
<!-- Clear the menu configuration on next application start, and refetch, then set this back to false -->
|
||||
<!-- Clear the menu configuration on next application start, and refetch, then set this back to
|
||||
false -->
|
||||
<property id="clear_cache" type="boolean">false</property>
|
||||
|
||||
<!--
|
||||
Application timeout in seconds, except 0 for no timeout (default). After this amount of elapsed time
|
||||
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
|
||||
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>
|
||||
@ -71,4 +84,4 @@
|
||||
-->
|
||||
<property id="battery_level_refresh_rate" type="number">15</property>
|
||||
|
||||
</properties>
|
||||
</properties>
|
@ -107,4 +107,10 @@
|
||||
<settingConfig type="numeric" min="5" />
|
||||
</setting>
|
||||
|
||||
</settings>
|
||||
<setting
|
||||
propertyKey="@Properties.webhook_id"
|
||||
title="Webhook ID"
|
||||
>
|
||||
<settingConfig type="alphaNumeric" />
|
||||
</setting>
|
||||
</settings>
|
Reference in New Issue
Block a user