Thanks @MassiPi. Yes, this is an option and I subsequently found this approach.
I don’t really understand why this capability was deprecated though if separate power on/off can no longer be managed within home-assistant directly using the new methods.