xyboox

Template button card

Jan 28th, 2021
582
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. base:
  2.   aspect_ratio: 1/1
  3.   show_state: true
  4.   show_icon: false
  5.   state:
  6.     - value: 'on'
  7.       styles:
  8.         card: [background-color: 'rgba(255, 255, 255, 0.8)']
  9.         name: [color: 'rgba(0, 0, 0, 0.6)']
  10.         state: [color: 'rgba(0, 0, 0, 0.6)']
  11.   tap_action:
  12.     action: toggle
  13.     haptic: light
  14.   styles:
  15.     name: [top: 57.7%, left: 11%, line-height: 2vw, position: absolute]
  16.     state: [top: 74%, left: 11%, line-height: 2vw, position: absolute]
  17.     card:
  18.      [
  19.         font-family: Oxygen,
  20.         letter-spacing: 0.05vw,
  21.         font-weight: 400,
  22.         color: 'rgba(255, 255, 255, 0.3)',
  23.         font-size: 0.8vw,
  24.         background-color: 'rgba(115, 115, 115, 0.2)',
  25.         border-radius: 0.4vw,
  26.         box-shadow: none,
  27.         transition: none,
  28.       ]
  29.     custom_fields:
  30.       circle:
  31.        [
  32.           top: 8.5%,
  33.           left: 52%,
  34.           width: 3.5vw,
  35.           position: absolute,
  36.           letter-spacing: 0.03vw,
  37.         ]
  38.  
  39. temperature:
  40.   styles:
  41.     custom_fields:
  42.       graph: [top: 0, left: 0, position: absolute, width: 100%, height: 100%]
  43.  
  44. stock:
  45.   aspect_ratio: 3/2
  46.  
  47.  
RAW Paste Data