Skip to content

ground7/sharp-nec-homekit-tv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharp NEC HomeKit TV

...convert an awesome raspberry pi commercial display into a homekit tv and remote

me-651

Currently Working

  • Install Directly on the Pi
  • Home App (On/Off and Switching Sources)

To Do

  • Read Power State and Current Input Back from TV to Update the Home App
  • Finish Dockerfile (mostly works except maybe cec On/Off haven't tested)
  • Finish Remote Implementation
  • Variable abstraction for default IP address, TV name, accessory.state file location
home-app remote-app

Preinstall Steps (Doesn't work on Bookworm)

wget https://raw.githubusercontent.com/SharpNECDisplaySolutions/nec_rpi_config_tool/master/nec_rpi_config_tool.sh
chmod a+x nec_rpi_config_tool.sh
./nec_rpi_config_tool.sh

Install Steps

git clone https://github.com/ground7/sharp-nec-homekit-tv.git
cd sharp-nec-homekit-tv
pip3 install -r requirements.txt
python3 tv.py

📍A QR code will show up in the log at this point - Scan it and add it to homekit!

Run as Systemd Service

sudo systemctl --force --full edit homekit-tv.service
[Unit]
Description=Advertise the pi as a HomeKit TV
After=multi-user.target

[Service]
WorkingDirectory=/home/pi/sharp-nec-homekit-tv/
User=pi
ExecStart=/usr/bin/python3 /home/pi/sharp-nec-homekit-tv/tv.py
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl enable --now homekit-tv.service
systemctl status homekit-tv.service