Created
June 11, 2024 10:00
-
-
Save jlpouffier/9a8a230fc904eb542d454f7970dbcd32 to your computer and use it in GitHub Desktop.
🍄 Mushroom Voice Assistant Card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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