Created
July 17, 2024 08:12
-
-
Save hoombar/ef7eca91909b660c051f962760935cd8 to your computer and use it in GitHub Desktop.
Fish fed home assistant lovelace card
This file contains hidden or 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 | |
entity: input_boolean.fish_have_been_fed | |
fill_container: false | |
primary: |- | |
{% if is_state('input_boolean.fish_have_been_fed', 'on') %} | |
Fed | |
{% elif is_state('input_boolean.fish_have_been_fed', 'off') %} | |
Hungry | |
{% endif %} | |
secondary: Fish | |
name: Fish | |
icon: |- | |
{% if is_state('input_boolean.fish_have_been_fed', 'on') %} | |
mdi:fish-off | |
{% elif is_state('input_boolean.fish_have_been_fed', 'off') %} | |
mdi:fish | |
{% endif %} | |
icon_color: |- | |
{% if is_state('input_boolean.fish_have_been_fed', 'on') %} | |
disabled | |
{% elif is_state('input_boolean.fish_have_been_fed', 'off') %} | |
primary | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment