iTach Wifi2IR way to use with home assistant

Thank you! I have installed, and see it successfully loaded everything in the Wifi2IR log, but still see no service to call. Are these the correct settings for NetDaemon? I also see both devices show up under NetDaemon -> Apps.

DaemonSettings

I have created a 1,2,3 guide with screenshots and will be happy to share for the thread and or wiki when I get it up and running.

Again, thanks for all the assistance.

Cheers

jwb

you need to make sure netdaemon can connect with home assistant when it starts. if it will be successfull, you’ll see a new service in HASS:

Ok. Will trouble shoot once more before trying from scratch.
I see NetDaemon running but they show up as switches - nothing under services.
NetDaemon Status

Thanks for your help.

jwb

I’m still having some issues getting it as a service call, but here are the steps followed.

  1. Make sure HACS is installed in HA. Details on installing HACS:
    https://hacs.xyz/docs/installation/manual.

  2. Enable features in the HACS configuration under configuration -> integrations -> hacs. This allows
    you to see the other repositories.

  3. Install Netdaemon repository and add-on if necessary
    i. Supervisor -> add-on store, then select the 3 dots in top right corner
    ii. Follow instructions from https://netdaemon.xyz/docs/started/installation/. Don’t need to worry about
    anything else.
    iii. Don’t start service yet. Create our yaml files first.

  4. Install “Home Assistant to ITach Wifi2IR” from HACS”

  5. Hacs -> automation, search for “Home Assistant to ITach Wifi2IR”**
    i Make sure there is a checkmark in the NetDaemon Box**
    ii.

  6. Use Visual Studio or favorite editor and find your config -> netdaemon/apps/Wifi2IrApp directory.
    i. You will want to create a yaml file for each entity. E.g. tv.familroom.yaml, fireplace.fprmal.yaml
    ii. You may also do it by iTach device and place all components using the same iTach IP in same
    file.

  7. Goto supervisor -> netdaemon. Decide on parameters (watchdog, sidebar etc) and select start.
    i. Check logfile. You should see it successfully load the yaml files created.

Trying to get my ITach device working in Hassio.

step 4. above…is this in Add-on Store? I get:
No results found in “Official add-ons.”
No results found in “ESPHome Home Assistant Add-Ons.”
No results found in “Home Assistant Community Add-ons.”
No results found in “NetDaemon add-on.”

This is in HACs under Automation. Make sure AppDaemon and NetDaemon are tick marked. Search for iTach.

I’m really sorry. I still don’t see it…
Its certainly not in Configuration>Automations
Could you be more specific on where to find it please.
Thanks a lot.

I’m a newbie to Home Assistant and hoping someone can give me some insight. I have ITach up and running and it controls my IR controlled lights no problem. Each light is setup as a switch and a simple click once turn on click again turn off works. But now I am trying to automate my Amps. I have retrieved the IR code for the amp and configurated an ON and OFF in configuration.yaml. I’m trying to add this to a card on the UI and while it does turn the amp ON, a second click does not turn it back off. How do I put logic behind a card (or switch) to have an ON/OFF functionality on a single button? thank you.

It is difficult to convert separate on and off commands to a single on/off toggle command if you have no state feedback to tell you if the amp is on or off. Particularly if the amp can be controlled by other remotes outside of Home Assistant.

Alternatives (best to worst):

  • If your amp has a network connection, see if there is an integration to control it over the network rather than IR.

  • Look for an IR power toggle command for your amp in online IR command databases. e.g. http://irdb.tk/find/ or http://www.remotecentral.com/cgi-bin/codes/ instead of the discrete on and off commands that you know already.

  • Work out some way to determine if your amp is on or off (e.g. a power monitoring smart plug). Then write a script to toggle the amp power depending on the state of this sensor.

  • Keep track of the state of your amplifier in an input boolean and hide all the other remote controls. Can still get out of sync with power loss / failed transmissions etc…

Or just use separate on and off buttons, which I realise is not what you asked for so is not on the list but it is the easiest solution.

Can you send a snippet of your config.yaml showing the code? Don’t forget your proper coding. It will inform you when you paste it. If its multiple lines put this on the first and last line by itself: ```

What brand of amp is it. Are you trying to use the IR IN on the amp? I had issues with amps trying to use the IR in. BTW… The iTach, while I love them, is problematic on HA - i keep my Vera’s for this very reason and have HA call Vera.

I’ve gone right off IR control in Home Assistant. No state feedback is really annoying.

I’m waiting for a pull request to be merged for the Panasonic TV integration to support network control and then I can get rid of both my iTachs altogether. To do this I had to throw a bit of money at the solution. New networked Receiver/Amps, DIY ESPhome RS232 projector control (untested as yet but I have confidence), reverse cycle aircon network board, better smart lights etc…

I haven’t been successful, but only spent prolly 2 hours working on it. I know its an HA thing, just over trouble shooting and found a workaround… I set the amps to turn on/off when it detects sound and just turn on/off the AV via HA (Marantz via IP). The amps are Eclipse. I forget the master sell the guys got them from.

I downloaded another iTach package from HACs. Supposedly combines GC100s. I have a lot of those as well controlling gates, pergola, pool etc… That’s another pia to keep working as well as its not built into core and after each necessary update have to change out some of the python libraries.

Yea, the DIY automation projects can creep… I ended up upgrading to all managed switches (all unifi cept mikrotik gateway) and new APs and putting everything on their own VLANs, changing out 14 cameras, adding Blue Iris all bundled into HA. That and movie poster collecting was my Covid era project.

If anyone is interested… The HookUp on YouTube is hard to beat for a lot home automation and research on latest brands.

1 Like

Thank you guys. I found a POWER TOGGLE IR command and that has fixed the on/off. I wish there was an integration for this amp but alas I’m stuck with IR for now. The Amp is an Emotiva XMC-1 that I am currently controlling through iRule. However, since iRule is no longer supported I’m trying to move away from it. My next issue is getting Volume Up/Down to work, possibly via a slider. Of course I have the IR commands already added to configuration.yaml and I’ve been searching for a media player that might work but I can’t see how to modify any of them to work. Do you have any suggestions on how I could manage a volume control through the Itach? Thx!

edit: No I’m not using IR in, just a stick on IR eye on the front of the amp.

You are really asking the tricky questions today. :slight_smile:

Unfortunately, again, without feedback of where the volume is set on the amp it is next to impossible to control the volume with an input_number. Up and Down buttons are the best you can do.

lol ok thanks. I’ll give the individual buttons a go and see how that works.

I loved iRule… Actually still use it for a couple of things I haven’t moved over to HA. iRule was the bomb until they sold out.

good to hear your getting it all to work. Look into the broadlink rm pro as well. I haven’t bought one yet, but I know a lot of people that use them. Might be a solution for you.

Hi @thedishking you are the first post that I’ve found stating that you got an iTach IP2SL (Serial not Wifi) working with HA.

I have and old AV unit that I currently control via an iTach IP2SL and an iOS app (iRule) and it works perfectly. I would now like to integrate the IP2SL unit into HA and I haven’t found any solutions yet. This is the last integration I need to complete HA and I’ve been trying to find a solution for weeks.

Would you mind sharing your solution?

Hi Doolio,

iRule was awesome! I did a lot with that.

The main goal was to get IR working as I had issues with the Global Cache integration.

The IR commands need to be in Global Cache format.

My solution starts at a custom version of netcat that another person was kind enough to share:

static-arm-bins/nc-arm-static at f46fded7181694862fec4d3a39ce41059e494a01 · therealsaumil/static-arm-bins · GitHub

Details of this file can be found here:

Keep in mind - this is Arm (Pi / Blue) architecture.

With this custom version of netcat installed in the \config\ directory, I call for it via shell commands.

In configuration.yaml, I call for a separate file that only carries Global Cache commands:

# Example configuration.yaml entry
shell_command: !include shell.yaml

Here is an example of what goes inside shell.yaml to send commands IR to an Insignia TV:

#insignia_tv_zn_1 - zone 1 - GC2 192.168.0.60 - ir output 1 

insignia_tv_zn_1_power_on: echo -e "sendir,1:1,1,38000,1,69,343,172,21,22,21,65,21,65,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21,65,21,22,21,22,21,22,21,22,21,22,21,65,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21,22,21,65,21,65,21,65,21,65,21,22,21,22,21,65,21,1673,343,86,21,3732\x0d" | /config/nc 192.168.0.60 4998 -w1

insignia_tv_zn_1_power_off: echo -e "sendir,1:1,1,38000,1,69,343,172,21,22,21,65,21,65,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21,65,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,65,21,65,21,22,21,65,21,65,21,65,21,65,21,65,21,22,21,22,21,65,21,1673,343,86,21,3732\x0d" | /config/nc 192.168.0.60 4998 -w1

Here is an example of sending an IP command to port 23 on a device:

# hdmi_6x6_matrix_switch 192.168.0.81

hdmi_6x6_input_1_output_1: echo -e "x1AVx1\x0d" | /config/nc 192.168.0.81 23 -w1

hdmi_6x6_input_2_output_1: echo -e "x2AVx1\x0d" | /config/nc 192.168.0.81 23 -w1

Sending RS232 is the same; only the port has changed for the syntax of the command.
Here is an example of sending RS232 commands via a Global Cache IP2SL device:

#  hdmi_8x8_matrix_switch 192.168.0.68
  hdmi_8x8_input_1_output_1: echo -e "x1AVx1\x0d" | /config/nc 192.168.0.68 4999 -w1
  hdmi_8x8_input_2_output_1: echo -e "x2AVx1\x0d" | /config/nc 192.168.0.68 4999 -w1

Here is a link to a large file that contains both IR and RS232:
shell.yaml/shell.yaml at 742eed43ceb45a3e6afd18b16deff47c1cddd2bb · thedishking/shell.yaml · GitHub

Lastly, here is a link to github where we have had other discussion on this topic:

iTach remote device not starting correctly · Issue #17744 · home-assistant/core · GitHub

Hope you and others find this helpful.

Hi All, just a follow up that thanks to @thedishking I found a solution:

I realized that in iTest I was only successful communicating with my IP2SL when I was connected with Telnet.

Lightning struck and I realized that HA has a Telnet service. From there it literally took me minutes to write some code to send serial commands with the Telnet service to the IP2SL/Elan. I have it all set up and running perfectly. I even exposed it to Alexa and can now control it with voice commands.

1 Like

Hello,
I followed the instructions and the config options go gray out.
Does this still work?