It took me forever to find out that you can do this so here is a step by step to help the next guy
First thing you need to do is find the documentation for the device you are connecting to.
It will tell you things like baud rate, data bits, parity, stop bit, etc. Then it will tell you the commands to control the device.
Before you involve the ip2sl device at all I think it’s imperative to test your serial connection without the ip2sl in the middle to ensure the ip2sl isn’t the issue. You could possible skip this step but if you have troubles return here to test without ip2sl
Just get a usb to serial connector, plug that into your pc, then connect the serial cable from the USB dongle into your destination device
On a PC click start>run, type devmgmt.msc and look for “Ports (COM & LPT)” expand that and it will tell you the COM Port number like COM4
Download putty and open it
Select serial for the serial line type the com port you noted earlier Ex: COM4
For the speed type the baud rate from your devices documentation
Expand Connection>Serial
Ensure all the settings match your devices documentation such as data bits, stop bits, parity, flow control, etc.
Return to the session section and click open
A black screen will show type in one of the commands that your documentation provided such as a power on command. My command was ‘@112’ for my Emotiva MC-700. Once I typed that and pressed enter it turned it on. Great now I know the serial connection is working it’s time to try using the ip2sl.
Plug your global cache ip2sl device into power and network, connect the serial cable from the ip2sl to your device
Next you need to find the ip address of the ip2sl device, global cache makes a utility called ihelp to help you find this
Search google for itach ihelp (https://www.globalcache.com/files/01-2020/iHelp.exe)
Run that and it will tell you the IP address of your device
Open a web browser and goto the ip address it told you in ihelp
Click serial and set the baud rate, data bits, parity, etc per your devices documentation
Click the network tab. I’d recommend disabling DHCP and setting a static IP that is out of your DHCP scope so this doesn’t change on you. Or just put a reservation on your DHCP server.
Once your ip2sl device is setup then open home assistan
You’ll need to edit the configuration.yaml file on the device, it’s easiest to get the samba plugin so you can open the file over the network
So first goto Supervisor>Add-on Store
Search for Samba share
Install that
Then go to Supervisor>Samba share (under dashboard tab)
Click the configurator tab
Set a username password
Click Save
Reboot Home Assistant (You can goto Supervisor>System>Reboot Host)
Ensure samba addon started by going to Supervisor>Samba share (under dashboard tab)
Click start if needed
Now we’ll add a switch of type telnet to your configuration.yaml file
On a PC open file explorer
Browse to \homeassistant.local\config
Type in the username/password you set in the samba configuration above
Open the configuration.yaml file and add the code below to that file.
Change the command_on and command_off to correspond to your devices telnet commands.
Likewise change the name to something descriptive for your application
switch:
- platform: telnet
switches:
emotiva:
resource: 192.168.1.170
port: 4999
command_on: "'@112'"
command_off: "'@113'"
name: "Emotiva Power"
timeout: 3
Reboot Home Assistant (You can goto Supervisor>System>Reboot Host)
Now goto the overview and you should see the newly created switch. Try clicking on the buttons to see if it works.