Last active
January 26, 2023 09:13
-
-
Save fwartner/a55504399677e53b78659722236f8c4f to your computer and use it in GitHub Desktop.
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: horizontal-stack | |
cards: | |
- show_name: true | |
show_icon: true | |
type: button | |
tap_action: | |
action: toggle | |
entity: switch.arbeitszeit | |
icon: mdi:briefcase | |
icon_height: 40px | |
- type: custom:mushroom-template-card | |
primary: |- | |
{%if 'Inactive' not in states("sensor.macbook_pro_active_camera") %} | |
Flo im Meeting | |
{% elif 'on' in states("switch.arbeitszeit") %} | |
Flo am arbeiten | |
{% else %} | |
FEIERABEND | |
{% endif %} | |
secondary: |- | |
{%if 'Inactive' not in states("sensor.macbook_pro_active_camera") %} | |
Mit Kamera | |
{% elif 'on' in states("switch.arbeitszeit") %} | |
Ohne Kamera | |
{% else %} | |
{% endif %} | |
icon: mdi:briefcase | |
entity: input_boolean.florian_im_meeting | |
fill_container: true | |
icon_color: |- | |
{%if 'Inactive' not in states("sensor.macbook_pro_active_camera") %} | |
{{ "red" }} | |
{% else %} | |
{{ "orange" }} | |
{% endif %} | |
badge_icon: |- | |
{%if 'Inactive' not in states("sensor.macbook_pro_active_camera") %} | |
mdi:camera | |
{% else %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment