Can't find error in automation.yaml

Check config and log are throwing this error:

Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->3->after. (See /config/configuration.yaml, line 41).

Here’s the config yaml
Here’s automations.yaml

The culprit seems to be somewhere in the last automations (the washing machine stuff), which is copied from here

I can’t figure it out as the log entry doesn’t seem to navigate me to anything useful (line 41 in config is empty). Thanks!

The error seems to point to the third trigger of an automation using ‘after’ as part of the trigger.

I’d look at:

- alias: Send alert when washing machine is finished

specifically:

    - platform: time
      after: '08:45:00'

AFAIK ‘after’ is not a valid trigger element.

Yeah, that’s copied right from over here, which is what many users here use for washing machine notifications…

Thanks!

Well the blog is wrong. See the docs: https://www.home-assistant.io/docs/automation/trigger/#time-trigger

It’s at: not after: for triggers. You can only use before and after in time conditions.

Apparently it actually used to be after: for the time trigger back in the day. But yes, not anymore :stuck_out_tongue:

Ah! Thank you guys! Solved.

The blog post you claim is used by “many users here” is ancient (by Home Assistant’s standards).

It was almost three years ago that the documentation was updated to reflect the Time Trigger’s change from after to at.

Screenshot from 2020-03-23 14-32-42

Home Assistant continues to evolve thereby rendering some old blog posts (and old posts here) non-functional. Copy-pasting 3-year-old code might not always work. When it doesn’t, you have to review and compare it to the latest documentation.

If there are indeed “many users here” using this code, they’ve all corrected it since the switch from after to at.

Yes, thanks. I couldn’t get my washing machine to work (you’d guess there would be a HACS plugin or AppDaemon app to do something that frequently wanted) but this doesn’t seem to have other issues. I haven’t been able to test it yet though.

Where are you getting these statistics to make claims such as “many users here” and “something that frequently wanted”?

Searching for washing machine and vibration produces 27 results which, by this forum’s standards, is on the meager side.

I don’t know about vibration but “washing machine” has 50+ matches and is hardly something esoteric.

That also picks up posts containing the word “machine” which is fairly ubiquitous. Some may only be interested to learn a washing machine’s power consumption as opposed to detecting its washing cycles.

Been on this forum for over a year (read > 70K posts) and the number of inquiries about detecting washing machine’s cycles are few and far between. It can be done via an integration (where supported), power-monitoring device, or vibration sensor. Aren’t too many ways to detect it and not all that many topics elaborating how it’s done (compared to, for example, lighting/schedule/presence automation).

Yes, and I’m trying to do it via power-monitoring device and there not being a ready-made way, I resorted to a blog post that several forum members also use. It gave me error so I asked for help, is that a problem?

No problem at all.

Based on the tens of thousands posts I’ve read over the course of a year, it’s not nearly as popular as your claims suggest. All I had asked was what was your evidence for making those claims.