lacrima08

Untitled

Jan 3rd, 2026
146
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. ⁣
  4. show_name: false⁣
  5. show_icon: false⁣
  6. show_entity_picture: true⁣
  7. ⁣
  8. tap_action:⁣
  9.   action: toggle⁣
  10. ⁣
  11. state:⁣
  12.   - operator: template⁣
  13.     value: >⁣
  14.       [[[ ⁣
  15.         return states['binary_sensor.gamecube_etat_gamecube'].state === 'on';⁣
  16.       ]]]⁣
  17.     entity_picture: /local/ressources/img/svg/GameCube/GameCube-ON.svg⁣
  18. ⁣
  19.   - operator: default⁣
  20.     entity_picture: /local/ressources/img/svg/GameCube/GameCube-OFF.svg⁣
  21. ⁣
  22. styles:⁣
  23.   card:⁣
  24.     - animation: none !important⁣
  25.     - padding: 0px⁣
  26.     - background: none⁣
  27.     - border-radius: 0px⁣
  28.     - border: none⁣
  29.     - box-shadow: none⁣
  30. ⁣
  31.   entity_picture:⁣
  32.     - animation: none !important⁣
  33.     - width: 100%⁣
  34.     - height: 100%⁣
  35.     - object-fit: cover⁣
  36. ⁣
  37.   img_cell:⁣
  38.     - animation: none !important⁣
Advertisement
Add Comment
Please, Sign In to add comment