Advertisement
Guest User

Untitled

a guest
Jan 31st, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. type: custom:vertical-stack-in-card
  2. cards:
  3. - entity: person.abbadon
  4. show_entity_picture: true
  5. show_name: false
  6. show_state: false
  7. styles:
  8. entity_picture:
  9. - border-radius: 50%
  10. - border: 6px solid
  11. - border-color: |
  12. [[[
  13. return states['sensor.michal_sleep_status'].state === 'Asleep'
  14. ? 'var(--state-icon-color)'
  15. : 'var(--state-icon-active-color)'
  16. ]]]
  17. - width: 110px
  18. - margin-top: -90px
  19. - padding: 0px
  20. card:
  21. - background: center no-repeat
  22. - background-image: url(/local/michal/Biuro.png
  23.  
  24. - height: 130px
  25. - padding: 0px
  26. type: custom:button-card
  27. - type: conditional
  28. conditions:
  29. - entity: sensor.michal_do_domu
  30. state_not: '0'
  31. card:
  32. type: custom:bar-card
  33. max: 500
  34. height: 12
  35. style: |
  36. bar-card-value{
  37. text-align: center;
  38. vertical-align: middle;
  39. left: -190px;
  40.  
  41. text-shadow: 0px 1px #000000;
  42.  
  43. }
  44. entities:
  45. - entity: sensor.michal_do_domu
  46. positions:
  47. icon: 'off'
  48. indicator: 'on'
  49. minmax: 'off'
  50. value: inside
  51. name: ' '
  52. - type: horizontal-stack
  53. cards:
  54. - entity: proximity.michal
  55. show_entity_picture: true
  56. show_name: false
  57. font-size: 11px
  58. show_state: true
  59. icon: mdi:map-marker-distance
  60. styles:
  61. card:
  62. - height: 40px
  63. - background: none
  64. - padding-top: 3px
  65. - margin-bottom: 5px
  66. - font-size: 11px
  67. state:
  68. - operator: '=='
  69. value: 0
  70. color: var(--state-icon-color)
  71. - operator: '!='
  72. value: 0
  73. color: var(--state-icon-active-color)
  74. type: custom:button-card
  75. - entity: sensor.armor_11t_battery_level
  76. show_entity_picture: true
  77. show_name: false
  78. show_state: true
  79. show_label: false
  80. font-size: 11px
  81. styles:
  82. card:
  83. - height: 40px
  84. - background: none
  85. - padding-top: 3px
  86. - margin-bottom: 5px
  87. - font-size: 11px
  88. icon:
  89. - color: |
  90. [[[
  91. if (states['binary_sensor.armor_11t_is_charging'].state == 'on' )
  92. return "var(--state-icon-active-color)";
  93. return "var(--state-icon-color)";
  94. ]]]
  95. icon: |
  96. [[[
  97. if (states['binary_sensor.armor_11t_is_charging'].state == 'on')
  98. return 'mdi:battery-charging-' + Math.ceil(entity.state / 10) * 10;
  99. return 'mdi:battery-' + Math.ceil(entity.state / 10) * 10;;
  100. ]]]
  101. type: custom:button-card
  102. - entity: sensor.armor_11t_detected_activity
  103. show_entity_picture: true
  104. show_name: false
  105. show_last_changed: true
  106. show_state: false
  107. show_label: true
  108. styles:
  109. card:
  110. - height: 40px
  111. - background: none
  112. - padding: 3px
  113. - magin: 0px
  114. - font-size: 11px
  115. state:
  116. - value: still
  117. icon: mdi:human-female
  118. label: null
  119. color: var(--state-icon-color)
  120. font-size: 11px
  121. type: custom:button-card
  122. - entity: sensor.armor_11t_phone_state
  123. show_entity_picture: true
  124. show_name: false
  125. font-size: 11px
  126. show_state: false
  127. show_last_changed: true
  128. styles:
  129. card:
  130. - height: 40px
  131. - background: none
  132. - padding-top: 3px
  133. - margin-bottom: 5px
  134. - font-size: 11px
  135. state:
  136. - value: ringing
  137. icon: mdi:phone-ring
  138. color: var(--state-icon-active-color)
  139. - value: idle
  140. icon: mdi:phone-hangup
  141. color: var(--state-icon-color)
  142. - value: offhook
  143. icon: mdi:phone-in-talk
  144. color: var(--state-icon-active-color)
  145. type: custom:button-card
  146. - entity: sensor.czas_do_alarmu_michal
  147. show_entity_picture: true
  148. show_name: false
  149. show_state: true
  150. icon: mdi:alarm
  151. state:
  152. - value: none
  153. color: var(--state-icon-color)
  154. - operator: '!='
  155. value: none
  156. color: var(--state-icon-active-color)
  157. styles:
  158. card:
  159. - height: 40px
  160. - background: none
  161. - padding-top: 3px
  162. - margin-bottom: 5px
  163. - font-size: 11px
  164. type: custom:button-card
  165.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement