Domoticz controlling an Global Cache IP2IR using Wire

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
Post Reply
boudicca
Posts: 27
Joined: Saturday 03 January 2015 21:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Domoticz controlling an Global Cache IP2IR using Wire

Post by boudicca » Friday 04 March 2016 11:07

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/

Steven84
Posts: 95
Joined: Tuesday 15 April 2014 17:05
Target OS: Raspberry Pi
Domoticz version:
Location: Vaassen
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by Steven84 » Thursday 16 June 2016 17:25

Hello boudicca,

can you tell me more how you managed get it to work with domoticz?
What for script do you exucute?

Flopp
Posts: 343
Joined: Sunday 03 January 2016 15:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by Flopp » Tuesday 29 November 2016 19:18

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

apt80
Posts: 4
Joined: Saturday 20 February 2016 13:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by apt80 » Monday 02 January 2017 16:46

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.

aram
Posts: 5
Joined: Friday 11 November 2016 21:57
Target OS: Raspberry Pi
Domoticz version: V3.6707
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by aram » Monday 20 February 2017 12:48

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.
Raspberry PI2 + Aeon Stick Gen5, Motion Sensor, Energie Meter 2e + Fibaro Switches, Motion Sensors, Wall plugs + Everspring Flood Sensors+ RFLink + RFXcom + Oregon temp\hum + Soil sensor + Global Cache + Wemo + Mysensors ESP WiFi Gateway (sensors in dev)

SystemLord
Posts: 19
Joined: Sunday 28 June 2015 17:19
Target OS: NAS (Synology & others)
Domoticz version: Stable
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by SystemLord » Thursday 23 February 2017 15:25

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.

ybru
Posts: 4
Joined: Saturday 09 December 2017 0:31
Target OS: Raspberry Pi
Domoticz version: 3.8805
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by ybru » Sunday 14 January 2018 20:48

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?

ybru
Posts: 4
Joined: Saturday 09 December 2017 0:31
Target OS: Raspberry Pi
Domoticz version: 3.8805
Contact:

Re: Domoticz controlling an Global Cache IP2IR using Wire

Post by ybru » Saturday 20 January 2018 11:46

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests