If you have the HomeAssistant app installed on your mobile, then this blueprint should do whatever you need.
Note that this is just a suggestion and I don’t use it personally. If you have any further questions, I suggest you post in the blueprint thread.