feat(hass): add get_attributes voice command
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-09-18 11:43:22 -04:00
parent a8d5b39dd0
commit 7fa5032311

View file

@ -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";