Hey guys, I’ve created the following card.
entity: switch.office_lights
style:
top: 20%
left: 30%
icon: 'mdi:ceiling-light'
name: Office lights
show_state: true
state:
- styles:
card:
- color: white
- background: 'linear-gradient(-45deg, blue, rgb(139,97,255))'
icon:
- color: white
value: 'on'
- styles:
card:
- filter: opacity(50%)
icon:
- filter: grayscale(100%)
value: 'off'
styles:
card:
- width: 120px
- height: 120px
- border-radius: 10px
grid:
- grid-template-areas: '"i" "n" "s"'
- grid-template-columns: 1fr
- grid-template-rows: 1fr min-content min-content
icon:
- color: blue
img_cell:
- align-self: start
- text-align: start
name:
- justify-self: start
- padding-left: 10px
- font-weight: bold
- text-transform: lowercase
state:
- justify-self: start
- padding-left: 10px
type: 'custom:button-card'
It works great, but I want to place this same thing on other views in other locations. I can obviously copy this and paste it elsewhere, but is there a way for me to save this as a card or “thing” and then refer to it later by just calling it?
Thanks!