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/
Domoticz controlling an Global Cache IP2IR using Wire
Moderator: leecollings
-
- Posts: 69
- Joined: Tuesday 15 April 2014 17:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Vaassen
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
Hello boudicca,
can you tell me more how you managed get it to work with domoticz?
What for script do you exucute?
can you tell me more how you managed get it to work with domoticz?
What for script do you exucute?
-
- Posts: 279
- Joined: Sunday 03 January 2016 14:55
- Target OS: -
- Domoticz version:
- Location: Sweden
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
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
-
- Posts: 4
- Joined: Saturday 20 February 2016 12:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
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.
#!/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.
-
- Posts: 5
- Joined: Friday 11 November 2016 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.6707
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
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.
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)
-
- Posts: 16
- 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
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.
Saved me a lot of time getting my irtach wifi to work.
Can report that this working on cubietruck platform as well.
-
- Posts: 4
- Joined: Friday 08 December 2017 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8805
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
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:
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:
Can someone tell me what I'm doing wrong?
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
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
-
- Posts: 4
- Joined: Friday 08 December 2017 23:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8805
- Contact:
Re: Domoticz controlling an Global Cache IP2IR using Wire
I do not know how I got it, but now I get the following error:
In a previous message here the following is written:
Code: Select all
Error: Error executing script command (/home/pi/domoticz/scripts/script_soundbar.sh). returned: 256
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.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.
Who is online
Users browsing this forum: No registered users and 0 guests