I want to implement an automation which controls my window shutters. To do so, I want to check first whether the last movement was done by an automation or by a HomeAssistant user.
Do you have an idea how to implement this?
If it is just one automation you are interested in, you could also check how long ago the automation has run with something like this:
You haven’t told us what shutter behavior you want to accomplish. Depending how long ago the last action was, it might not be very relevant who did it. There are other ways to ensure automations and manual control don’t conflict. So maybe if you describe intended behavior then we can suggest more effective solutions to your problem.