How vrachieru/samsung-tv-api works
This is a small Python library for controlling compatible Samsung Smart TVs over a network connection. A caller creates SamsungTV, which opens a WebSocket connection and checks the TV’s connection event; control methods then translate power, navigation, channel, volume, and other actions into remote-key commands. The wrapper serializes those commands and sends them through websocket-client. The graph focuses on this runtime path; the implementation is concentrated in samsungtv/remote.py.
Main entry points: remote.py TV controls · __init__.py Public export
Components 6
Other components
- Library caller
- Public export
samsungtv/__init__.py - TV controls
samsungtv/remote.py - Key dispatcher
samsungtv/remote.py - WebSocket client
- Samsung TV
Connections 8
- Library caller → Public export: imports
README.md - Public export → TV controls: exports
samsungtv/__init__.py - Library caller → TV controls: creates
README.md - TV controls → Key dispatcher: sends keys
samsungtv/remote.py - TV controls → Key dispatcher: maps channels
samsungtv/remote.py - Key dispatcher → WebSocket client: sends commands
samsungtv/remote.py - WebSocket client → Samsung TV: connects via WebSocket
- Samsung TV → TV controls: returns handshake
samsungtv/remote.py