Advertisement
Guest User

Untitled

a guest
Apr 11th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. type: custom:stack-in-card
  2. cards:
  3. - type: custom:layout-card
  4. layout_type: masonry
  5. layout: {}
  6. cards:
  7. - square: false
  8. columns: 3
  9. type: grid
  10. cards:
  11. - type: horizontal-stack
  12. cards:
  13. - type: custom:mushroom-chips-card
  14. chips:
  15. - type: conditional
  16. conditions:
  17. - entity: person.robert
  18. state: home
  19. chip:
  20. type: entity
  21. entity: person.robert
  22. content_info: nam
  23. use_entity_picture: true
  24. card_mod:
  25. style: |
  26. ha-card {
  27. --chip-background: rgba(var(--rgb-state-person-home), 0.4);
  28. margin-top: 5px;
  29. margin-bottom: -20px;
  30. }
  31. - type: conditional
  32. conditions:
  33. - entity: person.froukje
  34. state: home
  35. chip:
  36. type: entity
  37. entity: person.froukje
  38. content_info: none
  39. use_entity_picture: true
  40. card_mod:
  41. style: |
  42. ha-card {
  43. --chip-background: rgba(var(--rgb-state-person-home), 0.4);
  44. margin-top: 5px;
  45. margin-bottom: -20px;
  46. }
  47. - type: horizontal-stack
  48. cards:
  49. - type: custom:mushroom-chips-card
  50. chips:
  51. - type: conditional
  52. conditions:
  53. - entity: person.robert
  54. state_not: home
  55. chip:
  56. type: entity
  57. entity: person.robert
  58. content_info: none
  59. use_entity_picture: true
  60. card_mod:
  61. style: |
  62. ha-card {
  63. {% if is_state('person.robert', 'not_home') %}
  64. --chip-background: rgba(var(--rgb-state-person-not-home), 0.4);
  65. {% elif is_state('person.robert', 'unknown') %}
  66. --chip-background: rgba(var(--rgb-state-person-unknown), 0.4);
  67. {% else %}
  68. --chip-background: rgba(var(--rgb-state-person-zone), 0.4);
  69. {% endif %}
  70. margin-top: 5px;
  71. margin-bottom: -20px;
  72. }
  73. - type: conditional
  74. conditions:
  75. - entity: person.froukje
  76. state_not: home
  77. chip:
  78. type: entity
  79. entity: person.froukje
  80. content_info: none
  81. use_entity_picture: true
  82. card_mod:
  83. style: |
  84. ha-card {
  85. {% if is_state('person.froukje', 'not_home') %}
  86. --chip-background: rgba(var(--rgb-state-person-not-home), 0.4);
  87. {% elif is_state('person.froukje', 'unknown') %}
  88. --chip-background: rgba(var(--rgb-state-person-unknown), 0.4);
  89. {% else %}
  90. --chip-background: rgba(var(--rgb-state-person-zone), 0.4);
  91. {% endif %}
  92. margin-top: 5px;
  93. margin-bottom: -20px;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement