summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/intents/default.nix
blob: 24594b4a2fb2afcbca05370f70f7527742b7af69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  services.home-assistant.config = {
    intent_script = {
      GetTime.speech.text = ''
        Es ist {{ now().hour }} Uhr {{ now().minute }}
      '';
      GutenMorgen.speech.text = ''
        Einen wunderschönen Guten Morgen wünsche ich dir
      '';
      WieGehtEsDir.speech.text = ''
        Mir geht es sehr gut, und dir?
      '';
      Statusreport.speech.text = builtins.readFile ./statusbericht.txt.j2;
      StartMusic = {
        speech.text = "Spiele {{ music }} musik";
        action_async = [
          {
            service = "media_player.play_media";
            data_template = {
              entity_id = "media_player.{{ _intent.siteId }}";
              media_content_id = builtins.readFile ./music_chooser.txt.j2;
              media_content_type = "music";
            };
          }
        ];
      };
      GetWeather = {
        #speech.text = ''
        #  {{ states('sensor.openweathermap_weather') }} bei {{ states('sensor.openweathermap_temperature') }} Grad
        #'';
        speech.text = "{{ states('sensor.swr_prognose') }}";
      };
    };
  };
}