sak_layout_fce_switch3:template:type:layoutdefaults:-sak_layout_switch_icon_spin:false-sak_layout_switch_service:switch.togglelayout:aspectratio:3/1toolsets:# ================================================================-toolset:badge-backgroundposition:cx:150cy:50tools:-type:badgeposition:cx:50cy:50height:100width:300ratio:25radius:5divider:30entity_index:0user_actions:tap_action:haptic:lightactions:-action:call-serviceservice:light.toggleanimations:-state:'on'styles:left:fill:var(--theme-sys-color-primary)-state:'off'styles:left:# Use as filled tonal button (m3)fill:var(--theme-sys-color-secondary-container)styles:left:fill:greyright:fill:none# Show backgroundpointer-events:none# Disable user interaction# ================================================================-toolset:column-iconposition:cx:37.5# On 12.5% f widthcy:50tools:# -------------------------------------------------------------type:iconposition:cx:50cy:50align:centericon_size:45entity_index:0# Define template variable for this icon tool, so it can be# processed by a piece of JavaScript ;-)# The template engine will replace the variable!variables:sak_layout_switch_icon_spin :'[[sak_layout_switch_icon_spin]]'animations:-state:'on'styles:icon:# Use template variable as the source to spin or not.# the config JavaScript parameter is this tools config...animation:>[[[ if (config.variables.sak_layout_switch_icon_spin) return "spin 3s linear infinite";return "";]]]fill:var(--primary-background-color)-state:'off'styles:icon:fill:var(--theme-sys-color-secondary)styles:icon:fill:var(--primary-background-color)opacity:0.9pointer-events:none# Disable user interaction# transition: fill 1s ease# ================================================================-toolset:switchposition:cx:37.5# On 1/3 of card widthcy:85scale:2tools:# -------------------------------------------------------------type:switchposition:cx:50cy:50orientation:'horizontal'track:width:15height:5radius:2.5thumb:width:3height:3radius:2.5offset:4.5entity_index:0user_actions:tap_action:haptic:lightactions:-action:call-serviceservice:'[[sak_layout_switch_service]]'styles:track:--switch-checked-track-color:var(--primary-background-color)--switch-unchecked-track-color:var(--theme-sys-color-secondary)--switch-checked-button-color:var(--primary-color)--switch-unchecked-button-color:var(--primary-background-color)pointer-events:nonethumb:--thumb-stroke:'var(--primary-background-color)'pointer-events:none# ================================================================-toolset:column-nameposition:cx:100# Left part = 75, so 75+(300-75)/2cy:50tools:# -------------------------------------------------------------type:nameposition:cx:50cy:50entity_index:0styles:name:text-anchor:startfont-size:30emfont-weight:700opacity:1# -------------------------------------------------------------type:stateposition:cx:50cy:80entity_index:1show:uom:nonestyles:state:text-anchor:startfont-size:16emfont-weight:500opacity:0.7