Advertisement
pqpxoxa

HA - Custom Button

Sep 11th, 2020
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. entity: binary_sensor.openclose_26
  2. icon: 'mdi:door'
  3. name: Front
  4. state:
  5. - icon: 'mdi:door-closed'
  6. styles:
  7. card:
  8. - height: 80px
  9. icon:
  10. - width: 45%
  11. - opacity: 0.5
  12. - padding-top: 10px
  13. name:
  14. - padding: 10px
  15. - font-size: 12px
  16. - text-overflow: unset
  17. - white-space: unset
  18. - word-break: break-word
  19. value: 'off'
  20. - color: white
  21. icon: 'mdi:door-open'
  22. operator: default
  23. styles:
  24. card:
  25. - height: 80px
  26. - color: red
  27. - animation: blink 2s ease infinite
  28. icon:
  29. - width: 45%
  30. - opacity: 0.5
  31. - color: red
  32. - padding-top: 10px
  33. name:
  34. - padding: 10px
  35. - font-size: 12px
  36. - text-overflow: unset
  37. - white-space: unset
  38. - word-break: break-word
  39. type: 'custom:button-card'
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement