Page 1 of 1
Domoticz controlling an Global Cache IP2IR using Wire
Posted: Friday 04 March 2016 10:07
by boudicca
My fun with Domoticz / an Global Cache itach and some cheapo IR led lights using a super set of linux tools called Wire
https://mypocketfluff.wordpress.com/201 ... ir-reborn/
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Thursday 16 June 2016 17:25
by Steven84
Hello boudicca,
can you tell me more how you managed get it to work with domoticz?
What for script do you exucute?
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Tuesday 29 November 2016 18:18
by Flopp
I manage to make it working in command line and I will try to make a virtual button to send the command. I will update here
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Monday 02 January 2017 15:46
by apt80
Great find indeed. I created a virtual amplifier using a virtual selector switch (dummy selector switch switch). The different levels are named after the different inputs of my amp. On selecting an input an action is performed and each actions contains a reference to a shell script. E.g:
#!/bin/bash
/home/pi/domoticz/scripts/Wire/wircmd -i 192.168.178.27 -r SonyAmp -b Power
or
/home/pi/domoticz/scripts/Wire/wircmd -i 192.168.178.27 -r SonyAmp -b Tape1
The IR-codes are stored using the wire function in text files. This works well.
Once you have the virtual amp the thing can be used in scenes.
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Monday 20 February 2017 11:48
by aram
might be useful info:
if you are running domoticz on Raspberry pi and scripts are executed under "root" (not "pi" user), you will have to create config file for "wire" by running "sudo path/wire" and editing after wards wire.conf and remotes in /root/wired/ (/pi/wired/ settings will work from regular shell).
Otherwise you might be getting Error 256 when calling "wire" via bash script.
IR codes can be easily found here
https://irdb.globalcache.com/Home/Database
It takes max 5 minutes to convert them via excel to the format of "wire".
P.S.
Try to avoid spaces in button names. Replace them with underscore.
P.S.S.
It is fun to start the TV via Siri, change channels or control volume.
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Thursday 23 February 2017 14:25
by SystemLord
Thanks boudicca & aram for the info!
Saved me a lot of time getting my irtach wifi to work.
Can report that this working on cubietruck platform as well.
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Sunday 14 January 2018 19:48
by ybru
I managed to install everything via the link, but now I try to integrate this into domoticz.
I made a file soundbar.sh and put the following in it:
Code: Select all
#!/bin/bash
/home/pi/domoticz/scripts/Wire/wircmd -c 3 -i 192.168.1.54 -p 4998 -r Soundbar -b power
In the virtual switch I create the link to the soundbar.sh script.
The problem now is that I get the following error in the log of domoticz:
Code: Select all
Error: Error executing script command (/home/pi/domoticz/scripts/soundbar.sh). returned: 32512
Can someone tell me what I'm doing wrong?
Re: Domoticz controlling an Global Cache IP2IR using Wire
Posted: Saturday 20 January 2018 10:46
by ybru
I do not know how I got it, but now I get the following error:
Code: Select all
Error: Error executing script command (/home/pi/domoticz/scripts/script_soundbar.sh). returned: 256
In a previous message here the following is written:
might be useful info:
if you are running domoticz on Raspberry pi and scripts are executed under "root" (not "pi" user), you will have to create config file for "wire" by running "sudo path/wire" and editing after wards wire.conf and remotes in /root/wired/ (/pi/wired/ settings will work from regular shell).
Otherwise you might be getting Error 256 when calling "wire" via bash script.
Can someone help me with that because I do not understand much of what I have to do. I have already searched on this forum and google how I can do it but I do not find anything right back.