2 esp one project

Automations may be a suitable solution, if not you should read this…

Pete.