I want to be able to control the TV (changing inputs, turning it on and off) by using a keyboard connected to the Raspberry Pi 3b+ that has libreELEC installed on it (I have two LG TVs on the same room and the both remotes turn on both TVs, its a PITA).
So far I have been able to turn off the TV by turning off libreELEC from the shutdown menu, but that means that I have no way of turning on the TV with the keyboard, only by unplugging and plugging the Raspberry's power source.
I've seen that I could send hdmicec commands via ssh, but that seems a bit involved, so the question is, would it be possible to execute said commands via a keyboard press (like, set F1 to change inputs, F2 to turn off/on tv and so on).
Thanks!