#I can't access attributes in tap-action using " custom:auto-entities"

1 messages · Page 1 of 1 (latest)

sleek abyss
#

Hi I have a custom:auto-entities to dynamicaly display "mushroom-template-card" in a grid.
My issue is with the "tap-action".
I added the parameter "performed_date" like this, but it is not recognized:

        tap_action:
          action: perform-action
          perform_action: home_maintenance.reset_last_performed
          data:
            entity_id: this.entity_id
            performed_date: this.attributes['next_due']

I don't know what is available using this, I expected the attributes of the current entity.
currenttly the message is: Failed to perform the action home_maintenance/reset_last_performed. Could not parse performed_date: this.attributes['next_due']
Thx.

sleek abyss
#

I have done a scrit. => fixed

fast thistle
#

I'm trying to figure this out as well actually... I already want to call a script, but I need to template the parameters passed to the script 🧐