Advertisement
caffeinated00

room card

Jan 16th, 2025
2,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. type: custom:stack-in-card
  2. mode: horizontal
  3. cards:
  4. - type: vertical-stack
  5. cards:
  6. - type: custom:mushroom-template-card
  7. primary: Master Bedroom
  8. secondary: >-
  9. {{ states('sensor.h5105_4f36_temperature')|round(2) }}°F | {{
  10. states('sensor.h5105_4f36_humidity')|round(2) }}%
  11. card_mod:
  12. style:
  13. mushroom-shape-icon$: |
  14. .shape {
  15. display: none !important;
  16. }
  17. .: |
  18. ha-card {
  19.  
  20. border: 0px;
  21. padding-left: 10px;
  22. padding-top: 10px;
  23. width: 500px;
  24. }
  25. - type: custom:mushroom-template-card
  26. entity: switch.night_stand_zb
  27. layout: horizontal
  28. icon: mdi:weather-night
  29. tap_action:
  30. action: toggle
  31. hold_action:
  32. action: more-info
  33. double_tap_action:
  34. action: more-info
  35. icon_color: >-
  36. {% if is_state('switch.night_stand_zb', 'on') or
  37. is_state('light.master_bedroom_floor_lamp_zb', 'on') %}
  38. #c5bded
  39. {% else %}
  40. #7A7A7F
  41. {% endif %}
  42. primary_info: none
  43. secondary_info: none
  44. card_mod:
  45. style:
  46. mushroom-shape-icon$: |
  47. .shape {
  48. --icon-size: 135px;
  49. }
  50. .: |
  51. ha-card {
  52. border: 0px;
  53. margin-left: -30px;
  54. margin-top: -20px;
  55.  
  56. }
  57. - type: custom:mushroom-chips-card
  58. chips:
  59. - type: template
  60. entity: switch.night_stand_zb
  61. tap_action:
  62. action: toggle
  63. hold_action:
  64. action: more-info
  65. double_tap_action:
  66. action: more-info
  67. icon: mdi:lamp
  68. card_mod:
  69. style: |
  70. ha-card {
  71. --chip-background: {% if is_state('switch.night_stand_zb', 'on') %} #B7B5DD {% else %} #353535 {% endif %};
  72. --color: {% if is_state('switch.night_stand_zb', 'on') %} #65647A {% else %} #DBDBDB {% endif %};
  73. justify-content: center;
  74. height: 35px !important;
  75. width: 35px !important;
  76. border: 0 !important;
  77. box-shadow: none !important;
  78. border-radius: 22px !important;
  79. }
  80. - type: template
  81. entity: light.master_bedroom_floor_lamp_zb
  82. tap_action:
  83. action: toggle
  84. hold_action:
  85. action: more-info
  86. double_tap_action:
  87. action: none
  88. icon: mdi:desk-lamp
  89. card_mod:
  90. style: |
  91. ha-card {
  92. --chip-background: {% if is_state('light.master_bedroom_floor_lamp_zb', 'on') %} #323264 {% else %} #353535 {% endif %};
  93. --color: {% if is_state('light.master_bedroom_floor_lamp_zb', 'on') %} #E3C8C4 {% else %} #DBDBDB {% endif %};
  94. justify-content: center;
  95. height: 35px !important;
  96. width: 35px !important;
  97. border: 0 !important;
  98. box-shadow: none !important;
  99. border-radius: 22px !important;
  100. }
  101. - type: template
  102. entity: binary_sensor.master_bedroom_contact_contact
  103. tap_action:
  104. action: more-info
  105. hold_action:
  106. action: none
  107. double_tap_action:
  108. action: none
  109. icon: mdi:door-closed
  110. card_mod:
  111. style: |
  112. ha-card {
  113. --chip-background: {% if is_state('binary_sensor.master_bedroom_contact_contact', 'on') %} #9A8BAA {% else %} #353535 {% endif %};
  114. --color: {% if is_state('binary_sensor.master_bedroom_contact_contact', 'on') %} #574F60 {% else %} #DBDBDB {% endif %};
  115. justify-content: center;
  116. height: 35px !important;
  117. width: 35px !important;
  118. border: 0 !important;
  119. box-shadow: none !important;
  120. border-radius: 22px !important;
  121. }
  122. card_mod:
  123. style: |
  124. .chip-container {
  125. flex-flow: column wrap-reverse !important;
  126. display: flex !important;
  127. --chip-spacing: 8px;
  128. margin: 12px;
  129. }
  130. .: |
  131. .container {
  132. align: end;
  133. }
  134. card_mod:
  135. style: |
  136. ha-card {
  137. max-width: 100%;
  138. min-width: 50%;
  139. height: 186px;
  140. }
  141.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement