]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Review Voice Scripts
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 6 Jun 2019 09:27:30 +0000 (11:27 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 6 Jun 2019 09:27:30 +0000 (11:27 +0200)
script/audio.yaml
ui-lovelace.yaml

index d37425c9f87f065c7245ead86350a94b27ba0c11..9fe24035c891bec6d2fda0aac324aff7d4ad4876 100644 (file)
@@ -3,6 +3,8 @@
 # Inputs: \r
 # - type:\r
 #         1 -> bell'affare\r
+#         2 -> belan\r
+#         3 -> una schifezza\r
 #\r
 # Operations:\r
 # - script.volume_manager\r
index 1d8a34fb1c90628afbd2cf09d354e725aaa1430a..52ad1e5b7a770ffedcf8753fb2d2f521552d8391 100644 (file)
@@ -305,6 +305,34 @@ views:
               service: script.turn_on
               service_data:
                 entity_id: script.laura_voice
+                data:
+                  variables:
+                    type: '1'
+          - type: entity-button
+            name: Belan
+            icon: mdi:numeric-2
+            entity: script.laura_voice
+            tap_action:
+              action: call-service
+              service: script.turn_on
+              service_data:
+                entity_id: script.laura_voice
+                data:
+                  variables:
+                    type: '2'
+          - type: entity-button
+            name: Schifezza
+            icon: mdi:numeric-3
+            entity: script.laura_voice
+            tap_action:
+              action: call-service
+              service: script.turn_on
+              service_data:
+                entity_id: script.laura_voice
+                data:
+                  variables:
+                    type: '3'
+
 
 ######################################################################
 # People