Summary
The current Samsung TV implementation in infrared_protocols/codes/samsung/tv.py is missing several commonly used IR codes that are available in the iwanders/IR_control repository.
Context
I'm currently working on a Home Assistant Core integration (samsung_infrared) that uses this protocol library for infrared control of Samsung TVs. While implementing the integration, I discovered that many useful codes are missing from the current implementation.
Missing Codes (updated):
Power Control (High Priority)
Separate power on command (different from toggle):
POWER_ON = 0x1B # use TV button, because 0x19 not work for me
Color Buttons (High Priority)
These are very common on TV remotes and used for interactive features:
RED = 0x6C
GREEN = 0x14
YELLOW = 0x15
BLUE = 0x16
Media Playback Controls (High Priority)
Essential for media playback functionality:
PLAY = 0x47
PAUSE = 0x4A
STOP = 0x46
FORWARD = 0x48
BACKWARD = 0x45
RECORD = 0x49
Navigation & Menu (Medium Priority)
Additional navigation and menu options:
MENU = 0x1A
GUIDE = 0x1C
TOOLS = 0x4B
MEDIA = 0x31
CONTENTS = 0x5B
SMART_HUB = 0x2E
BROWSER = 0x37
PREVIOUS_CHANNEL = 0x13
Teletext & Accessibility (Low Priority)
TELETEXT = 0x3C
SUBTITLE = 0x25
Picture & Display (Low Priority)
PICTURE_SIZE = 0x3D
PIP = 0x32 # Picture-in-Picture
Additional Features (Low Priority)
E_MANUAL = 0x3F
SLEEP = 0x2F
TV = 0x1B
Source Reference
All codes are documented in: https://github.com/iwanders/IR_control/blob/master/ir_control/codes/samsung_tv.txt
These codes were recorded from a Samsung TV remote (2016 model) and use the Samsung32 protocol with address 0x07.
Impact
- Enables more comprehensive Samsung TV control in Home Assistant
- Provides feature parity with other Samsung IR implementations
- Benefits other projects using this library
Testing
- I have implemented these codes in a temporary class in my Home Assistant integration and verified they work with actual Samsung TV hardware via ESPHome IR transmitter.
Summary
The current Samsung TV implementation in
infrared_protocols/codes/samsung/tv.pyis missing several commonly used IR codes that are available in the iwanders/IR_control repository.Context
I'm currently working on a Home Assistant Core integration (
samsung_infrared) that uses this protocol library for infrared control of Samsung TVs. While implementing the integration, I discovered that many useful codes are missing from the current implementation.Missing Codes (updated):
Power Control (High Priority)
Separate power on command (different from toggle):
Color Buttons (High Priority)
These are very common on TV remotes and used for interactive features:
Media Playback Controls (High Priority)
Essential for media playback functionality:
Navigation & Menu (Medium Priority)
Additional navigation and menu options:
Teletext & Accessibility (Low Priority)
Picture & Display (Low Priority)
Additional Features (Low Priority)
Source Reference
All codes are documented in: https://github.com/iwanders/IR_control/blob/master/ir_control/codes/samsung_tv.txt
These codes were recorded from a Samsung TV remote (2016 model) and use the Samsung32 protocol with address 0x07.
Impact
Testing