I am trying to migrate away from Simple Control to a new platform (long story) and home assistant does almost everything I need except I need a smallish tweak - ideally that gets added as a feature rather than me having to edit the itach module myself (and break my updates).
I have an Itach IP2SL RS232 device for control of my Denon Amp and am wondering if someone is interested in tweaking the itach remote component to achieve this?
The standard itach remote takes a hex string and changes it to the correct format for sending to the itach IP2IR (adding the extra characters needed, eg “sendir,1:1…” . What I’m after is a tweak to NOT convert that text and just send it directly as entered through to the IP2SL.
Standard itach config:
- platform: itach
host: <itach_ip_address>
port: 4998 #ip2ir command port
devices:
- name: TV
connaddr: 2
commands:
- name: "ON"
data: "0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689"
What would work for an IP2SL:
- platform: itach
host: <itach_ip_address>
port: 4999 #note the port is different for the IP2SL
devices:
- name: TV
commands:
- name: "ON"
data: "PWRON\x0D"
Basically, telnet to the itach IP2SL device on port 4999, transmit PWRON\x0D without translation (or whatever command is in the data field). (TBH, not sure why you would need the translation anyway as Global Cache have a giant database of most IR commands in their format for easy download).
I can do this with the TELNET component but that expects ON and OFF commands where I can send all of the below (and more) as discrete commands using RS232.
PWRON
PWROFF
SITUNER
SIDVR
SIDVD
MVUP
MVDOWN
MVxx (number between 00 and 80, or 99 = minimum)
Ideally I would then be able to add all of those buttons to the remote and also to scripts/automations at a later stage.
I have already used the REST API to set up all of the remote buttons for my Panasonic Viera TV with the Telnet component to send the IR commands for On and Off as my VT60 doesn’t do WOL).
For reference, my Telnet config for IR on and off of the TV: (using itach IP2IR)
platform: telnet
switches:
panasonic_tv:
resource: 192.168.1.80
port: 4998
command_on: "sendir,1:1,1,37000,1,1,128,63,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712"
command_off: "sendir,1:1,1,37000,1,1,128,63,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,48,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712"
And my REST config for TV remote buttons (available via scripts):
url: http://192.168.1.98:55000/nrc/control_0
method: POST
headers:
content-type: application/xml
SOAPAction: '"urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"'
payload: '<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1"> <X_KeyEvent>NRC_{{ command }}-ONOFF</X_KeyEvent> </u:X_SendKey> </s:Body> </s:Envelope>'
content_type: 'text/xml'
verify_ssl: false
And one of the button scripts:
sequence:
- service: rest_command.tv_buttons
data:
command: CH_UP