Last active
October 2, 2024 20:41
-
-
Save msarsha/342fffecf777af241e4ba2c43904fec5 to your computer and use it in GitHub Desktop.
room 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
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