Would like to create a single automation that can pass the sensor friendly name to a file by double clicking on a card
type: custom:mushroom-entity-card
entity: sensor.chore_smokealarms
double_tap_action:
action: perform-action
confirmation:
text: Are you sure you want to?
target:
entity_id: automation.chorehelper_set
data:
skip_condition: true
perform_action: automation.trigger
Automation:
- alias: "ChoreHelper Set"
description: ""
mode: single
trigger:
- platform: state
entity_id:
- sensor.chore_smokealarms
to:
condition: []
action:
- service: notify.pushover
data:
message: >-
{{ now().strftime("%Y-%m-%d - %H:%M:%S") }}, {{trigger.to_state.attributes.friendly_name}}
title: "Chore Notification"
Automation would write to the defined file with:
-
Date, Time, Friendly name of the Entity from above.
-
Would also reset the date for that entity.
I have multiple Chore sensors that need to do this so instead of creating an automation for each one would rather have it just call one automation.