I like having power button to end the call, but when the display is off, that presents a problem, lol.
Simple project.

Power button ends the call but not always 2020-05-03
Set power button to end call but not when the screen is off
Set power button to end call but not when the screen is off
Sorry but there is an issue with the forum where it can't send out emails.Because of this the forum is in read-only mode at the moment.
You can find the currently known issues with Tasker and possible workarounds here.
In the mean time you can ask your questions here: See you soon! João Dias