{% set type = 1 %}\r
{% endif %}\r
https://home.giorgioravera.it/local/audio/laura/{{type}}.mp3\r
+\r
+laura_voice_1:\r
+ alias: Voce Laura 1\r
+ sequence:\r
+ - service: script.laura_voice\r
+ data:\r
+ type: '1'\r
+\r
+laura_voice_2:\r
+ alias: Voce Laura 2\r
+ sequence:\r
+ - service: script.laura_voice\r
+ data:\r
+ type: '2'\r
+\r
+laura_voice_3:\r
+ alias: Voce Laura 3\r
+ sequence:\r
+ - service: script.laura_voice\r
+ data:\r
+ type: '3'\r
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
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
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