]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added Laura additional voices
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 2 Apr 2021 10:40:28 +0000 (12:40 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 2 Apr 2021 10:40:28 +0000 (12:40 +0200)
.storage/lovelace.lovelace_multimedia
scripts/audio.yaml
www/audio/laura/5.mp3 [new file with mode: 0644]
www/audio/laura/6.mp3 [new file with mode: 0644]

index e782ce99cac8d73c9c26036c32eb8af9b87bf786..7f6fd8735a2cee3d2d081b3cb5178057602a369c 100644 (file)
                                                 }
                                             },
                                             "type": "entity-button"
-                                        },
+                                        }
+                                    ],
+                                    "type": "horizontal-stack"
+                                },
+                                {
+                                    "cards": [
                                         {
                                             "entity": "script.laura_voice",
                                             "icon": "mdi:numeric-4",
                                                 }
                                             },
                                             "type": "entity-button"
+                                        },
+                                        {
+                                            "entity": "script.laura_voice",
+                                            "icon": "mdi:numeric-5",
+                                            "name": "Mamma Mia",
+                                            "tap_action": {
+                                                "action": "call-service",
+                                                "service": "script.turn_on",
+                                                "service_data": {
+                                                    "entity_id": "script.laura_voice_5"
+                                                }
+                                            },
+                                            "type": "entity-button"
+                                        },
+                                        {
+                                            "entity": "script.laura_voice",
+                                            "icon": "mdi:numeric-6",
+                                            "name": "No",
+                                            "tap_action": {
+                                                "action": "call-service",
+                                                "service": "script.turn_on",
+                                                "service_data": {
+                                                    "entity_id": "script.laura_voice_6"
+                                                }
+                                            },
+                                            "type": "entity-button"
                                         }
                                     ],
                                     "type": "horizontal-stack"
index f4658f560dcc2e368118bb14033db3c5bbdb54b6..20941b3915fa9f9039a87769cea3cbbe1a1d19aa 100644 (file)
@@ -1,11 +1,13 @@
 ######################################################################
 # Script: Laura
-# Inputs: 
+# Inputs:
 # - type:
 #         1 -> bell'affare
 #         2 -> belan
 #         3 -> una schifezza
-#         3 -> ma che schifo è?
+#         4 -> ma che schifo è?
+#         5 -> mamma mia
+#         6 -> no
 #
 # Operations:
 # - script.volume_manager
@@ -46,7 +48,7 @@ laura_voice:
         media_content_type: 'audio/mp4'
         media_content_id: >-
           {%- macro set_type() -%}
-            {{ range(1,5,1) | random }}
+            {{ range(1,7,1) | random }}
           {%- endmacro -%}
           {% if type is not defined %}
             {% set type = set_type() %}
@@ -81,9 +83,23 @@ laura_voice_4:
     data:
       type: '4'
 
+laura_voice_5:
+  alias: Voce Laura 5
+  sequence:
+  - service: script.laura_voice
+    data:
+      type: '5'
+
+laura_voice_6:
+  alias: Voce Laura 6
+  sequence:
+  - service: script.laura_voice
+    data:
+      type: '6'
+
 ######################################################################
 # Script: Babu Frik
-# Inputs: 
+# Inputs:
 # - type:
 #         1 -> I'm babu frik
 #         2 -> heheeee
diff --git a/www/audio/laura/5.mp3 b/www/audio/laura/5.mp3
new file mode 100644 (file)
index 0000000..ca0c4ae
Binary files /dev/null and b/www/audio/laura/5.mp3 differ
diff --git a/www/audio/laura/6.mp3 b/www/audio/laura/6.mp3
new file mode 100644 (file)
index 0000000..d32e25d
Binary files /dev/null and b/www/audio/laura/6.mp3 differ