Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Python Script using HACS PyScript to control Telefunken Smart TVs via HTTP-API

License

Notifications You must be signed in to change notification settings

simonostendorf/hacs-pyscript-telefunken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HACS PyScript Telefunken

installation

  1. Install HACS
  2. Add PyScript as a custom repository
  3. Install PyScript as integration (allow imports)
  4. Restart Home Assistant
  5. Copy the telefunken.py file to the config/pyscript folder
  6. Restart HACS

usage

  1. Find out the IP address of your Telefunken TV (e.g. look it up in your router or in the TV settings)
  2. Find out the port of your Telefunken TV (e.g. with nmap IP_ADDRESS -p-). The port is usually 56789.
  3. Test the port with curl -H 'Host: IP_ADDRESS:PORT' --data '<remote><key code="1013"/></remote>' http://IP_ADDRESS:PORT/apps/vr/remote. This should mute the TV if everything is working correctly.
  4. Use service python_script.telefunken with the following data:
action: mute
ip: IP_ADDRESS
port: PORT
  1. Integrate the service inside your automations

important

  • If you turn off the TV with the remote, the TV will not respond to any commands anymore. You have to turn it on again with the remote to make it work again. So the power command powering off the TV is not the same action as turning off the TV with the remote.
  • The TV can change the port. I could find out when the port changes. You can find the new port with nmap IP_ADDRESS -p-

parameters

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • back
  • screen_resolution
  • power
  • mute
  • language
  • volume_up
  • volume_down
  • info
  • down
  • up
  • left
  • right
  • stop
  • play_pause
  • rewind
  • fast_forward
  • subtitles
  • close
  • favourites
  • timer
  • quick_menu
  • app_dashboard
  • epg
  • menu
  • pause
  • yellow
  • record
  • blue
  • ok
  • green
  • red
  • image_source
  • mediabrowser
  • text

credits

About

Python Script using HACS PyScript to control Telefunken Smart TVs via HTTP-API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages