]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added another voice of Laura
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 16 Apr 2021 14:42:29 +0000 (16:42 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 16 Apr 2021 14:42:29 +0000 (16:42 +0200)
.storage/lovelace.lovelace_multimedia
scripts/audio.yaml
www/audio/laura/7.mp3 [new file with mode: 0644]

index 7f6fd8735a2cee3d2d081b3cb5178057602a369c..2cd6875ca6f68e333e5844d015b0e0b7450b5abb 100644 (file)
                                         {
                                             "entity": "script.laura_voice",
                                             "icon": "mdi:numeric-1",
-                                            "name": "Affare",
+                                            "name": "Bell'Affare",
                                             "tap_action": {
                                                 "action": "call-service",
                                                 "service": "script.turn_on",
                                     ],
                                     "type": "horizontal-stack"
                                 },
+                                {
+                                    "cards": [
+                                        {
+                                            "entity": "script.laura_voice",
+                                            "icon": "mdi:numeric-7",
+                                            "name": "Stitch",
+                                            "tap_action": {
+                                                "action": "call-service",
+                                                "service": "script.turn_on",
+                                                "service_data": {
+                                                    "entity_id": "script.laura_voice_7"
+                                                }
+                                            },
+                                            "type": "entity-button"
+                                        },
+                                        {
+                                            "entity": "script.laura_voice",
+                                            "icon": "mdi:numeric-8",
+                                            "name": null,
+                                            "show_name": false,
+                                            "show_icon": false,
+                                            "type": "entity-button"
+                                        },
+                                        {
+                                            "entity": "script.laura_voice",
+                                            "icon": "mdi:numeric-9",
+                                            "name": null,
+                                            "show_name": false,
+                                            "show_icon": false,
+                                            "type": "entity-button"
+                                        }
+                                    ],
+                                    "type": "horizontal-stack"
+                                },
                                 {
                                     "cards": [
                                         {
index 20941b3915fa9f9039a87769cea3cbbe1a1d19aa..8bcd5f96ecb3d9ec5c793147c2307ec4c2b44a18 100644 (file)
@@ -8,6 +8,7 @@
 #         4 -> ma che schifo รจ?
 #         5 -> mamma mia
 #         6 -> no
+#         7 -> io mi chiamo Stitch
 #
 # Operations:
 # - script.volume_manager
@@ -48,7 +49,7 @@ laura_voice:
         media_content_type: 'audio/mp4'
         media_content_id: >-
           {%- macro set_type() -%}
-            {{ range(1,7,1) | random }}
+            {{ range(1,8,1) | random }}
           {%- endmacro -%}
           {% if type is not defined %}
             {% set type = set_type() %}
@@ -97,6 +98,13 @@ laura_voice_6:
     data:
       type: '6'
 
+laura_voice_7:
+  alias: Voce Laura 7
+  sequence:
+  - service: script.laura_voice
+    data:
+      type: '7'
+
 ######################################################################
 # Script: Babu Frik
 # Inputs:
diff --git a/www/audio/laura/7.mp3 b/www/audio/laura/7.mp3
new file mode 100644 (file)
index 0000000..5e3cf15
Binary files /dev/null and b/www/audio/laura/7.mp3 differ