feat: added home assistant widget
This commit is contained in:
@@ -55,6 +55,37 @@ PluginSettings {
|
||||
rightIcon: "dark_mode"
|
||||
}
|
||||
|
||||
StringSetting {
|
||||
settingKey: "haUrl"
|
||||
label: "Home Assistant URL"
|
||||
description: "e.g. http://homeassistant.local:8123"
|
||||
placeholder: "http://homeassistant.local:8123"
|
||||
}
|
||||
|
||||
StringSetting {
|
||||
settingKey: "haToken"
|
||||
label: "Long-lived access token"
|
||||
description: "Home Assistant profile page, bottom of Security tab"
|
||||
placeholder: "eyJhbGciOi..."
|
||||
}
|
||||
|
||||
SliderSetting {
|
||||
settingKey: "haPollInterval"
|
||||
label: "Home Assistant refresh interval"
|
||||
description: "How often entity states are polled while the Home widget is open"
|
||||
defaultValue: 5
|
||||
minimum: 2
|
||||
maximum: 30
|
||||
unit: "s"
|
||||
leftIcon: "speed"
|
||||
rightIcon: "schedule"
|
||||
}
|
||||
|
||||
GameBarHomeSettings {
|
||||
width: parent.width
|
||||
settings: settings
|
||||
}
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
height: resetColumn.implicitHeight
|
||||
|
||||
Reference in New Issue
Block a user