sak_layout_fce_switch1:template:type:layoutdefaults:-sak_layout_switch_icon_spin:false-sak_layout_switch_service:switch.togglelayout:aspectratio:3/1toolsets:# ================================================================-toolset:half-circleposition:cx:0# Center on cards border cy:50tools:# -------------------------------------------------------------type:circleposition:cx:50cy:50radius:50entity_index:0animations:-state:'on'styles:circle:fill:var(--theme-sys-color-primary)-state:'off'styles:circle:fill:var(--theme-sys-elevation-surface-neutral4)styles:circle:stroke:none# transition: fill 1s ease# ================================================================-toolset:column-iconposition:cx:25cy:50tools:# -------------------------------------------------------------type:iconposition:cx:50cy:50align:centericon_size:35icon:mdi:fanentity_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 (tool_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.9# ================================================================-toolset:column-nameposition:cx:120cy:50tools:# -------------------------------------------------------------type:nameposition:cx:50cy:50entity_index:0styles:name:text-anchor:middlefont-size:25emfont-weight:700opacity:1# -------------------------------------------------------------type:stateposition:cx:50cy:80entity_index:1show:uom:nonestyles:state:text-anchor:middlefont-size:14emfont-weight:500opacity:0.7# ================================================================-toolset:line1position:cx:200# On 1/3 of card widthcy:50tools:# -------------------------------------------------------------type:lineposition:cx:50cy:50orientation:verticallength:50styles:line:fill:var(--primary-text-color)opacity:0.5# ================================================================-toolset:switchposition:cx:250# On 1/3 of card widthcy:50scale:3tools:# -------------------------------------------------------------type:switchposition:cx:50cy:50entity_index:0user_actions:tap_action:haptic:lightactions:-action:call-serviceservice:'[[sak_layout_switch_service]]'