Skip to content

Commit

Permalink
Merge pull request #11 from TheFes/2024.8.0
Browse files Browse the repository at this point in the history
Update to 2024.8.0
  • Loading branch information
TheFes authored Aug 23, 2024
2 parents 89f4bc3 + 4e05fd2 commit 29bc5d0
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 71 deletions.
28 changes: 14 additions & 14 deletions docs/examples/examples_google_home_resume.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ This example will play an mp3 on 2 targets, without additional data

```yaml
alias: "Play sound when there is someone at the door"
service: script.google_home_resume
action: script.google_home_resume
data:
action:
- service: media_player.play_media
- action: media_player.play_media
target:
area_id: 'living_room'
entity_id:
Expand All @@ -45,15 +45,15 @@ In this example a script is started instead of a service call directly to the en

```yaml
alias: "Play sound when there is someone at the door via script"
service: script.google_home_resume
action: script.google_home_resume
data:
target:
area_id: 'living_room'
entity_id:
- media_player.bedroom
- media_player.guestroom
action:
- service: script.play_sound
- action: script.play_sound
data:
file: "media-source://media_source/local/dingdong.mp3"
```
Expand All @@ -66,14 +66,14 @@ Enter the data for the TTS service call, and provide the volume under `extra`

```yaml
- alias: "Send TTS using Google Home Resume script"
service: script.turn_on
action: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- alias: "Send TTS message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id: media_player.living_mini
data:
Expand All @@ -95,14 +95,14 @@ The `picture_url` should be a full url (starting with `http://` or `https://`, n

```yaml
- alias: "Send TTS with picture and "
service: script.turn_on
action: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- alias: "Send TTS message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id:
- media_player.living_mini
Expand All @@ -123,14 +123,14 @@ ___

```yaml
- alias: "Send TTS with picture and "
service: script.turn_on
action: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- alias: "Send TTS message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id:
- media_player.living_mini
Expand All @@ -154,30 +154,30 @@ Don't put `wait: true` at the end of the last service_call, this will block the

```yaml
- alias: "Send multiple TTS to the same target"
service: script.turn_on
action: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- alias: "First TTS message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id: media_player.living_mini
data:
message: "I'm the first!"
extra:
wait: true
- alias: "Second message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id: media_player.living_mini
data:
message: "I'm second!"
extra:
wait: true
- alias: "Third and last message"
service: tts.google_cloud_say
action: tts.google_cloud_say
target:
entity_id: media_player.living_mini
data:
Expand Down
4 changes: 2 additions & 2 deletions docs/google_home_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ action:
- choose:
- conditions: "{{ trigger.id == 'leaving' }}"
sequence:
- service: script.google_home_event
- action: script.google_home_event
data:
target:
area_id: 'living_room'
resume: false
resume_id: resume_when_home
- conditions: "{{ trigger.id == 'arriving' }}"
sequence:
- service: script.google_home_event
- action: script.google_home_event
data:
target:
area_id: 'living_room'
Expand Down
4 changes: 2 additions & 2 deletions docs/google_home_voice.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ eta_thefes:
{%- set eta = (as_timestamp(now()) + 60 * states ('sensor.thefes_home') | float(0) | timestamp_custom('%H:%M') %}
If TheFes leaves now, he will be home at {{ eta }}.
- alias: "TTS for speaker voice command"
service: script.google_home_voice
action: script.google_home_voice
data:
target_conversion:
media_player.kitchen_hub: media_player.livinghome_group
use_resume: true
action:
- alias: "Send TTS message"
service: tts.google_cloud_say
action: tts.google_cloud_say
data:
message: "{{ message }}"
volume: 35
Expand Down
Loading

0 comments on commit 29bc5d0

Please sign in to comment.