Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. ###### BATTERY LEVELS
  2. - type: horizontal-stack
  3. cards:
  4. - type: vertical-stack
  5. cards:
  6. ### HEADER CARD
  7. - type: "custom:button-card"
  8. name: 'BATTERIES'
  9. template: header
  10. - type: vertical-stack
  11. cards:
  12. ### Combine all 3 into a single card
  13. - type: entities
  14. entities:
  15. ### battery attribute
  16. - type: custom:auto-entities
  17. card:
  18. type: custom:bar-card
  19. attribute: battery
  20. unit_of_measurement: "%"
  21. title_position: left
  22. padding: 0px 15px 3px 15px
  23. saturation: 50%
  24. columns: 1
  25. height: 15px
  26. width: 60%
  27. card_style:
  28. box-shadow: 0 0
  29. bar_style:
  30. border-radius: 20px
  31. indicator_style:
  32. border-radius: 20px
  33. severity:
  34. - value: 50
  35. color: '#bf4040'
  36. - value: 75
  37. color: '#bf9540'
  38. - value: 100
  39. color: '#40bf40'
  40. filter:
  41. include:
  42. - attributes:
  43. battery: ">= 0"
  44. options:
  45. type: custom:multiple-entity-row
  46. entity: this.entity_id
  47. toggle: false
  48. hide_state: true
  49. primary:
  50. entity: this.entity_id
  51. attribute: battery
  52. name: false
  53. unit: '%'
  54. ### battery_level attribute
  55. - type: custom:auto-entities
  56. card:
  57. type: custom:bar-card
  58. attribute: battery_level
  59. unit_of_measurement: "%"
  60. title_position: left
  61. padding: 0px 15px 3px 15px
  62. saturation: 50%
  63. columns: 1
  64. height: 15px
  65. width: 60%
  66. card_style:
  67. box-shadow: 0 0
  68. bar_style:
  69. border-radius: 20px
  70. indicator_style:
  71. border-radius: 20px
  72. severity:
  73. - value: 50
  74. color: '#bf4040'
  75. - value: 75
  76. color: '#bf9540'
  77. - value: 100
  78. color: '#40bf40'
  79. filter:
  80. include:
  81. - attributes:
  82. battery_level: ">= 0"
  83. options:
  84. type: custom:multiple-entity-row
  85. entity: this.entity_id
  86. toggle: false
  87. hide_state: true
  88. primary:
  89. entity: this.entity_id
  90. attribute: battery_level
  91. name: false
  92. unit: '%'
  93. exclude:
  94. - state: 'unavailable'
  95. - entity_id: sensor.battery_low
  96. - entity_id: 'sensor.batteryraw*'
  97. - entity_id: sensor.batterystatus
  98. - entity_id: sensor.findlays_room_light_level
  99. - entity_id: sensor.living_room_sensor_light_level
  100. - entity_id: sensor.dining_room_sensor_light_level
  101. - entity_id: binary_sensor.findlays_room_motion
  102. - entity_id: binary_sensor.living_room_sensor_motion
  103. - entity_id: binary_sensor.dining_room_sensor_motion
  104. - entity_id: zwave.door_front
  105. - entity_id: zwave.door_back
  106. - entity_id: zwave.door_side
  107. ### sensor.battery stright sensors
  108. - type: custom:auto-entities
  109. card:
  110. type: custom:bar-card
  111. unit_of_measurement: "%"
  112. title_position: left
  113. padding: 0px 15px 3px 15px
  114. saturation: 50%
  115. columns: 1
  116. height: 15px
  117. width: 60%
  118. card_style:
  119. box-shadow: 0 0
  120. bar_style:
  121. border-radius: 20px
  122. indicator_style:
  123. border-radius: 20px
  124. severity:
  125. - value: 50
  126. color: '#bf4040'
  127. - value: 75
  128. color: '#bf9540'
  129. - value: 100
  130. color: '#40bf40'
  131. filter:
  132. include:
  133. - entity_id: 'sensor.battery*'
  134. exclude:
  135. - state: 'unavailable'
  136. - entity_id: sensor.battery_low
  137. - entity_id: 'sensor.batteryraw*'
  138. - entity_id: sensor.batterystatus
  139. - entity_id: sensor.findlays_room_light_level
  140. - entity_id: sensor.living_room_sensor_light_level
  141. - entity_id: sensor.dining_room_sensor_light_level
  142. - entity_id: binary_sensor.findlays_room_motion
  143. - entity_id: binary_sensor.living_room_sensor_motion
  144. - entity_id: binary_sensor.dining_room_sensor_motion
  145. - entity_id: zwave.door_front
  146. - entity_id: zwave.door_back
  147. - entity_id: zwave.door_side
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement