hyttysmyrkky / node-red-contrib-vestel-tv

Node-RED nodes to control a Vestel TV (possibly sold as ProCaster, Toshiba, Hitachi, Sharp, JVC, Bush, Alba, Panasonic, Medion, Finlux etc.)
Apache License 2.0
8 stars 2 forks source link

node-red-contrib-vestel-tv

NPM version [npm]() License

Node-RED nodes to control a Vestel TV (possibly sold as ProCaster, Toshiba, Hitachi, Sharp, JVC, Bush, Alba, Panasonic, Medion, Finlux etc.)

Currently supported (i.e. tested) models:

Setup

The virtual remote control feature must be enabled in the TV settings.

For the instructions how to install this node (plugin), please refer to the Node-RED docs.

This plugin does not use the discovery protocol, which means that you have to give the IP address of the TV manually to the vestel remote control node settings. Also, you most likely want to set the address to be static (in DHCP in the router settings).

The TV must be turned on. Usually, when the TV has been turned off with the normal IR remote control, the TV goes to a deep sleep state where it does not listen to virtual remotes anymore. However, when powering off the TV by using a virtual remote, the TV may enter a light standby state where it is listening to a virtual remote power on command (while also consuming more energy!).

Contributing (and Disclaimer)

This project is not related to Vestel or any other manufacturer, but is fully 3rd-party-contributed.

Example how to "reverse engineer" the remote API of a TV model

You can try the virtual remote first with the official Android app from the Google Play store (see link in Acknowledgments). When that works, you can use a packet capture app to get the HTTP requests that the Android app makes.

Alternatively, if you think that only the port is different: to find out ports that the TV is listening to (when powered on): e.g. on Linux nmap -p- IP_ADDRESS (where IP_ADDRESS is of course the address of the TV)

See links in the Acknowledgments for more related information.

Possible future features

Running the tests

Running the tests requires Docker. Run the script test_all.sh in the test directory.

If you have Docker and you would like to test this plugin without installing Node-RED, you can run (in the test directory) the scripts ./build_test_image.sh and then ./run_node-red_with_vestel-tv.sh. Then open in browser http://localhost:1890. (Or if you want to access Node-RED outside localhost, run ./run_node-red_with_vestel-tv.sh --not-only-for-localhost)

License

Apache-2.0 (c) Rednaelo Inot

Acknowledgements

Useful links (and thanks for the useful information!):