I am glad I found this thread! The app does not work on my phone and I thought I hit a dead end for controlling my TV via MQTT. Thank you for all the information you shared @rya!
I started writing a python API for this: https://github.com/newAM/hisensetv
The basics are in, though it is very hack-and-slash right now. There will be bugs until I can get around to writing unit tests.
./hisensetv.py --help
usage: hisensetv.py [-h] [--authorize] [--get {sources,volume}] [--key {back,down,exit,left,menu,power,right,up}] [-v] hostname
Hisense TV control.
positional arguments:
hostname Hostname or IP for the TV.
optional arguments:
-h, --help show this help message and exit
--authorize Authorize this API to access the TV.
--get {sources,volume}
Gets a value from the TV.
--key {back,down,exit,left,menu,power,right,up}
Sends a keypress to the TV.
-v, --verbose Logging verbosity.
One time setup:
./hisensetv.py 10.0.0.128 --authorize
Please enter the 4-digit code: 7815
Then there is a little CLI interface to try it out:
./hisensetv.py 10.0.0.28 --key up
INFO:__main__:sending keypress: up
./hisensetv.py 10.0.0.28 --get volume
INFO:__main__:volume: {
"volume_type": 0,
"volume_value": 0
}
@CaptainMalu I have not been able to get SSL to work, are you able to go more into depth about your example above? What text exactly should I copy from that command into hisense.crt
?