alessmart

Card animata sensore pioggia

Dec 9th, 2024 (edited)
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | Software | 0 0
  1. Card Animata sensore pioggia
  2.  
  3. type: custom:button-card
  4. entity: binary_sensor.sensore_pioggia (tua entità)
  5. name: Pioggia
  6. icon: mdi:weather-rainy
  7. size: 80%
  8. styles:
  9. card:
  10. - border-radius: 10px
  11. - padding: 5px
  12. - height: 150px
  13. - width: 400px
  14. - text-align: center
  15. - background-color: "#1e1e1e"
  16. - color: "#AAAAAA"
  17. - box-shadow: "0 0 5px #000000"
  18. icon:
  19. - color: "#AAAAAA"
  20. name:
  21. - font-size: 18px
  22. - color: "#AAAAAA"
  23. state:
  24. - value: "on"
  25. styles:
  26. card:
  27. - animation: neon-flash 1s infinite
  28. - box-shadow: "0 0 20px #00FFFF, 0 0 40px #00FFFF"
  29. icon:
  30. - color: "#00FFFF"
  31. name:
  32. - color: "#00FFFF"
  33. - value: "off"
  34. styles:
  35. card:
  36. - box-shadow: "0 0 5px #000000"
  37. icon:
  38. - color: "#AAAAAA"
  39. name:
  40. - color: "#AAAAAA"
  41. card_mod:
  42. style: |
  43. @keyframes neon-flash {
  44. 0%, 100% {
  45. box-shadow: 0 0 10px #00FFFF, 0 0 30px #00FFFF;
  46. }
  47. 50% {
  48. box-shadow: 0 0 30px #00FFFF, 0 0 60px #00FFFF;
  49. }
  50. }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment