* feat(hassio): Implemented the Home Assistant plugin for Noctalia v5. * Update plugin.toml * Update plugin.toml * fix(*): Changed curl HTTP calls to native noctalia HTTP calls. * fix(*): Fixed headers on HTTP requests. * fix(service_sse): Fixed HA tokens visible on argv during streams. * fix(service_sse): Added an explicit exit signal for the stream and refresh/reload_entities no longer force `sseActive = false`. * fix(*): Fixed xdg-open missing from README.md and plugin.toml * refact(widget): Changed runInTerminal to runAsync on xdg-open calls to prevent the termial from popping up. * fix(*): Changed plugin data location to be stored where pluginDataDir() points. * fix(README): Added all IPC calls to README. * Updated README to reflect recent changes. * refact(*): Removed some dead code. * fix(*): Changed toggle timeout logic to use real time, fixing toggles being stuck in a loding animation. * refact(*): Added a token cleaner function. * refact(service_sse): Changed curl stream calls for the new native HTTP streaming API. * feat(*): Fixed some translations.
96 lines
2.0 KiB
TOML
96 lines
2.0 KiB
TOML
id = "pozzoo/hassio"
|
|
name = "Home Assistant"
|
|
version = "2.0.0"
|
|
plugin_api = 4
|
|
author = "Pozzoo"
|
|
license = "MIT"
|
|
tags = ["bar", "panel", "service", "shortcut", "network", "indicator"]
|
|
icon = "smart-home"
|
|
dependencies = ["xdg-open"]
|
|
description = "Monitor and control Home Assistant entities from the bar. Displays entity states and provides quick toggles."
|
|
|
|
[[setting]]
|
|
key = "ha_url"
|
|
type = "string"
|
|
label_key = "settings.url.label"
|
|
description_key = "settings.url.description"
|
|
default = ""
|
|
|
|
[[setting]]
|
|
key = "ha_token"
|
|
type = "string"
|
|
label_key = "settings.token.label"
|
|
description_key = "settings.token.description"
|
|
default = ""
|
|
|
|
[[setting]]
|
|
key = "shortcut_entity_1"
|
|
type = "string"
|
|
label_key = "settings.shortcut_entity_1.label"
|
|
description_key = "settings.shortcut_entity.description"
|
|
default = ""
|
|
|
|
[[setting]]
|
|
key = "shortcut_entity_2"
|
|
type = "string"
|
|
label_key = "settings.shortcut_entity_2.label"
|
|
description_key = "settings.shortcut_entity.description"
|
|
default = ""
|
|
|
|
[[setting]]
|
|
key = "shortcut_entity_3"
|
|
type = "string"
|
|
label_key = "settings.shortcut_entity_3.label"
|
|
description_key = "settings.shortcut_entity.description"
|
|
default = ""
|
|
|
|
[[setting]]
|
|
key = "shortcut_entity_4"
|
|
type = "string"
|
|
label_key = "settings.shortcut_entity_4.label"
|
|
description_key = "settings.shortcut_entity.description"
|
|
default = ""
|
|
|
|
[[widget]]
|
|
id = "status"
|
|
entry = "widget.luau"
|
|
|
|
[[widget.setting]]
|
|
key = "show_entity_count"
|
|
type = "bool"
|
|
label_key = "settings.show_entity_count.label"
|
|
default = false
|
|
|
|
# Native streaming background service maintaining a live connection to HA
|
|
[[service]]
|
|
id = "connection"
|
|
entry = "service_sse.luau"
|
|
|
|
[[shortcut]]
|
|
id = "ha_toggle_1"
|
|
entry = "shortcut.luau"
|
|
|
|
[[shortcut]]
|
|
id = "ha_toggle_2"
|
|
entry = "shortcut_2.luau"
|
|
|
|
[[shortcut]]
|
|
id = "ha_toggle_3"
|
|
entry = "shortcut_3.luau"
|
|
|
|
[[shortcut]]
|
|
id = "ha_toggle_4"
|
|
entry = "shortcut_4.luau"
|
|
|
|
[[shortcut]]
|
|
id = "ha_panel"
|
|
entry = "shortcut_panel.luau"
|
|
|
|
[[panel]]
|
|
id = "entity_manager"
|
|
entry = "panel.luau"
|
|
width = 450
|
|
height = 560
|
|
placement = "floating"
|
|
position = "center"
|