d_sellers1

Hichiro's custom garage card v0.1

Jun 12th, 2024 (edited)
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.18 KB | None | 0 0
  1. type: custom:button-card
  2. entity: input_boolean.tester
  3. name: Garage
  4. show_label: true
  5. state:
  6.   - value: 'on'
  7.     icon: mdi:garage-open-variant
  8.     color: red
  9.     label: Open
  10.   - value: 'off'
  11.     icon: mdi:garage-variant-lock
  12.     color: green
  13.     label: Closed
  14. styles:
  15.   card:
  16.     - background: transparent
  17.   custom_fields:
  18.     automatic:
  19.       - top: 10%
  20.       - left: 5%
  21.       - position: absolute
  22.       - color: yellow
  23.     countdown:
  24.       - top: 35%
  25.       - left: 5%
  26.       - position: absolute
  27.     light:
  28.       - bottom: 10%
  29.       - left: 5%
  30.       - position: absolute
  31.     fifty:
  32.       - top: 35%
  33.       - right: 5%
  34.       - position: absolute
  35.     twenty-five:
  36.       - top: 10%
  37.       - right: 5%
  38.       - position: absolute
  39. tap_action:
  40.   action: toggle
  41. custom_fields:
  42.   automatic:
  43.     card:
  44.       type: custom:button-card
  45.       entity: input_boolean.tester
  46.       show_icon: false
  47.       show_name: false
  48.       show_label: true
  49.       state:
  50.         - value: 'on'
  51.           color: yellow
  52.           label: Auto ON
  53.           styles:
  54.             card:
  55.               - border-color: yellow
  56.         - value: 'off'
  57.           color: gray
  58.           label: Auto OFF
  59.       styles:
  60.         card:
  61.           - height: 50px
  62.           - width: auto
  63.           - padding: 10px
  64.   light:
  65.     card:
  66.       type: custom:button-card
  67.       entity: input_boolean.tester
  68.       show_name: false
  69.       state:
  70.         - value: 'on'
  71.           icon: mdi:lightbulb-on-outline
  72.           color: yellow
  73.           styles:
  74.             card:
  75.               - border-color: yellow
  76.         - value: 'off'
  77.           icon: mdi:lightbulb
  78.           color: gray
  79.       styles:
  80.         card:
  81.           - height: 50px
  82.           - width: 50px
  83.   fifty:
  84.     card:
  85.       type: custom:button-card
  86.       name: 50%
  87.       styles:
  88.         card:
  89.           - height: 50px
  90.           - width: 50px
  91.       tap_action:
  92.         action: none
  93.   twenty-five:
  94.     card:
  95.       type: custom:button-card
  96.       name: 25%
  97.       styles:
  98.         card:
  99.           - height: 50px
  100.           - width: 50px
  101.       tap_action:
  102.         action: none
  103.   countdown:
  104.     card:
  105.       type: markdown
  106.       content: '0:00'
  107.  
Advertisement
Add Comment
Please, Sign In to add comment