At the bottom of the page there is a section about Philips TV's with android from 2016:
The 2016 Android based TVs from Philips expose a subset of the Jointspace JSON API, however it is protected behind a pairing mechanism. The following features are supported:
Audio parameters control
Ambilight control
Read out system parameters
Send basic RC commands
Is it possible to change this script so it can be used as a Python plugin for Domoticz?
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
Have been thinking about doing the same. It should not be too difficult what the plug-in should do. Challenge is the auto creation of buttons etc.
At the moment I use the json api to set the volume depening on which source is selected and to turn of the tv when radio is turned on, we go to sleep or left home but 'forgot' to turn of the TV.
I know there are some other tv plug-ins but have no idee what functionality they include.
What would we want the plug-in to do?
- state detection: off/source/Chanel
- turn of (on is not possible via API)
- set volume via slider
There is an app that can basically do all buttons and all this could potentially be added but makes really not fitting the domoticz setup.
Using the Sony tv plug-in as a start already gives manager st of the code.
JointSpace API documentation is available here : http://jointspace.sourceforge.net/proje ... c/API.html
In most of the case, just replace http://<ip_of_TV>:1925/1/ by https://<ip_of_TV>:1926/6/
For ambilight status, HTTP works. No need of HTTPS.
For starting TV ON and OFF, I use cec-client commands in my shell
Finally, I use a virtual switch in domoticz for my TV, a deamon on my raspberry to check current state of TV and to update it in domoticz, and a lua script to control all of it with os.execute() command.
Just, if you use cec-client you will have to switch manually your TV OFF after rebooting raspberry pi.
Thank you very much for your reply. I somehow had missed it and I was just looking again in the forum if someone has found a solution and I saw your reply
pi@raspberrypi:~/philips_android_tv-master $ ./philips.py --host 192.168.31.7 pair
bash: ./philips.py: Permission denied
pi@raspberrypi:~/philips_android_tv-master $ chmod u+x philips.py
pi@raspberrypi:~/philips_android_tv-master $ ./philips.py --host 192.168.31.7 pair
from: can't read /var/mail/__future__
from: can't read /var/mail/base64
from: can't read /var/mail/datetime
./philips.py: line 4: import: command not found
./philips.py: line 5: import: command not found
./philips.py: line 6: import: command not found
./philips.py: line 7: import: command not found
./philips.py: line 8: import: command not found
from: can't read /var/mail/Crypto.Hash
from: can't read /var/mail/requests.auth
./philips.py: line 11: import: command not found
./philips.py: line 20: syntax error near unexpected token `def'
./philips.py: line 20: `def createDeviceId():'