Initial attempt

Lacking an end to end test on this code presently.
This commit is contained in:
Philip Abbey
2025-08-08 11:40:13 +01:00
parent 8a8d64bcab
commit c1cddc54e4
10 changed files with 78 additions and 24 deletions

View File

@ -94,6 +94,20 @@
-->
<property id="battery_level_refresh_rate" type="number">15</property>
<!--
A user specified HTTP header key to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header_key" type="string"></property>
<!--
A user specified HTTP header value to be used in all HTTP requests.
This is useful for some Home Assistant installations that require a
custom HTTP header.
-->
<property id="user_http_header_value" 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

View File

@ -119,6 +119,22 @@
<settingConfig type="numeric" min="5" />
</setting>
<group id="userHttpHeader" title="@Strings.SettingsUserHttpHeader" description="@Strings.SettingsUserHttpHeaderDescription">
<setting
propertyKey="@Properties.user_http_header_key"
title="@Strings.SettingsUserHttpHeaderKey"
>
<settingConfig type="alphaNumeric" />
</setting>
<setting
propertyKey="@Properties.user_http_header_value"
title="@Strings.SettingsUserHttpHeaderValue"
>
<settingConfig type="alphaNumeric" />
</setting>
</group>
<setting
propertyKey="@Properties.webhook_id"
title="@Strings.WebhookId"