Skip to content

Instantly share code, notes, and snippets.

@fwartner
Last active January 26, 2023 09:13
Show Gist options
  • Save fwartner/a55504399677e53b78659722236f8c4f to your computer and use it in GitHub Desktop.
Save fwartner/a55504399677e53b78659722236f8c4f to your computer and use it in GitHub Desktop.
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