The FireTV does not turn off, it only goes into standby, then sleep.
The new 4K remote will turn on and off most TV's and a lot of accessories.
The source/input on your TV is controlled by your TV remote...... (note: some TV's with the CEC feature will move over to the HDMI port of the FireTV when the home button is pressed on the FireTV Remote)
Switching to antenna, at least for my new cube, might be a step to far. I was on help with Amazon and they were not able to be able to do it on my 10 year old TV. As Oneacer told you in the above, the Fire TV can control some accessories (In my case it can switch to Direct TV and Blue Ray) on voice commands. All you need to do to have the results you desire is to not use the on/off button of the 4K stick.
Can i reprogram tv or firestick when i press power button to change to hdmi1, and when i press again to change to cable?
Or somehow else?
I think You can do this with voice commands on the new cube 2.0. Using a Onkyo AV Receiver, the Cube 2.0 permits me using voice commands to switch from the Cube 2.0, to Direct TV or to my Blue Ray player and to switch back. I did not try this with the 4K stick before I updated to the Cube.