Entity-specific usage patterns
mainThe card adapts its behavior based on the entity type:
- Fans: The icon automatically rotates based on the fan speed.
- Switches/Locks: Use
slider.toggle_on_click: trueto treat the slider as a simple toggle. - Covers: Typically use
slider.direction: top-bottomandslider.background: striped. - Media Players: The slider controls volume. If the entity has a picture, it is used instead of the icon. Use
action_buttonwithmode: customto implement play/pause. - Climate: The slider sets the target temperature but does not alter the state directly.