I have one automation which purpose it is to set the input_numbers in order to enable/trigger another automation.
In order to reduce the maintainance of this (and a set of similiar time based automatons) it would be nice to dynamically re-use the trigger info in the action part of the code rather than to manually have to adjust the entries (trigger:at and the two service entries).
Does there exist any state change information for when the automation was triggered, eg states.automation.name.last_changed (I have tested this particualar attribute)
that would be available within the automation itself?
alias: 'Motorvärmare Flagga: Auto: 7.17 vardagar' description: '' trigger: - at: '7:17' platform: time action: - data_template: entity_id: input_number.mv_flagga_hour value: '7' service: input_number.set_value - data_template: entity_id: input_number.mv_flagga_minute value: '17' service: input_number.set_value mode: single