feat(hass): add get_attributes voice command
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a8d5b39dd0
commit
7fa5032311
1 changed files with 24 additions and 0 deletions
|
@ -3,6 +3,30 @@ let
|
||||||
inherit (import ../../../../../lib {}) lib;
|
inherit (import ../../../../../lib {}) lib;
|
||||||
inherit (lib) concatStrings concatStringsSep splitString;
|
inherit (lib) concatStrings concatStringsSep splitString;
|
||||||
in [
|
in [
|
||||||
|
{
|
||||||
|
spec = {
|
||||||
|
name = "get_attributes";
|
||||||
|
description = "Get attributes of any home assistant entity";
|
||||||
|
parameters = {
|
||||||
|
type = "object";
|
||||||
|
|
||||||
|
properties = {
|
||||||
|
entity_id = {
|
||||||
|
type = "string";
|
||||||
|
description = "entity_id";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
required = ["entity_id"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
function = {
|
||||||
|
type = "template";
|
||||||
|
value_template = "{{ states[entity_id] }}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
spec = {
|
spec = {
|
||||||
name = "timer_start";
|
name = "timer_start";
|
||||||
|
|
Loading…
Reference in a new issue