From 4c0926b45dfa3fe6433366f9285b073e707d4b79 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Thu, 6 Jun 2019 11:37:24 +0200 Subject: [PATCH] Fixed Voice Scripts --- script/audio.yaml | 21 +++++++++++++++++++++ ui-lovelace.yaml | 16 +++------------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/script/audio.yaml b/script/audio.yaml index 9fe24035..ea655b99 100644 --- a/script/audio.yaml +++ b/script/audio.yaml @@ -42,3 +42,24 @@ laura_voice: {% set type = 1 %} {% endif %} https://home.giorgioravera.it/local/audio/laura/{{type}}.mp3 + +laura_voice_1: + alias: Voce Laura 1 + sequence: + - service: script.laura_voice + data: + type: '1' + +laura_voice_2: + alias: Voce Laura 2 + sequence: + - service: script.laura_voice + data: + type: '2' + +laura_voice_3: + alias: Voce Laura 3 + sequence: + - service: script.laura_voice + data: + type: '3' diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 52ad1e5b..18a2781f 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -304,10 +304,7 @@ views: action: call-service service: script.turn_on service_data: - entity_id: script.laura_voice - data: - variables: - type: '1' + entity_id: script.laura_voice_1 - type: entity-button name: Belan icon: mdi:numeric-2 @@ -316,10 +313,7 @@ views: action: call-service service: script.turn_on service_data: - entity_id: script.laura_voice - data: - variables: - type: '2' + entity_id: script.laura_voice_2 - type: entity-button name: Schifezza icon: mdi:numeric-3 @@ -328,11 +322,7 @@ views: action: call-service service: script.turn_on service_data: - entity_id: script.laura_voice - data: - variables: - type: '3' - + entity_id: script.laura_voice_3 ###################################################################### # People -- 2.47.3