Posielam navod ako nastavit vypinanie LG TV sucasne s KODI TV boxom. Sa ospravedlnujem za anglictinu, ale nechcelo sa mi to prekladat, posielam aj link z CoreELEC fora kde som umiestnil povodny navod v anglictine, https://discourse.coreelec.org/t/howto-l...r-off/1064
Scope:
Requirements:
Integration process (scripts as an attachment):
Scope:
- This script will turn off LG TV (from 2011 to 2015+) when you turn off the TV box (via KODI power menu, remote controller or button on the box).
- LG smart TVs are very known for their very bad managed HDMI CEC compatibility, at least old TV model <2015 (does not support power off via CEC command)
Requirements:
- LG TV >2011
- TV needs to be connected to the same network as TV BOX
- Mecool KIII PRO (S912), CoreELEC 8.90.5
- Putty or similar SSH software
Integration process (scripts as an attachment):
- Save service file shutdown_with_net.service to folder /storage/.config/system.d/
- Put your shutdown script shutdown_with_net.sh to folder /storage/.config/
- Put your python script lg_tv_control_lan.py to folder /storage/.config/
- Edit lg_tv_control_lan.py and set TV ip address and paring key
- Pairing key can be find out also by running script sh shutdown_with_net.sh with TV IP address and random key, TV will display pairing key which needs to be updated to python script
- Set permissions for the service and scripts, chmod 755 shutdown_with_net.sh and chmod 755 lg_tv_control_lan.py and chmod 755 shutdown_with_net.service
- Start the service systemctl enable shutdown_with_net.service
- Restart the box