- id: '1742896826030'
alias: SCHEDULE - Kalender - Oppdater datoer
description: ''
triggers:
- trigger: time
at: 01:00:00
enabled: false
conditions: []
actions:
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Restavfall
start_date: '{{ as_timestamp(states(''sensor.restavfall'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.restavfall'')) + 86400) | timestamp_custom(''%Y-%m-%d'')
}}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Restavfall
start_date: '{{ as_timestamp(states(''sensor.restavfall_neste'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.restavfall_neste'')) + 86400) |
timestamp_custom(''%Y-%m-%d'') }}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Matavfall
start_date: '{{ as_timestamp(states(''sensor.matavfall'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.matavfall'')) + 86400) | timestamp_custom(''%Y-%m-%d'')
}}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Matavfall
start_date: '{{ as_timestamp(states(''sensor.matavfall_neste'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.matavfall_neste'')) + 86400) | timestamp_custom(''%Y-%m-%d'')
}}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Papiravfall
start_date: '{{ as_timestamp(states(''sensor.papiravfall'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.papiravfall'')) + 86400) | timestamp_custom(''%Y-%m-%d'')
}}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Papiravfall
start_date: '{{ as_timestamp(states(''sensor.papiravfall_neste'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.papiravfall_neste'')) + 86400) |
timestamp_custom(''%Y-%m-%d'') }}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Glass og metall
start_date: '{{ as_timestamp(states(''sensor.glass_og_metall'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.glass_og_metall'')) + 86400) | timestamp_custom(''%Y-%m-%d'')
}}'
- action: calendar.create_event
target:
entity_id: calendar.soppelhenting
data:
summary: Glass og metall
start_date: '{{ as_timestamp(states(''sensor.glass_og_metall_neste'')) | timestamp_custom(''%Y-%m-%d'')
}}'
end_date: '{{ (as_timestamp(states(''sensor.glass_og_metall_neste'')) + 86400)
| timestamp_custom(''%Y-%m-%d'') }}'
mode: single