feat: added home assistant widget

This commit is contained in:
2026-09-21 17:48:09 +02:00
parent 62e760f126
commit e0a27e59b4
9 changed files with 1006 additions and 6 deletions
+31
View File
@@ -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