Advertisement
Guest User

Room Card

a guest
Mar 5th, 2025
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. type: custom:button-card
  2. name: Living Room
  3. icon: mdi:sofa-outline
  4. grid_options:
  5. columns: 6
  6. entity: sensor.thermostat_temperature
  7. show_state: true
  8. state_display: |
  9. [[[
  10. const temperature = states['sensor.thermostat_temperature'] ? states['sensor.thermostat_temperature'].state : null;
  11. return temperature ? (parseFloat(temperature).toFixed(1) + "°C") : 'N/A';
  12. ]]]
  13. custom_fields:
  14. actions_container:
  15. card:
  16. type: horizontal-stack
  17. cards:
  18. - type: custom:mushroom-chips-card
  19. chips:
  20. - type: entity
  21. entity: media_player.sonos_move
  22. content_info: none
  23. tap_action:
  24. action: navigate
  25. navigation_path: "#music"
  26. - type: custom:mushroom-chips-card
  27. chips:
  28. - type: light
  29. entity: light.luz_living_room
  30. tap_action:
  31. action: toggle
  32. content_info: none
  33. use_light_color: false
  34. - type: template
  35. entity: climate.living_room
  36. icon_color: >-
  37. {{ '#F97316' if is_state_attr('climate.living_room', 'hvac_action',
  38. 'heating') }}
  39. icon: >-
  40. {{ 'mdi:radiator' if is_state_attr('climate.living_room',
  41. 'hvac_action', 'heating') else 'mdi:radiator-disabled' }}
  42. content_info: none
  43. tap_action:
  44. action: more-info
  45. - type: entity
  46. entity: cover.persianas_living_room
  47. content_info: none
  48. styles:
  49. grid:
  50. - grid-template-areas: "\"n actions_container\" \"s actions_container\" \"i actions_container\""
  51. - grid-template-columns: 1fr min-content
  52. - grid-template-rows: min-content min-content 1fr
  53. card:
  54. - padding: 10px
  55. - background: var(--card-background-color)
  56. custom_fields:
  57. actions_container:
  58. - background: var(--primary-background-color)
  59. - border-radius: 14px
  60. - padding: 5px
  61. name:
  62. - justify-self: start
  63. - font-size: 19px
  64. - font-weight: 600
  65. - color: var(--primary-color)
  66. state:
  67. - justify-self: start
  68. - font-size: 12px
  69. - font-weight: 500
  70. - color: rgba(96,114,116,0.7)
  71. img_cell:
  72. - position: absolute
  73. - width: 100px
  74. - height: 100px
  75. - left: "-20px"
  76. - bottom: "-20px"
  77. - border-radius: 100%
  78. - background: "#FCD34D"
  79. icon:
  80. - width: 55px
  81. - opacity: "0.8"
  82. - color: "#92400E"
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement