How do you set the power on/off status for an IR device

I’m initially just trying to reproduce the functionality of my existing Harmony Elite remote, and want it to control TV, Soundbar, STB etc. I was able to use an integration for my LG TV, and just set up IR entities for the other devices. When I power on an activity, the status of the TV updates accordingly, but not the other IR devices used for a specific activity. Is there a way to toggle the Power status when a device is powered on/off? Sorry if this has been asked before, but I couldn’t find anything

What are names of the commands you turn the IR devices on and off? The remote only recognizes them if there are called POWER_ON and POWER_OFF (or POWER_TOGGLE).

Thanks for the response @kennymc.c. I’ll change that for all devices. My Samsung Soundbar only has a Power toggle, but I guess I can create POWER_ON and POWER_OFF using the same IR command
Thank you for your help