Advertisement
Guest User

Untitled

a guest
Mar 15th, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.78 KB | None | 0 0
  1. title: Planritning
  2. icon: 'fas:home'
  3. panel: true
  4. cards:
  5. - type: custom:config-template-card
  6.   variables:
  7.    - states['light.vardagsrummet'].state
  8.   entities:
  9.    - light.vardagsrummet
  10.   card:
  11.     type: custom:hui-picture-elements-card
  12.     image: /local/ui/floorplan/floorplan_night.png
  13.     elements:
  14.       - entity: light.vardagsrummet
  15.         image: /local/ui/floorplan/rum/vardagsrum_cut.png
  16.         style:
  17.           left: 28.99%
  18.           top: 22.1%
  19.           width: 38.8%
  20.           opacity: '${ states[''light.vardagsrummet''].attributes.brightness / 255 }'
  21.           filter: >-
  22.             ${ "hue-rotate(" + (states['light.vardagsrummet'].attributes.hs_color
  23.             ? states['light.vardagsrummet'].attributes.hs_color[0] : 0) + "deg)"}
  24.           mix-blend-mode: lighten
  25.         state_filter:
  26.           'off': opacity(0%)
  27.           'on': opacity(100%) hue-rotate(-50deg)
  28.         action: none
  29.         tap_action:
  30.           action: none
  31.         type: image
  32.  
  33. #Light buttons
  34.       - entity: light.vardagsrummet
  35.         state_image:
  36.           'on': /local/ui/floorplan/rum/lampa_pa.png
  37.           'off': /local/ui/floorplan/rum/lampa_av.png
  38.         hold_action:
  39.           action: call-service
  40.           service: browser_mod.popup
  41.           service_data:
  42.             card:
  43.               cards:
  44.                 - entities:
  45.                   - entity: light.vardagsrummet
  46.                     secondary_info: last-changed
  47.                   type: entities
  48.                 - cards:
  49.                     - cards:
  50.                         - brightness: false
  51.                           color_picker: false
  52.                           effects_list: false
  53.                           entity: light.vardagsrummet
  54.                           full_width_sliders: true
  55.                           header: false
  56.                           persist_features: true
  57.                           show_slider_percent: false
  58.                           smooth_color_wheel: true
  59.                           type: 'custom:light-entity-card'
  60.                         - brightness: false
  61.                           color_temp: false
  62.                           entity: light.vardagsrummet
  63.                           full_width_sliders: true
  64.                           header: false
  65.                           persist_features: true
  66.                           show_slider_percent: false
  67.                           smooth_color_wheel: true
  68.                           type: 'custom:light-entity-card'
  69.                       column_height: 1
  70.                       layout: vertical
  71.                       type: 'custom:layout-card'
  72.                     - entities:
  73.                         - color_temp: true
  74.                           entity: light.vardagsrummet
  75.                           entity: light.vardagsrummet
  76.                           persist_features: true
  77.                           type: 'custom:light-slider-card'
  78.                       show_header_toggle: false
  79.                       style:
  80.                         height: 100%;
  81.                         z-index: 0;
  82.                       type: entities
  83.                   column_num: 2
  84.                   layout: horizontal
  85.                   max_width:
  86.                    - 60%
  87.                     - 40%
  88.                   type: 'custom:layout-card'
  89.               type: 'custom:vertical-stack-in-card'
  90.             deviceID:
  91.              - this
  92.             style:
  93.               '--ha-card-border-radius': 0vw 0vw 0.8vw 0.8vw
  94.               border-radius: 0.8vw
  95.               opacity: 0.9
  96.             title: Vardagsrummet
  97.         image: /local/ui/floorplan/rum/lampa_av.png
  98.         style:
  99.           height: 3.5%
  100.           width: 3.5%
  101.           left: 26.5%
  102.           top: 30.5%
  103.           padding-bottom: 1.5%
  104.         tap_action:
  105.           action: toggle
  106.         type: image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement