Advertisement
pqpxoxa

HA - custom:button-card filter P2

Sep 5th, 2021
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. type: custom:button-card
  2. entity: sensor.motion_name_last_activated
  3. name: card
  4. show_last_changed: true
  5. entity_picture: /local/pirsensor.png
  6. show_entity_picture: true
  7. aspect_ratio: 1/1
  8. show_state: true
  9. show_label: true
  10. show_name: false
  11. styles:
  12. card:
  13. - padding: 10%
  14. grid:
  15. - grid-template-areas: '"i" "s" "nl" "l"'
  16. - grid-template-columns: 1fr
  17. - grid-template-rows: 1fr min-content min-content
  18. img_cell:
  19. - align-items: start
  20. icon:
  21. - width: 35px
  22. - margin: auto
  23. custom_fields:
  24. nl:
  25. - justify-self: start
  26. - font-weight: 300
  27. - font-size: 11px
  28. - padding-bottom: 3px
  29. name:
  30. - color: transparent
  31. state:
  32. - justify-self: start
  33. - font-size: 13px
  34. - padding-bottom: 3px
  35. label:
  36. - justify-self: start
  37. - font-size: 10px
  38. custom_fields:
  39. nl: |
  40. [[[
  41. return states['sensor.motion_state_last_activated'].state;
  42. ]]]
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement