Skip to content

v2.7.0

Choose a tag to compare

@nutteloost nutteloost released this 28 Nov 08:05

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, or auto_swipe_interval based 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 days

You can also use entity states: "{{ states('sensor.your_sensor') | int }}"