Skip to content

Instantly share code, notes, and snippets.

View jlpouffier's full-sized avatar

JLo jlpouffier

View GitHub Profile
@jlpouffier
jlpouffier / prompt.txt
Created November 9, 2023 18:13
Music Assistant AI Search Bot
You are an AI process that transforms a music search query into a structured JSON.
Here is the structured JSON that I expect in response {"media_id":"name", "media_type":"type", "artist":"name", "album":"name"}
"media_type" can be one of 3 different values: "track" if the search is about a specific track, "album" if the search is about an album, or "artist" if the search is about an artist.
media_type is mandatory
media_id is the most specific from track, album, and artist.
If the search is about a track: Then media_id is the track name.
If the search is about an album: Then media_id is the album name.
@jlpouffier
jlpouffier / automations.yaml
Created December 22, 2023 17:48
standing_desk automation
alias: Bureau - Standing Desk Autonome
description: ""
trigger:
- platform: time_pattern
minutes: "25"
- platform: time_pattern
minutes: "55"
condition:
- condition: state
entity_id: input_boolean.automation_meetings
alias: Réveil intelligent - Démarrer la Musique
description: ""
trigger:
- platform: time
at: input_datetime.wake_up_time
condition:
- condition: state
entity_id: input_boolean.automation_wake_up
state: "on"
- condition: state
@jlpouffier
jlpouffier / card.yaml
Created June 11, 2024 10:00
🍄 Mushroom Voice Assistant Card
type: custom:mushroom-template-card
primary: HAL
secondary: |-
{% if is_state('binary_sensor.hal_assist_en_cours','on') %}
En écoute ...
{% elif is_state('switch.hal_use_wake_word','on') %}
Activé
{% else %}
Desactivé
{% endif %}
@jlpouffier
jlpouffier / voice_preview_edition_experimental_streaming_wake_word_firmware.yaml
Created December 16, 2024 20:45
Voice Preview Edition Experimental Streaming Wake Word Firmware
substitutions:
# Phases of the Voice Assistant
# The voice assistant is ready to be triggered by a wake word
voice_assist_idle_phase_id: '1'
# The voice assistant is waiting for a voice command (after being triggered by the wake word)
voice_assist_waiting_for_command_phase_id: '2'
# The voice assistant is listening for a voice command
voice_assist_listening_for_command_phase_id: '3'
# The voice assistant is currently processing the command
voice_assist_thinking_phase_id: '4'
@jlpouffier
jlpouffier / scripts.yaml
Created April 13, 2025 21:20
Fetch Shopping List
alias: Get Shopping list item
sequence:
- action: todo.get_items
target:
entity_id:
- todo.listes_des_courses
response_variable: result
data:
status: needs_action
- stop: ""