Denox
April 11, 2024, 9:46am
1
Hello everyone,
I installed a custom component from HACS to be able to manage my recent Philips TV
I then tried to follow the guide but I’m already stuck at step 2
Can someone enlighten me on what to do please?
I believe python3 is not installed on my HA ? I tried to google it but can’t find a way to do it
Is that what i am missing ?
My configuration
[center]## System Information
version
core-2024.4.2
installation_type
Home Assistant OS
dev
false
hassio
true
docker
true
user
root
virtualenv
false
python_version
3.12.2
os_name
Linux
os_version
6.6.20-haos
arch
aarch64
timezone
Europe/Paris
config_dir
/config
Home Assistant Community Store
GitHub API
ok
GitHub Content
ok
GitHub Web
ok
GitHub API Calls Remaining
4830
Installed Version
1.34.0
Stage
running
Available Repositories
1400
Downloaded Repositories
16
Home Assistant Cloud
logged_in
true
subscription_expiration
17 avril 2024 à 02:00
relayer_connected
true
relayer_region
eu-central-1
remote_enabled
true
remote_connected
true
alexa_enabled
true
google_enabled
false
remote_server
eu-central-1-12.ui.nabu.casa
certificate_status
ready
instance_id
4a71c214125a4030a54f7381e8137246
can_reach_cert_server
ok
can_reach_cloud_auth
ok
can_reach_cloud
ok
Home Assistant Supervisor
host_os
Home Assistant OS 12.1
update_channel
stable
supervisor_version
supervisor-2024.04.0
agent_version
1.6.0
docker_version
24.0.7
disk_total
28.0 GB
disk_used
8.9 GB
healthy
true
supported
true
board
green
supervisor_api
ok
version_api
ok
installed_addons
File editor (5.8.0), RPC Shutdown (2.4), Terminal & SSH (9.10.0), Filebrowser (2.23.0_13)
Dashboards
dashboards
2
resources
9
views
5
mode
storage
Recorder
oldest_recorder_run
4 avril 2024 à 15:45
current_recorder_run
11 avril 2024 à 11:03
estimated_db_size
156.98 MiB
database_engine
sqlite
database_version
3.44.2
Spotify
api_endpoint_reachable
ok
[/center]
Denox
April 11, 2024, 10:09am
2
I tried to add this package to my terminal & ssh
I then ran the commands again but with a result of a warning error, should I bypass via the last command line given ?
francisp
(Francis)
April 11, 2024, 12:04pm
3
I think this part
Pairing the TV
First you need to pair the TV. This gets you a username and a password to be used in the configuration of the component.
Clone the repo with pairing script:
git clone https://github.com/suborb/philips_android_tv
Install the requirements (for Python 3, so you may need to use pip3):
pip3 install -r requirements.txt
Execute pairing. A PIN code will appear on your TV. Input that in your terminal
python3 philips.py --host <IP of TV> pair
Now you will have a username and password you can use in your HA configuration.
is not intended to be run on HA OS. The part to run on HA OS start here:
Installing and configuring the custom component
1 Like
thlucas
(Todd Lucas)
April 11, 2024, 1:09pm
4
@Denox
@francisp is correct. It appears that the https://github.com/suborb/philips_android_tv
repository is a Python API that allows programs written in Python to control the TV. It contains a philips.py
script that can be called from a command-line to do various things, one of which is to pair the TV and return a user-id and password for the pairing.
The above repository is not to be confused with the Home Assistant integration, which is the https://github.com/nstrelow/ha_philips_android_tv
repository. Two different repositories.
I believe that HA disables or does not allow the pip
command to be used from the terminal or SSH sessions.
If you still want to proceed with this, check out the How To Install Python article for instructions on how to install Python to various operating systems. Once you have Python3 installed, you can then issue the python3 philips.py --host <IP of TV> pair
command to retrieve the pairing user-id and password result.
Hope it helps!
1 Like
Denox
April 11, 2024, 2:06pm
5
Thanks for your answer, it’s pretty clear.
I’m not sure i’ll go further anyway because I just figured out the integration i’m looking to install is deprecated or very old…
1 Like