Advertisement
Guest User

Untitled

a guest
Jul 15th, 2020
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. action: call-service
  2. service: browser_mod.popup
  3. service_data:
  4. title: Stäng
  5. deviceID: this
  6. style:
  7. --ha-card-border-radius: 1em
  8. --more-info-header-color: rgba(255,255,255,0.6)
  9. background: none
  10. box-shadow: none
  11. width: calc(400px + 550px)
  12. card:
  13. type: custom:layout-card
  14. column_num: 2
  15. column_width: [400, 550]
  16. layout: vertical
  17. cards:
  18. - type: custom:hui-vertical-stack-card
  19. cards:
  20. - type: entities
  21. title: Husqvarna Automower
  22. show_header_toggle: false
  23. style: |
  24. ha-card {
  25. animation: pop-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: center;
  26. box-shadow: none; border-radius: 1em; padding: 0.3em 1.25em 0.4em 0.5em;
  27. background: linear-gradient(180deg, rgba(48,52,52,1) 0%, rgba(48,52,52,1) 4.8em, rgba(34,38,39,1) 4.8em, rgba(34,38,39,1) 100%); }
  28. .card-header {
  29. margin: -0.4em 0 1.4em 0.4em; font-family: sf text; letter-spacing: 0.005em; font-size: 1.5em;}
  30. @keyframes pop-in {
  31. 0% { transform: scale(0.6); opacity: 0; } 20% { opacity: 0; } 100% { transform: scale(1); opacity: 0.9; }}
  32. entities:
  33. - entity: sensor.froggy_state
  34. - entity: sensor.froggy_battery_level
  35. - entity: sensor.froggy_next_start
  36.  
  37.  
  38. - type: custom:hui-horizontal-stack-card
  39. style: |
  40. #root {
  41. justify-content: space-evenly;
  42. margin: 3.2em -0.7em 0.7em 0;
  43. }
  44. cards:
  45.  
  46. - type: custom:button-card
  47. icon: mdi:play-pause
  48. triggers_update:
  49. ['vacuum.froggy']
  50. tap_action:
  51. action: call-service
  52. service: >
  53. [[[ if (states['vacuum.froggy'].state === 'Parked manually' ||
  54. states['vacuum.froggy'].state === 'Paused')
  55. return 'vacuum.start_pause';
  56. else return 'vacuum.stop'; ]]]
  57. service_data:
  58. entity_id: vacuum.froggy
  59. styles:
  60. icon:
  61. [width: 1.8em]
  62. card:
  63. [width: 6em]
  64. template: icon_action
  65.  
  66. - type: custom:button-card
  67. icon: mdi:flash
  68. color: '#9da0a2'
  69. tap_action:
  70. action: call-service
  71. service: vacuum.return_to_base
  72. service_data:
  73. entity_id: vacuum.froggy
  74. template: icon_action
  75.  
  76. - break
  77.  
  78. - type: picture-elements
  79. title: Gräsklippning
  80. image: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' /%3E"
  81. style: |
  82. ha-card {
  83. animation: pop-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.05s; transform-origin: center;
  84. box-shadow: none; border-radius: 1em; padding: 0.3em 1.25em 0.4em 0.5em;
  85. background: linear-gradient(180deg, rgba(48,52,52,1) 0%, rgba(48,52,52,1) 4.8em, rgba(34,38,39,1) 4.8em, rgba(34,38,39,1) 100%); }
  86. .card-header {
  87. margin: -0.4em 0 1.4em 0.4em; font-family: sf text; letter-spacing: 0.005em; font-size: 1.5em;}
  88. @keyframes pop-in {
  89. 0% { transform: scale(0.6); opacity: 0; } 20% { opacity: 0; } 100% { transform: scale(1); opacity: 0.9; }}
  90. elements:
  91. - type: image
  92. entity: device_tracker.automower_l_185103234_184732467
  93. camera_image: camera.froggy_location
  94. style:
  95. top: 20%
  96. left: 51%
  97. width: 100%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement