ChrisSchoultz

Untitled

Feb 20th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. type: entities
  2. entities:
  3. - type: custom:restriction-card
  4. restrictions:
  5. pin:
  6. code: 1234
  7. text: Enter Pin Code
  8. duration: 20
  9. card:
  10. type: custom:paper-buttons-row
  11. base_config:
  12. style:
  13. button:
  14. font-size: 0.9rem
  15. background-color: rgba(62, 65, 75, 0.6)
  16. border-radius: 15px
  17. "--mdc-icon-size": 18px
  18. buttons:
  19. - entity: switch.adguard_home_parental_control
  20. state_icons:
  21. "off": mdi:magnify
  22. "on": mdi:magnify-expand
  23. state_styles:
  24. "on":
  25. button:
  26. background-color: rgba(13, 160, 53, 0.3)
  27. color: rgba(20, 200, 60, 1)
  28. "off":
  29. button:
  30. background-color: rgba(62, 65, 75, 0.6)
  31. color: rgba(132, 135, 145, 1)
  32. name: Parental Control
  33. tooltip: false
  34. layout: icon_name
  35. tap_action:
  36. action: call-service
  37. service: switch.toggle
  38. service_data:
  39. entity_id: switch.adguard_home_parental_control
  40. style:
  41. button:
  42. height: 40px
  43. width: 110px
  44. margin-left: auto
  45. margin-right: auto
  46. margin-bottom: 10px
  47. - entity: switch.adguard_home_protection
  48. state_icons:
  49. "off": mdi:lock-open-variant-outline
  50. "on": mdi:lock-outline
  51. state_styles:
  52. "on":
  53. button:
  54. background-color: rgba(13, 160, 53, 0.3)
  55. color: rgba(20, 200, 60, 1)
  56. "off":
  57. button:
  58. background-color: rgba(62, 65, 75, 0.6)
  59. color: rgba(132, 135, 145, 1)
  60. name: AdGuard Protect
  61. tooltip: false
  62. layout: icon_name
  63. tap_action:
  64. action: call-service
  65. service: switch.toggle
  66. service_data:
  67. entity_id: switch.adguard_home_protection
  68. style:
  69. button:
  70. height: 40px
  71. width: 110px
  72. margin-left: auto
  73. margin-right: auto
  74. margin-bottom: 10px
  75. card_mod:
  76. style: |
  77. :host {
  78. --restriction-blocked-lock-color: red;
  79. --restriction-success-lock-color: green;
  80. --restriction-invalid--color: orange;
  81. --restriction-lock-icon-size: 22px;
  82. --restriction-lock-margin-left: calc(50% - 18px);
  83. --restriction-lock-row-margin-top: 10px;
  84. }
  85.  
Advertisement
Add Comment
Please, Sign In to add comment