Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2023
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. type: custom:mushroom-template-card
  2. entity: script.vacuum_front_entry
  3. secondary: Entry
  4. icon: mdi:door
  5. icon_color: light-green
  6. layout: horizontal
  7. tap_action:
  8. action: toggle
  9.  
  10.  
  11. OR
  12.  
  13. type: horizontal-stack
  14. cards:
  15. - type: custom:mushroom-template-card
  16. entity: script.vacuum_front_entry
  17. secondary: Entry
  18. icon: mdi:door
  19. icon_color: light-green
  20. layout: horizontal
  21. tap_action: null
  22. action: toggle
  23. - type: custom:mushroom-template-card
  24. entity: script.vacuum_kitchen
  25. secondary: Kitchen
  26. icon: mdi:door
  27. icon_color: light-green
  28. layout: horizontal
  29. tap_action: null
  30. action: toggle
  31.  
  32. OR
  33.  
  34. type: horizontal-stack
  35. cards:
  36. - type: horizontal-stack
  37. cards:
  38. - type: custom:layout-card
  39. layout_type: custom:grid-layout
  40. layout:
  41. grid-template-columns: auto
  42. margin: '-4px -4px -8px -4px'
  43. cards:
  44. - type: custom:stack-in-card
  45. mode: horizontal
  46. keep:
  47. background: true
  48. border_radius: true
  49. margin: true
  50. cards:
  51. - type: custom:mushroom-template-card
  52. entity: script.start_vacuuming_all_rooms_or_pause
  53. icon: mdi:play
  54. icon_color: green
  55. badge_icon: >-
  56. {{ 'mdi:robot-vacuum' if
  57. is_state('vacuum.roborock_vacuum_a15', 'cleaning') }}
  58. badge_color: >-
  59. {{ 'green' if
  60. is_state('vacuum.roborock_vacuum_a15','cleaning') }}
  61. tap_action:
  62. action: toggle
  63. layout: horizontal
  64. - type: custom:mushroom-template-card
  65. entity: script.stop_vacuum
  66. icon: mdi:stop
  67. icon_color: red
  68. badge_icon: '{{ ''mdi:reload'' if is_state(''script.stop_vacuum'', ''on'') }}'
  69. badge_color: '{{ ''black'' if is_state(''script.stop_vacuum'',''on'') }}'
  70. layout: horizontal
  71. tap_action:
  72. action: toggle
  73. - type: custom:mushroom-template-card
  74. entity: script.vacuum_return_to_dock
  75. badge_icon: >-
  76. {{ 'mdi:reload' if is_state('vacuum.roborock_vacuum_a15',
  77. 'returning') }}
  78. badge_color: >-
  79. {{ 'red' if
  80. is_state('vacuum.roborock_vacuum_a15','returning') }}
  81. icon: mdi:home
  82. icon_color: light-blue
  83. layout: horizontal
  84. tap_action:
  85. action: toggle
  86. - type: custom:mushroom-template-card
  87. entity: input_boolean.map_mode_enabled
  88. icon: mdi:map-check
  89. icon_color: orange
  90. badge_icon: >-
  91. {{ 'mdi:arrow-up-bold' if
  92. is_state('input_boolean.map_mode_enabled', 'on') else
  93. 'mdi:arrow-down-bold' }}
  94. badge_color: >-
  95. {{ 'red' if is_state('input_boolean.map_mode_enabled',
  96. 'on') else 'green' }}
  97. layout: horizontal
  98. tap_action:
  99. action: toggle
  100. - type: custom:mushroom-template-card
  101. entity: input_boolean.vac_info
  102. icon: mdi:information
  103. icon_color: lime
  104. badge_icon: >-
  105. {{ 'mdi:arrow-up-bold' if
  106. is_state('input_boolean.vac_info', 'on') else
  107. 'mdi:arrow-down-bold' }}
  108. badge_color: |-
  109. {{ 'red' if is_state('input_boolean.vac_info', 'on') else
  110. 'green' }}
  111. layout: horizontal
  112. tap_action:
  113. action: toggle
  114.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement