-type:custom:flex-horseshoe-card# Entities Sectionentities:-entity:sensor.kleenex_pollen_radar_zoefdehaas_bomen_niveauarea:':34:'name:'Trees'-entity:sensor.kleenex_pollen_radar_zoefdehaas_gras_niveauname:'Grass'area:'KleenexPollen'-entity:sensor.kleenex_pollen_radar_zoefdehaas_kruiden_niveauname:'Weed'# Constants Sectionconstants:radius0:5000xpos0:15dxPos1:35dxPos2:35pollen_tree_map:map:-state:'low'icon:url(/local/images/kleenex/pollen_tree_low.svg)-state:'moderate'icon:url(/local/images/kleenex/pollen_tree_moderate.svg)-state:'high'icon:url(/local/images/kleenex/pollen_tree_high.svg)-state:'very_high'icon:url(/local/images/kleenex/pollen_tree_very_high.svg)pollen_grass_map:map:-state:'low'icon:url(/local/images/kleenex/pollen_grass_low.svg)-state:'moderate'icon:url(/local/images/kleenex/pollen_grass_moderate.svg)-state:'high'icon:url(/local/images/kleenex/pollen_grass_high.svg)-state:'very_high'icon:url(/local/images/kleenex/pollen_grass_very_high.svg)layout:areas:-entity_index:0xpos:0ypos:100styles:-font-size:0.75em-text-transform:none-text-anchor:start-entity_index:1xpos:50ypos:12styles:-font-size:1.7em-text-transform:noneicons:-entity_index:0xpos:calc(xpos0)ypos:70icon_size:4.5state_map:ref(pollen_tree_map)-entity_index:1same_as:0same_as_dxpos:calc(dxPos1)same_as_replace:-state_mapstate_map:ref(pollen_grass_map)-entity_index:2same_as:1same_as_dxpos:calc(dxPos2)same_as_replace:-state_mapstate_map:map:-state:'low'icon:url(/local/images/kleenex/pollen_weed_low.svg)-state:'moderate'icon:url(/local/images/kleenex/pollen_weed_moderate.svg)-state:'high'icon:url(/local/images/kleenex/pollen_weed_high.svg)-state:'very_high'icon:url(/local/images/kleenex/pollen_weed_very_high.svg)# hlines sectionhlines:-xpos:50ypos:15length:80styles:-stroke:var(--disabled-text-color);-same_as:0same_as_dypos:3# Shift 3 downwardssame_as_dlength:7.5# increase length by 7.5-same_as:1same_as_dypos:3# Shift 3 downwardssame_as_dlength:7.5# increase length by 7.5# States sectionstates:-entity_index:0xpos:calc(xpos0)ypos:90styles:-font-size:1.0em-entity_index:1same_as:0same_as_dxpos:calc(dxPos1)-entity_index:2same_as:1same_as_dxpos:calc(dxPos2)# Names sectionnames:-entity_index:0xpos:calc(xpos0)ypos:45styles:-font-size:1.0em-text-transform:none-entity_index:1same_as:0same_as_dxpos:calc(dxPos1)-entity_index:2same_as:1same_as_dxpos:calc(dxPos2)# Horseshoes sectionhorseshoes:# This horseshoe looks like a horizontal progress bar!# Use a big radius (5000) and extremely small arc (0.3)-entity_index:0xpos:calc(xpos0)ypos:calc(-radius0 + xpos0 + 15)radius:calc(radius0)tickmarks_radius:calc(radius0)arc_degrees:.3flip:yshow:horseshoe:truescale_tickmarks:falsehorseshoe_style:colorstopscale_style:colorstoplabels_at:noneticks:falselabel_badges:falselabel_background:none# horseshoe_scale:min:0max:4width:6color:graygap:0styles:-opacity:0.6;#horseshoe_tickmarks:ticks_major:ticksize:1color_mode:colorstopwidth:12offset:-3thickness:3styles:-stroke:var(--primary-text-color);-fill:var(--primary-text-color);-opacity:0.7;#horseshoe_labels:distance_min:0.3ticksize_min:0.3orientation:horizontaloffset:-34badges:radius:6color:var(--card-background-color)border_color:var(--divider-color)padding:0height:10# 12 is same as font-size of 1em styles:-font-size:0.7em#horseshoe_state:width:12state_map:map:-state:'low'value:0.99-state:'moderate'value:1.99-state:'high'value:2.99-state:'very_high'value:3.99styles:-stroke-linecap:butt#color_stops:gap:0.01# Needs very small gap as arc is 0.3 degreescolors:0:'#838383'1:'#fcc449'2:'#ed8003'3:'red'# The full `same_as` functionality at its best:# repeated horseshoe takes only a few lines of YAML## Saving around 60-70 lines of YAML per horseshoe config!-entity_index:1same_as:0same_as_dxpos:calc(dxPos1)show:labels_at:none-entity_index:2same_as:1same_as_dxpos:calc(dxPos2)