feat(jeeves): home-assistant modularization

This commit is contained in:
reo101 2024-04-13 13:37:24 +03:00
parent ee98e1582c
commit 16457e0a09
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
6 changed files with 200 additions and 153 deletions

View file

@ -0,0 +1,27 @@
{
services.home-assistant.config = {
conversation.intents = {
TellJoke = [
"Tell [me] (a joke|something funny|a dad joke)"
];
};
sensor = [
{
name = "random_joke";
platform = "rest";
json_attributes = "joke";
resource = "https://icanhazdadjoke.com/";
scan_interval = "3600";
headers.Accept = "application/json";
}
];
intent_script.TellJoke = {
speech.text = ''{{ state_attr("sensor.random_joke", "joke") }}'';
action = {
service = "homeassistant.update_entity";
entity_id = "sensor.random_joke";
};
};
};
}