RTI Remote Integration (one way)

I just completed this as a side project. It basically takes an RTI Remote and processor and allows you to tell HASS what to do with them. From what I have you can’t update the remote from HASS. It’s a tell-hass-only solution.

On the RTI side of things, you basically use the strings driver and set a string thats in the format of ,<device>:<command>. . The comma means the beginning of a string and the dot means the end. The colon seperates the device from the command portion.

So, for example in the RTI configuration software you would put something like this:

Then using the python script I have linked at the end, run it and it listens for commands from the RTI processor. When the script receives a command it tells hass to run a command which in my case sends an IR command of “guide” to my cable box using the iTach component.
{ "entity_id":"remote.cable", "device":"0", "command":"guide" }

Ideally this would be a component or appdaemon or something but that’s beyond my pay grade for the moment.

python script: https://pastebin.com/raw/mTB7stVi

1 Like

Hi, I’m after a similar thing. I currently use eventghost and someone has written a small 2 way TCP python plugin for it, not sure if it can be used ?

http://www.eventghost.net/forum/viewtopic.php?f=9&t=6193

Nice find. That looks like better code that what I did and can likely be massaged into HASS. I’m not looking to work on this now because I don’t have a two-way remote for RTI but maybe in the future.

1 Like

python proxy for sending RTI commands to HA. This works well for sending commands from RTI to HA. It would be great if it could send the state back to RTI. I played around a little with the code to make it usable across more HA Devices. My version allows you to enter the HA domain, service, and 2 fields with values. It also gets the state of the device, and prints it in the terminal. how would i pass that state back to RTI so i could set variables within RTI’s 2-way driver?

RTI ESCAPED STRING EXAMPLE:

https://pastebin.com/raw/T1Bzi3pD
https://pastebin.com/dl/T1Bzi3pD

Hello thank you for this how do I install this script in home assistant? When I call the service I get an error about how name cant start with _. Something like that Im not home to check the error but I will post as soon as I can. Thank you in advance.

edit: Line 102: “name” is an invalid variable name because it starts with “_”

Hi!
Did you ever get the script installed and working?

Chris