But I fear that answer will not be very useful to you, so let me pose a question of my own.
Q: How certain are you that the programming you have done so far is correct?
If learning commands from the original remote would not get the unit to power up or down then I think that the issue is with your macro or other related programming and not with the actual IR code.
I'm not feeling up to describing how one would go about checking to make sure that the power on macro for the uncertain activity in question is correctly issuing what would be a bad code if it was in fact configured correctly.
I would try the normal troubleshooting method.
1. check factory remote can power device on and off
2. learn that command to a button somewhere temporarily and verify that the learned code functions the same as the factory remote
3. if one and two above have been done, your on/off settings for devices are most likely wrong
Good luck.
Scientific method refers to the body of techniques for investigating phenomena, acquiring new knowledge, or correcting and integrating previous knowledge.