Skip to content

Instantly share code, notes, and snippets.

@jlpouffier
Created June 11, 2024 10:00
Show Gist options
  • Save jlpouffier/9a8a230fc904eb542d454f7970dbcd32 to your computer and use it in GitHub Desktop.
Save jlpouffier/9a8a230fc904eb542d454f7970dbcd32 to your computer and use it in GitHub Desktop.
🍄 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 %}
icon: mdi:radiobox-marked
entity: switch.hal_use_wake_word
icon_color: |-
{% if is_state('switch.hal_use_wake_word','on') %}
amber
{% else %}
grey
{% endif %}
badge_icon: |-
{% if is_state('binary_sensor.hal_assist_en_cours','on') %}
mdi:chat-alert
{% elif is_state('switch.hal_use_wake_word','on') %}
mdi:chat-processing
{% else %}
mdi:sleep
{% endif %}
badge_color: |-
{% if is_state('binary_sensor.hal_assist_en_cours','on') %}
blue
{% else %}
dark-grey
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment