Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peyanski/c502b289e2585ba263c629b01e2d0b77 to your computer and use it in GitHub Desktop.
Save peyanski/c502b289e2585ba263c629b01e2d0b77 to your computer and use it in GitHub Desktop.
alias: search the web demo with Google AI
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.lumi_lumi_sensor_motion_aq2_motion
to: "on"
conditions: []
actions:
- action: conversation.process
metadata: {}
data:
agent_id: conversation.google_generative_ai_2
conversation_id: "1"
text: >-
summarize me the most important tennis news in 2 short sentences in a
funny passive aggressive style. Don't include sources, links, titles.
Don't do any text formatting and go straight to point
response_variable: ai
- action: persistent_notification.create
metadata: {}
data:
message: "Tennis news are: {{ai.response.speech.plain.speech}}"
- action: tts.speak
metadata: {}
data:
cache: false
message: "Football news are: {{ai.response.speech.plain.speech}}"
language: en-GB
media_player_entity_id: media_player.home_assistant_voice_pe_media_player
target:
entity_id:
- tts.home_assistant_cloud
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment