Skip to content

Instantly share code, notes, and snippets.

@msarsha
Last active October 2, 2024 20:41
Show Gist options
  • Save msarsha/342fffecf777af241e4ba2c43904fec5 to your computer and use it in GitHub Desktop.
Save msarsha/342fffecf777af241e4ba2c43904fec5 to your computer and use it in GitHub Desktop.
room card
card:
type: custom:mushroom-template-card
primary: הורים
secondary: ''
icon: mdi:bed-double
layout: vertical
fill_container: false
multiline_secondary: false
tap_action:
action: navigate
navigation_path: /dashboard-home/paremts
entity: light.parents_ifan_parents_fan
badge_icon: mdi:lightbulb
badge_color: |-
{% set l = states('light.parents_ifan_parents_fan') %}
{% set l2 = states('switch.parents_bathroom_switch_l1') %}
{% set l3 = states('switch.parents_bathroom_switch_l2') %}
{% set ac = states('climate.parents_ac') %}
{% set f = states('fan.parents_ifan') %}
{% for item in [l,ac,f,l2,l3] %}
{% if item != 'off' %}
green
{%break%}
{% endif %}
{% endfor %}
double_tap_action:
action: none
hold_action:
action: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment