Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:button-card
- entity: switch.gamecube_gamecube_power_button
-
- show_name: false
- show_icon: false
- show_entity_picture: true
-
- tap_action:
- action: toggle
-
- state:
- - operator: template
- value: >
- [[[
- return states['binary_sensor.gamecube_etat_gamecube'].state === 'on';
- ]]]
- entity_picture: /local/ressources/img/svg/GameCube/GameCube-ON.svg
-
- - operator: default
- entity_picture: /local/ressources/img/svg/GameCube/GameCube-OFF.svg
-
- styles:
- card:
- - animation: none !important
- - padding: 0px
- - background: none
- - border-radius: 0px
- - border: none
- - box-shadow: none
-
- entity_picture:
- - animation: none !important
- - width: 100%
- - height: 100%
- - object-fit: cover
-
- img_cell:
- - animation: none !important
Advertisement
Add Comment
Please, Sign In to add comment