Advertisement
Wykop

Karta samochodu

Dec 24th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1.  
  2.  
  3. type: picture-elements
  4. image: /local/kia.jpg
  5. elements:
  6. - type: state-icon
  7. entity: sensor.sportage_last_updated_at
  8. style:
  9. right: 0
  10. bottom: 0px
  11. margin-bottom: 0px
  12. transform: initial
  13. font-size: 1em
  14. line-height: 2em
  15. '--paper-item-icon-color': white
  16. - type: state-label
  17. entity: sensor.sportage_last_updated_at
  18. style:
  19. transform: initial
  20. font-size: 1em
  21. line-height: 2em
  22. bottom: 0px
  23. right: 30px
  24. margin-bottom: 0px
  25. color: white
  26. - type: state-icon
  27. entity: device_tracker.sportage_location
  28. style:
  29. right: 0
  30. bottom: 0px
  31. margin-bottom: 48px
  32. transform: initial
  33. font-size: 1em
  34. line-height: 2em
  35. '--paper-item-icon-color': white
  36. - type: state-label
  37. entity: device_tracker.sportage_location
  38. style:
  39. transform: initial
  40. font-size: 1em
  41. line-height: 2em
  42. bottom: 0px
  43. right: 30px
  44. margin-bottom: 48px
  45. color: white
  46. - type: state-icon
  47. entity: sensor.sportage_odometer
  48. style:
  49. right: 0
  50. bottom: 0px
  51. margin-bottom: 24px
  52. transform: initial
  53. font-size: 1em
  54. line-height: 2em
  55. '--paper-item-icon-color': white
  56. - type: state-label
  57. entity: sensor.sportage_odometer
  58. style:
  59. transform: initial
  60. font-size: 1em
  61. line-height: 2em
  62. bottom: 0px
  63. right: 30px
  64. margin-bottom: 24px
  65. color: white
  66. - type: state-icon
  67. entity: lock.sportage_door_lock
  68. style:
  69. left: 0
  70. top: 0px
  71. margin-top: 0px
  72. transform: initial
  73. font-size: 1em
  74. line-height: 3em
  75. '--paper-item-icon-color': green
  76. - type: state-label
  77. entity: lock.sportage_door_lock
  78. title: lock.sportage_door_lock
  79. style:
  80. transform: initial
  81. font-size: 1em
  82. line-height: 2em
  83. top: 0px
  84. left: 30px
  85. margin-top: 0px
  86. color: green
  87. - type: state-icon
  88. entity: binary_sensor.sportage_front_right_door
  89. style:
  90. left: 0
  91. top: 0px
  92. margin-top: 24px
  93. transform: initial
  94. font-size: 1em
  95. line-height: 2em
  96. '--paper-item-icon-color': green
  97. - type: state-label
  98. entity: binary_sensor.sportage_front_right_door
  99. title: binary_sensor.sportage_front_right_door
  100. style:
  101. transform: initial
  102. font-size: 1em
  103. line-height: 2em
  104. top: 0px
  105. left: 30px
  106. margin-top: 24px
  107. color: green
  108. - type: state-icon
  109. entity: binary_sensor.sportage_back_left_door
  110. style:
  111. left: 0
  112. top: 0px
  113. margin-top: 48px
  114. transform: initial
  115. font-size: 1em
  116. line-height: 2em
  117. '--paper-item-icon-color': green
  118. - type: state-label
  119. entity: binary_sensor.sportage_back_left_door
  120. title: binary_sensor.sportage_back_left_door
  121. style:
  122. transform: initial
  123. font-size: 1em
  124. line-height: 2em
  125. top: 0px
  126. left: 30px
  127. margin-top: 48px
  128. color: green
  129. - type: state-icon
  130. entity: sensor.sportage_car_battery_level
  131. style:
  132. left: 0
  133. bottom: 0px
  134. margin-bottom: 0px
  135. transform: initial
  136. font-size: 1em
  137. line-height: 2em
  138. '--paper-item-icon-color': blue
  139. - type: state-label
  140. entity: sensor.sportage_car_battery_level
  141. title: sensor.sportage_car_battery_level
  142. prefix: 'Battery: '
  143. style:
  144. transform: initial
  145. font-size: 1em
  146. line-height: 2em
  147. bottom: 0px
  148. left: 30px
  149. margin-bottom: 0px
  150. color: white
  151. - type: state-icon
  152. entity: binary_sensor.sportage_trunk
  153. style:
  154. right: 0
  155. top: 0px
  156. margin-top: 0px
  157. transform: initial
  158. font-size: 1em
  159. line-height: 2em
  160. '--paper-item-icon-color': green
  161. - type: state-label
  162. entity: binary_sensor.sportage_trunk
  163. style:
  164. transform: initial
  165. font-size: 1em
  166. line-height: 2em
  167. top: 0px
  168. right: 30px
  169. margin-top: 0px
  170. color: green
  171. - type: state-icon
  172. entity: binary_sensor.sportage_tire_pressure_all
  173. style:
  174. right: 0
  175. top: 0px
  176. margin-top: 24px
  177. transform: initial
  178. font-size: 1em
  179. line-height: 2em
  180. '--paper-item-icon-color': green
  181. - type: state-label
  182. entity: binary_sensor.sportage_tire_pressure_all
  183. style:
  184. transform: initial
  185. font-size: 1em
  186. line-height: 2em
  187. top: 0px
  188. right: 30px
  189. margin-top: 24px
  190. color: green
  191. - type: custom:button-card
  192. icon: mdi:gas-station-outline
  193. color_type: icon
  194. entity: sensor.sportage_fuel_driving_range
  195. show_state: true
  196. show_name: false
  197. state:
  198. - value: 10
  199. operator: <
  200. color: '#FF0000'
  201. - value: 20
  202. operator: <=
  203. color: '#ff6600'
  204. - value: 30
  205. operator: <=
  206. color: '#ffcc00'
  207. - value: 40
  208. operator: <=
  209. color: '#FFFF00'
  210. - value: 50
  211. operator: <=
  212. color: '#ccff33'
  213. - value: 100
  214. operator: <=
  215. color: '#e1ff00'
  216. - value: 300
  217. operator: <=
  218. color: '#66ff33'
  219. - value: 600
  220. operator: <=
  221. color: '#0fff1f'
  222. styles:
  223. card:
  224. - width: 125px
  225. - height: 80px
  226. - background-color: rgba(0, 0, 0, .1)
  227. label:
  228. - font-color: '#ffee58'
  229. state:
  230. - color: white
  231. - transform: translate(20%, -70%) scale(0.8, 0.6)
  232. icon:
  233. - transform: translate(-60%, 20%) scale(0.7, 0.7)
  234. - animation: |
  235. [[[
  236. var blink=states['sensor.sportage_fuel_driving_range'].state;
  237. if (blink < '50' ) return 'blink 1s linear infinite'
  238. ]]]
  239. style:
  240. left: 11%
  241. top: 80%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement