Advertisement
pqpxoxa

HA - Whos Home (Presence Detection)

Oct 29th, 2020
2,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.59 KB | None | 0 0
  1. cards:
  2. - color_type: blank-card
  3. icon: 'mdi:led-strip-variant'
  4. name: Floor
  5. styles:
  6. card:
  7. - width: 25px
  8. type: 'custom:button-card'
  9. - type: 'custom:vertical-stack-in-card'
  10. cards:
  11. - type: 'custom:button-card'
  12. entity: device_tracker.eml_l29
  13. entity_picture: /local/facesam.png
  14. name: Sam
  15. show_entity_picture: true
  16. state:
  17. - entity_picture: /local/facesam.png
  18. styles:
  19. card:
  20. - height: 100px
  21. entity_picture:
  22. - width: 45%
  23. - opacity: 0.5
  24. - padding-top: 10px
  25. name:
  26. - font-size: 17px
  27. value: 'off'
  28. - color: white
  29. entity_picture: /local/facesam.png
  30. operator: default
  31. styles:
  32. card:
  33. - height: 100px
  34. entity_picture:
  35. - width: 45%
  36. - padding-top: 10px
  37. name:
  38. - font-size: 17px
  39. - type: horizontal-stack
  40. cards:
  41. - type: 'custom:button-card'
  42. entity: input_boolean.ground_floor_occupancy
  43. icon: 'mdi:doorbell'
  44. name: false
  45. show_name: false
  46. show_state: false
  47. state:
  48. - icon: 'mdi:home-floor-g'
  49. styles:
  50. card:
  51. - height: 50px
  52. icon:
  53. - width: 30px
  54. - opacity: 0.5
  55. - padding-bottom: 15px
  56. - padding-left: 10px
  57. value: 'off'
  58. - color: white
  59. icon: 'mdi:home-floor-g'
  60. operator: default
  61. styles:
  62. card:
  63. - height: 50px
  64. icon:
  65. - width: 30px
  66. - padding-bottom: 15px
  67. - padding-left: 10px
  68. - type: 'custom:button-card'
  69. entity: input_boolean.first_floor_occupancy
  70. icon: 'mdi:doorbell'
  71. name: false
  72. show_name: false
  73. show_state: false
  74. state:
  75. - icon: 'mdi:home-floor-1'
  76. styles:
  77. card:
  78. - height: 50px
  79. icon:
  80. - width: 30px
  81. - opacity: 0.5
  82. - padding-bottom: 15px
  83. value: 'off'
  84. - color: white
  85. icon: 'mdi:home-floor-1'
  86. operator: default
  87. styles:
  88. card:
  89. - height: 50px
  90. icon:
  91. - width: 30px
  92. - padding-bottom: 15px
  93. - type: 'custom:button-card'
  94. entity: input_boolean.second_floor_occupancy
  95. icon: 'mdi:doorbell'
  96. name: false
  97. show_name: false
  98. show_state: false
  99. state:
  100. - icon: 'mdi:home-floor-2'
  101. styles:
  102. card:
  103. - height: 50px
  104. icon:
  105. - width: 30px
  106. - opacity: 0.5
  107. - padding-bottom: 15px
  108. - padding-right: 10px
  109. value: 'off'
  110. - color: white
  111. icon: 'mdi:home-floor-2'
  112. operator: default
  113. styles:
  114. icon:
  115. - width: 30px
  116. - opacity: 0.9
  117. - padding-bottom: 15px
  118. - padding-right: 10px
  119. card:
  120. - height: 50px
  121. - type: 'custom:vertical-stack-in-card'
  122. cards:
  123. - type: 'custom:button-card'
  124. entity: binary_sensor.nabsiphone
  125. entity_picture: /local/facenabz.png
  126. name: Nabz
  127. show_entity_picture: true
  128. state:
  129. - entity_picture: /local/facenabz.png
  130. styles:
  131. card:
  132. - height: 100px
  133. entity_picture:
  134. - width: 45%
  135. - opacity: 0.4
  136. name:
  137. - font-size: 17px
  138. value: 'off'
  139. - color: white
  140. entity_picture: /local/facenabz.png
  141. operator: default
  142. styles:
  143. card:
  144. - height: 100px
  145. entity_picture:
  146. - width: 45%
  147. name:
  148. - font-size: 17px
  149. - type: horizontal-stack
  150. cards:
  151. - type: 'custom:button-card'
  152. entity: input_boolean.iphone_ground_floor_occupancy
  153. icon: 'mdi:doorbell'
  154. name: false
  155. show_name: false
  156. show_state: false
  157. state:
  158. - icon: 'mdi:home-floor-g'
  159. styles:
  160. card:
  161. - height: 50px
  162. icon:
  163. - width: 30px
  164. - opacity: 0.5
  165. - padding-bottom: 15px
  166. - padding-left: 10px
  167. value: 'off'
  168. - color: white
  169. icon: 'mdi:door-open'
  170. operator: default
  171. styles:
  172. card:
  173. - height: 50px
  174. icon:
  175. - width: 30px
  176. - opacity: 0.5
  177. - padding-bottom: 15px
  178. - padding-left: 10px
  179. - type: 'custom:button-card'
  180. entity: input_boolean.iphone_first_floor_occupancy
  181. icon: 'mdi:doorbell'
  182. name: false
  183. show_name: false
  184. show_state: false
  185. state:
  186. - icon: 'mdi:home-floor-1'
  187. styles:
  188. card:
  189. - height: 50px
  190. icon:
  191. - width: 30px
  192. - opacity: 0.5
  193. - padding-bottom: 15px
  194. value: 'off'
  195. - color: white
  196. icon: 'mdi:door-open'
  197. operator: default
  198. styles:
  199. card:
  200. - height: 50px
  201. icon:
  202. - width: 30px
  203. - opacity: 0.5
  204. - padding-bottom: 15px
  205. - type: 'custom:button-card'
  206. entity: input_boolean.iphone_second_floor_occupancy
  207. icon: 'mdi:doorbell'
  208. name: false
  209. show_name: false
  210. show_state: false
  211. state:
  212. - icon: 'mdi:home-floor-2'
  213. styles:
  214. card:
  215. - height: 50px
  216. icon:
  217. - width: 30px
  218. - opacity: 0.5
  219. - padding-bottom: 15px
  220. - padding-right: 10px
  221. value: 'off'
  222. - color: white
  223. icon: 'mdi:home-floor-2'
  224. operator: default
  225. styles:
  226. icon:
  227. - width: 30px
  228. - opacity: 0.9
  229. - padding-bottom: 15px
  230. - padding-right: 10px
  231. card:
  232. - height: 50px
  233. - type: 'custom:vertical-stack-in-card'
  234. cards:
  235. - type: 'custom:button-card'
  236. entity: binary_sensor.nabsiphone
  237. entity_picture: /local/faceguest.png
  238. name: Guests
  239. show_entity_picture: true
  240. state:
  241. - entity_picture: /local/faceguest.png
  242. styles:
  243. card:
  244. - height: 100px
  245. entity_picture:
  246. - width: 55%
  247. - opacity: 0.4
  248. name:
  249. - font-size: 17px
  250. value: 'off'
  251. - color: white
  252. entity_picture: /local/faceguest.png
  253. operator: default
  254. styles:
  255. card:
  256. - height: 100px
  257. entity_picture:
  258. - width: 55%
  259. name:
  260. - font-size: 17px
  261. - type: horizontal-stack
  262. cards:
  263. - type: 'custom:button-card'
  264. entity: binary_sensor.openclose_19
  265. extra_styles: |
  266. @keyframes bounce {
  267. 0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  268. 40% { transform: translateY(-25px); }
  269. 60% { transform: translateY(-15px); }
  270. }
  271. icon: 'mdi:doorbell'
  272. name: false
  273. show_name: false
  274. show_state: false
  275. state:
  276. - icon: 'mdi:home-floor-g'
  277. styles:
  278. card:
  279. - height: 50px
  280. icon:
  281. - width: 30px
  282. - opacity: 0.5
  283. - padding-bottom: 15px
  284. - padding-left: 10px
  285. value: 'off'
  286. - color: white
  287. icon: 'mdi:door-open'
  288. operator: default
  289. styles:
  290. card:
  291. - height: 50px
  292. icon:
  293. - width: 30px
  294. - opacity: 0.5
  295. - padding-bottom: 15px
  296. - padding-left: 10px
  297. - type: 'custom:button-card'
  298. entity: binary_sensor.openclose_19
  299. extra_styles: |
  300. @keyframes bounce {
  301. 0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  302. 40% { transform: translateY(-25px); }
  303. 60% { transform: translateY(-15px); }
  304. }
  305. icon: 'mdi:doorbell'
  306. name: false
  307. show_name: false
  308. show_state: false
  309. state:
  310. - icon: 'mdi:home-floor-1'
  311. styles:
  312. card:
  313. - height: 50px
  314. icon:
  315. - width: 30px
  316. - opacity: 0.5
  317. - padding-bottom: 15px
  318. value: 'off'
  319. - color: white
  320. icon: 'mdi:door-open'
  321. operator: default
  322. styles:
  323. card:
  324. - height: 50px
  325. icon:
  326. - width: 30px
  327. - opacity: 0.5
  328. - padding-bottom: 15px
  329. - type: 'custom:button-card'
  330. entity: binary_sensor.openclose_19
  331. icon: 'mdi:doorbell'
  332. name: false
  333. show_name: false
  334. show_state: false
  335. state:
  336. - icon: 'mdi:home-floor-2'
  337. styles:
  338. card:
  339. - height: 50px
  340. icon:
  341. - width: 30px
  342. - opacity: 0.5
  343. - padding-bottom: 15px
  344. - padding-right: 10px
  345. value: 'off'
  346. - color: white
  347. icon: 'mdi:home-floor-2'
  348. operator: default
  349. styles:
  350. icon:
  351. - width: 30px
  352. - opacity: 0.9
  353. - padding-bottom: 15px
  354. - padding-right: 10px
  355. card:
  356. - height: 50px
  357. - color_type: blank-card
  358. icon: 'mdi:led-strip-variant'
  359. name: Floor
  360. styles:
  361. card:
  362. - width: 25px
  363. type: 'custom:button-card'
  364. type: horizontal-stack
  365.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement