I try to create file with variable but home assistant wont let me. here my automation : ```alias: Create ICS
description: ""
triggers:
- trigger: state
entity_id:- sensor.ical_ical_christie_event_0
attribute: start
to: "on"
conditions: []
actions:
- sensor.ical_ical_christie_event_0
- variables:
uid: "{{ states('input_text.generated_uuid_new') }}"
start: >-
{{ as_timestamp(state_attr('sensor.ical_custom_qmda_solo_event_0',
'start')) | timestamp_custom('%Y%m%dT%H%M%SZ') }}
end: >-
{{ as_timestamp(state_attr('sensor.ical_custom_qmda_solo_event_0',
'end')) | timestamp_custom('%Y%m%dT%H%M%SZ') }}
summary: "{{ state_attr('sensor.ical_custom_qmda_solo_event_0', 'summary') }}"
description: "{{ state_attr('sensor.ical_custom_qmda_solo_event_0', 'description') }}"
location: "{{ state_attr('sensor.ical_custom_qmda_solo_event_0', 'location') }}"
file_path: /config/{{ states('input_text.generated_uuid_new') }}.ics - action: shell_command.ecrire_fichier_ics
data:
content: >
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Apple Inc.//NONSGML iCal 4.0.5//EN
BEGIN:VEVENT UID:{{ uid }} DTSTAMP:{{ start }} DTSTART:{{ start }}
DTEND:{{ end }} SUMMARY:{{ summary }} DESCRIPTION:{{ description }}
LOCATION:{{ location }} END:VEVENT END:VCALENDAR - action: persistent_notification.create
data:
title: Fichier ICS généré
message: Le fichier ICS a été généré à l'emplacement {{ file_path }}
mode: single