Advertisement
pqpxoxa

HA - custom:button-card

Sep 5th, 2021
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. type: custom:button-card
  2. entity: binary_sensor.d_0_front_door
  3. name: Front Door
  4. show_last_changed: true
  5. entity_picture: /local/contactsensor.png
  6. show_entity_picture: true
  7. aspect_ratio: 1/1
  8. show_state: true
  9. show_label: true
  10. styles:
  11. card:
  12. - padding: 10%
  13. grid:
  14. - grid-template-areas: '"i" "n" "s" "l"'
  15. - grid-template-columns: 1fr
  16. - grid-template-rows: 1fr min-content min-content
  17. img_cell:
  18. - align-items: start
  19. icon:
  20. - width: 40px
  21. - margin: auto
  22. name:
  23. - justify-self: start
  24. - font-weight: 300
  25. - font-size: 15px
  26. - padding-bottom: 3px
  27. state:
  28. - justify-self: start
  29. - font-size: 11px
  30. - padding-bottom: 3px
  31. label:
  32. - justify-self: start
  33. - font-size: 10px
  34. state:
  35. - value: 'on'
  36. styles:
  37. card:
  38. - filter: opacity(50%)
  39. - height: 130px
  40. - padding: 10px
  41. grid:
  42. - grid-template-areas: '"i" "n" "s" "l"'
  43. - grid-template-columns: 1fr
  44. icon:
  45. - align-self: start
  46. - text-align: start
  47. - width: 45px
  48. - margin: auto
  49. - filter: grayscale(100%)
  50. name:
  51. - justify-self: start
  52. - font-weight: 300
  53. - font-size: 15px
  54. - padding-bottom: 3px
  55. state:
  56. - justify-self: start
  57. - font-size: 13px
  58. - padding-bottom: 3px
  59. label:
  60. - justify-self: start
  61. - font-size: 12px
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement