Advertisement
abeksis

alarm

May 4th, 2022
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. - type: vertical-stack
  2. cards:
  3. - card:
  4. entity: alarm_control_panel.home_alarm
  5. states:
  6. # - arm_home
  7. - arm_away
  8. style:
  9. .: |
  10. ha-card > ha-label-badge{
  11. --alarm-state-color: var(--google-green-500) !important;
  12. }
  13. ha-card{
  14. padding-top: 16px;
  15. padding-bottom: 12px !important;
  16. border-radius: 21px;
  17. }
  18. ha-card > h1{
  19. padding-top: 0;
  20. color: transparent;
  21. }
  22. ha-card > h1::before{
  23. content: "Deactivated";
  24. color: var(--google-green-500);
  25. position: absolute;
  26. font-variant: small-caps;
  27. }
  28. #alarmCode{
  29. display: none;
  30. }
  31. #keypad{
  32. display: none !important;
  33. }
  34. '#armActions':
  35. mwc-button:
  36. $: |
  37. #button > span.slot-container{
  38. color: transparent;
  39. position: absolute;
  40.  
  41. }
  42. #button{
  43. width: 150px;
  44. border-radius: 21px;
  45. }
  46. #button > span.slot-container::before{
  47. color: var(--mdc-theme-primary, #6200ee);
  48. content: "Enable";
  49. margin: 0 0 0 50%;
  50. }
  51. title: Alarm
  52. type: alarm-panel
  53. conditions:
  54. - entity: alarm_control_panel.home_alarm
  55. state: disarmed
  56. type: conditional
  57. - card:
  58. entity: alarm_control_panel.home_alarm
  59. states:
  60. # - arm_home
  61. - arm_away
  62. title: Alarm
  63. type: alarm-panel
  64. style:
  65. .: |
  66. ha-card > ha-label-badge{
  67. --alarm-state-color: var(--google-red-500) !important;
  68. }
  69. ha-card{
  70. padding-top: 16px;
  71. padding-bottom: 12px !important;
  72. border-radius: 21px;
  73. }
  74. ha-card > h1{
  75. padding-top: 0;
  76. color: transparent;
  77. }
  78. ha-card > h1::before{
  79. content: "Activated";
  80. color: var(--google-red-500);
  81. position: absolute;
  82. font-variant: small-caps;
  83. }
  84. '#armActions':
  85. mwc-button:
  86. $: |
  87. #button > span.slot-container{
  88. color: transparent;
  89. position: absolute;
  90. }
  91. #button{
  92. width: 150px;
  93. border-radius: 21px;
  94. }
  95. #button > span.slot-container::before{
  96. color: var(--mdc-theme-primary, #6200ee);
  97. content: "Disable";
  98. margin: 0 0 0 50%;
  99. }
  100. '#keypad':
  101. mwc-button:
  102. $: |
  103. #button{
  104. border-radius: 12px
  105. }
  106. conditions:
  107. - entity: alarm_control_panel.home_alarm
  108. state_not: disarmed
  109. type: conditional
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement