Advertisement
Guest User

Untitled

a guest
Jul 14th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 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 + 555px)
  12.                 card:
  13.                   type: custom:layout-card
  14.                   column_num: 2
  15.                   column_width: [400, 555]
  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.                             - type: custom:button-card
  46.                               icon: mdi:play-pause
  47.                               triggers_update:
  48.                                ['vacuum.froggy']
  49.                               tap_action:
  50.                                 action: call-service
  51.                                 service: >
  52.                                  [[[ if (states['vacuum.froggy'].state === 'Parked manually' ||
  53.                                   states['vacuum.froggy'].state === 'Paused')
  54.                                   return 'vacuum.start_pause';
  55.                                   else return 'vacuum.stop'; ]]]
  56.                                 service_data:
  57.                                   entity_id: vacuum.froggy
  58.                               styles:
  59.                                 icon:
  60.                                   [width: 1.8em]
  61.                                 card:
  62.                                   [width: 6em]
  63.                               template: icon_action
  64.  
  65.                             - type: custom:button-card
  66.                               icon: mdi:flash
  67.                               color: '#9da0a2'
  68.                               tap_action:
  69.                                 action: call-service
  70.                                 service: vacuum.return_to_base
  71.                                 service_data:
  72.                                   entity_id: vacuum.froggy
  73.                               template: icon_action
  74.                            
  75.                     - break
  76.  
  77.                     - type: picture-elements
  78.                       title: Gräsklippning
  79.                       image: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' /%3E"
  80.                       style: |
  81.                        ha-card {
  82.                           animation: pop-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.05s; transform-origin: center;
  83.                           box-shadow: none; border-radius: 1em; padding: 0.3em 1.25em 0.4em 0.5em;
  84.                           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%); }
  85.                         .card-header {
  86.                           margin: -0.4em 0 1.4em 0.4em; font-family: sf text; letter-spacing: 0.005em; font-size: 1.5em;}
  87.                         @keyframes pop-in {
  88.                           0% { transform: scale(0.6); opacity: 0; } 20% { opacity: 0; } 100% { transform: scale(1); opacity: 0.9; }}
  89.                       elements:
  90.                       - type: image
  91.                         entity: device_tracker.automower_l_185103234_184732467
  92.                         camera_image: camera.froggy_location
  93.                         style:
  94.                           top: 25%
  95.                           left: 51%
  96.                           width: 100%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement