fablav

Garage door

Nov 16th, 2025
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.68 KB | Software | 0 0
  1. type: custom:button-card
  2. entity: switch.shelly_hojre_garage_port
  3. icon: mdi:garage
  4. show_label: true
  5. name: Right Garage Door
  6. state:
  7.   - operator: template
  8.     value: |
  9.      [[[
  10.        return (states['binary_sensor.garage_sensor_hojre_contact'].state === 'on' );
  11.       ]]]
  12.     icon: mdi:garage-open
  13.     label: open
  14.     color: yellow
  15.     styles:
  16.       name:
  17.         - color: white
  18.       label:
  19.         - color: white
  20.       card:
  21.         - background-color: red
  22.   - operator: default
  23.     icon: mdi:garage
  24.     label: closed
  25.     color: black
  26.     styles:
  27.       name:
  28.         - color: Black
  29.       label:
  30.         - color: black
  31.       card:
  32.         - background-color: green
Tags: ha
Advertisement
Add Comment
Please, Sign In to add comment