2024-09-17 21:36:05 -04:00
|
|
|
# I use nix2yaml from ../default.nix to convert this to YAML and place it in the functions of extended_ollama_conversation
|
2024-10-07 15:15:29 -04:00
|
|
|
[
|
2024-09-18 11:43:22 -04:00
|
|
|
{
|
|
|
|
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] }}";
|
|
|
|
};
|
|
|
|
}
|
2024-09-16 22:54:18 -04:00
|
|
|
]
|