Call trigger once a day

thank you Sir

No sweat. Let us know if it works!

Hi,
Trying to make first steps in automation.
What is defined wrong below (bacause sistem isn’t trigger the event).
Simple notification when i’m away in weekdays to be sent to my phone

Name:
notificareprezentalipsa918
triggers:
type: motion
platform: device
device_id: 0a285670dbd3d74591ae87d186a7f5cb
entity_id: binary_sensor.immax_occupancy
domain: binary_sensor
condition: time
weekday:
  - mon
  - tue
  - wed
  - thu
  - fri
after: '09:00:00'
before: '18:00:00'

Condition
condition: template
value_template: >
  {{ (as_timestamp(now()) -
  as_timestamp(states.automation.notificareprezentalipsa918.attributes.last_triggered
  | default(0)) | int > 28800)}}