v2.7.0
Simple Swipe Card v2.7.0
New Features ✨
- Template Support: You can now use Jinja2-like templates for dynamic configuration values. Set
reset_target_card,reset_after_timeout, orauto_swipe_intervalbased on entity states or time-based calculations. (closes #82)
Example: Show different card based on day of week
type: custom:simple-swipe-card
enable_reset_after: true
reset_after_timeout: 30000
reset_target_card: "{{ now().isoweekday() }}"
cards:
- type: markdown
content: "Monday content"
- type: markdown
content: "Tuesday content"
- type: markdown
content: "Wednesday content"
# ... cards for remaining daysYou can also use entity states: "{{ states('sensor.your_sensor') | int }}"