the way this is coded, i would expect the turn off to not work. Here is a template switch that I use (which is essentially the same as your input boolean and automations:
The harmony remote has an activity for everything. Power is considered an activity. It will have a different # than the activity you are using.
Also, notice that remote.turn_on is being used for all activities. That’s because you are turning on the power off activity, not turning off the activity you have.