This one (but EU version) can do this by itself: Deltaco German Mains Plug, 13A, Plug-In, 240 V Ac | SH-P02E | ET23130839 | Enrgtech LTD
I have used this for many years and it can be set up to turn on or off a port based on the power consumption on the device (Power is measured for the device, not for each outlet). I could do what you ask without integration to Home Assistant. If you can find a UK version - or use adapters.