lacrima08

Untitled

Jan 3rd, 2026
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.92 KB | Source Code | 0 0
  1. type: custom:button-card⁣
  2. entity: switch.gamecube_gamecube_power_button⁣
  3. show_name: false⁣
  4. show_icon: false⁣
  5. show_entity_picture: true⁣
  6. tap_action:⁣
  7.   action: toggle⁣
  8. state:⁣
  9.   - operator: template⁣
  10.     value: >⁣
  11.       [[[
  12.         return states['binary_sensor.gamecube_etat_gamecube'].state === 'on';⁣
  13.       ]]]
  14.     entity_picture: /local/ressources/img/svg/GameCube/GameCube-ON.svg⁣
  15.   - operator: default⁣
  16.     entity_picture: /local/ressources/img/svg/GameCube/GameCube-OFF.svg⁣
  17. styles:⁣
  18.   card:⁣
  19.     - animation: none !important⁣
  20.     - padding: 0px⁣
  21.     - background: none
  22.     - border-radius: 0px⁣
  23.     - border: none
  24.     - box-shadow: none
  25.   entity_picture:⁣
  26.     - animation: none !important⁣
  27.     - width: 100%⁣
  28.     - height: 100%⁣
  29.     - object-fit: cover⁣
  30.   img_cell:⁣
  31.     - animation: none !important⁣
Advertisement
Add Comment
Please, Sign In to add comment