Day of Week Condition

alias: Bin Collection Notification
description: Text to say which Bin needs to go out
trigger:
  - platform: time
    at: "19:00:00"
condition:
  - condition: time
    weekday:
      - mon
action:
  - service: notify.all_ios_devices
    data_template:
      title: Bin Reminder
      message: Remember to put out the {{states('sensor.bincollection')}}

I’m trying to get this simple script to run, but as soon as I added the day of week condition to it, it stopped working. I have looked at the various threads and according to what I have seen in examples this should work, but it doesn’t. What have I done wrong ?

Looks right to me, but you’ll have to wait until Monday at 7pm for it to fire.

Except it didn’t work on Monday at 7pm so I am confused.

1 Like

Any error in the log three days ago?

Reading the condition’s documentation it is not clear to me, whether the absence of before: and after: implies “the whole day”. Could also result in ‘00:00:00’ exactly.

Either you use the recommended workday sensor condition or add after: '00:00:00', so it will span the entire (Mon)day.

No, but I deleted the Yaml - re typed it , set to today and now and it worked so I must have had a space issue somewhere that I couldn’t see

1 Like

I have an event based on time to counter the whole day issue I thought