If you can get a SSH connection to your Informir MAG device (some new firmwares or IPTV providers are disabling ssh), then you could launch a remote ssh command from Homeassistant.
- Get a fixed local IP for your MAG device (on your dhcp server or setting it manually)
- The default ssh password for mag devices is
- The command to simulate a keystroke in the remote control
- for MAG 250/254:
- for MAG256/3XX/4XX:
So I installed the program sshpass (to provide the ssh password in the command line), and I can execute this from my homeassistant server to turn on/off my MAG 254 stb:
sshpass -p 930920 ssh [email protected] '/usr/share/qt-4.6.0/sendqtevent -a -kqt 0x55'
You may add it as shell_command in homeassistant configuration.yaml:
stb_infomir: "sshpass -p 930920 ssh [email protected] '/usr/share/qt-4.6.0/sendqtevent -a -kqt 0x55'"
And then you could call it from a script in script.yaml to use in a automation…
alias: Turn on off infomir stb
- service: shell_command.stb_infomir