Samsung S20 FE:
Google assistant works even when the screen is blocked. I created a macro on macrodroid to unblock the screen, but when I call it using google assistant, say: "Ok, google, run youtube", it says: "Ok, but you need to unblock the phone first", So I say: "Run unblock macro in macrodroid" or the trigger to it. It answers: "Ok, but you need to unblock the screen first". No solution ?
Unfortunately, Google have changed how lock and unlock work in later versions of Android. In these, no app is allowed to unlock a phone that uses fingerprint or face unlock. So it's not Macrodroid but Google who is the cause of the problem.
There are workarounds, involving using different unlock methods such as PIN. Then use a macro to input the pin using UI actions. This is not a good solution as it poses a security risk.
Another workaround is to use Google Smart Lock. Typically a wearable could be your trusted device.
Then the phone will unlock when the screen turns on, providing the wearable remains connected to your phone. A gesture may be required to dismiss the lock screen. This is phone dependent.
I used to use Smart Lock when I had phones with poor fingerprint and face unlock performance such as Samsung and OnePlus phones. However, I stopped using it when I moved to Oppo phones. The fingerprint and face unlock are extremely fast and always work and don't require a macro to remove the lock screen.
In addition, I don't now have any macros that require the screen to be auto unlocked. On Oppo I have a system setting to enable the status bar on the lock screen. I use it in macros to toggle WiFi and data when the screen is off and the phone is locked. A really useful feature.