Control Your Harmony Hub with Domoticz (RaspberryPi (Linux))
Moderator: leecollings
-
- Posts: 18
- Joined: Friday 19 September 2014 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
I'm using the latest build (I have V1.2015 in the left hand corner) that I installed through the update now function. It even updates the current state so that's really nice. Would like to get my hue working but that seems to be difficult for a beginner ultra noob like me
Thanks for the tip!
Thanks for the tip!
-
- Posts: 28
- Joined: Tuesday 22 July 2014 18:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Thanks for the reply...apologies if I'm being a bit stupid but I can't see a mention of this script in the wiki...http://www.domoticz.com/wiki/Harmony_Hub_Controlmbliek wrote:
Domoticz should update the switch when using the remote. Take a look at the wiki page again.
There is a script that checked every 10 min for an active activity.
Am I looking in the right place mate?
Would it be possible to increase the frequency of the script? Or is it 10 minutes for a reason?
- mbliek
- Posts: 194
- Joined: Friday 12 July 2013 14:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: the Netherlands
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Oops, sorry.gb160 wrote: Thanks for the reply...apologies if I'm being a bit stupid but I can't see a mention of this script in the wiki...http://www.domoticz.com/wiki/Harmony_Hub_Control
Am I looking in the right place mate?
Would it be possible to increase the frequency of the script? Or is it 10 minutes for a reason?
I'm using that script on my installation.
Didn't wrote it in the wiki.
When I get back home I will post it.
You should be able to do it more that once per 10 min.
But it will be an load for the pi.
Op zoek naar een Domoticz Start Set?
-
- Posts: 28
- Joined: Tuesday 22 July 2014 18:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Thanks...it's appreciatedmbliek wrote:Oops, sorry.gb160 wrote: Thanks for the reply...apologies if I'm being a bit stupid but I can't see a mention of this script in the wiki...http://www.domoticz.com/wiki/Harmony_Hub_Control
Am I looking in the right place mate?
Would it be possible to increase the frequency of the script? Or is it 10 minutes for a reason?
I'm using that script on my installation.
Didn't wrote it in the wiki.
When I get back home I will post it.
You should be able to do it more that once per 10 min.
But it will be an load for the pi.
I'll cancel my appointment with my optician!!
- mbliek
- Posts: 194
- Joined: Friday 12 July 2013 14:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: the Netherlands
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
As promised. here is the script:
I added this line to the crontab:
*/10 * * * * /home/pi/domoticz/scripts/harmony.sh
This will execute the script every 10 min, you can do it more often.
The script checks which activity is active and then switch the dummy switch on.
When the switch is already on, it does nothing...
All those echo's where only for me to test, not really needed
I added this line to the crontab:
Code: Select all
crontab -e
This will execute the script every 10 min, you can do it more often.
The script checks which activity is active and then switch the dummy switch on.
When the switch is already on, it does nothing...
All those echo's where only for me to test, not really needed
Code: Select all
#!/bin/bash
DOMO_IP="*******" # Domoticz IP Address
DOMO_PORT="*******" # Domoticz Port
activity=`/home/pi/HarmonyHubControl/HarmonyHubControl email password harmony_IP get_current_activity_id | awk -F: '{print $2}' | awk '{print $1}' | awk "NR==4{print;exit}"`
if [ "$activity" = "5766677" ] ; then #TV
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=453" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "TV al ingeschakeld"
else
echo "TV ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=453&switchcmd=On"
fi
elif [ "$activity" = "5766811" ] ; then #Apple TV
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=452" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "Apple TV al ingeschakeld"
else
echo "Apple TV ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=452&switchcmd=On"
fi
elif [ "$activity" = "5766789" ] ; then #Bioscoop
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=454" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "Bioscoop al ingeschakeld"
else
echo "Bioscoop ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=454&switchcmd=On"
fi
elif [ "$activity" = "7695331" ] ; then #Muziek
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=455" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "Muziek al ingeschakeld"
else
echo "Muziek ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=455&switchcmd=On"
fi
elif [ "$activity" = "5766679" ] ; then #CDs
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=456" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "CDs al ingeschakeld"
else
echo "CDs ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=456&switchcmd=On"
fi
elif [ "$activity" = "5766675" ] ; then #BR
ccurl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=457" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "BluRay al ingeschakeld"
else
echo "BluRay ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=457&switchcmd=On"
fi
elif [ "$activity" = "5766732" ] ; then #WDTV
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=458" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "WDTV al ingeschakeld"
else
echo "WDTV ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=458&switchcmd=On"
fi
elif [ "$activity" = "5766676" ] ; then #Radio
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=459" | grep "Status" | grep "On" > /dev/null
if [ $? -eq 0 ] ; then
echo "Radio al ingeschakeld"
else
echo "Radio ingeschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=459&switchcmd=On"
fi
elif [ "$activity" = "-1" ] ; then #Uit
curl -s "http://$DOMO_IP:$DOMO_PORT/json.htm?type=devices&rid=474" | grep "Status" | grep "Off" > /dev/null
if [ $? -eq 0 ] ; then
echo "AV al uitgeschakeld"
else
echo "AV uiteschakeld"
# Send data
curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=switchlight&idx=474&switchcmd=Off"
fi
fi
Op zoek naar een Domoticz Start Set?
-
- Posts: 28
- Joined: Tuesday 22 July 2014 18:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Thanks , will try this at the weekend, do I only need to edit the activity codes? (Obviously the IP address and port as well)
- mbliek
- Posts: 194
- Joined: Friday 12 July 2013 14:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: the Netherlands
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Also the idx of the switches and add or remove some switches. Depending on how many activists you have.
Op zoek naar een Domoticz Start Set?
-
- Posts: 28
- Joined: Tuesday 22 July 2014 18:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Finally got the chance to try this and it works well, thanks for the script......I've managed to increase the frequency to once per minute, with only a slight increase to the load on my pi.mbliek wrote:Also the idx of the switches and add or remove some switches. Depending on how many activists you have.
I will stick with this until the native support for the pi actually works reliably.
-
- Posts: 4
- Joined: Monday 23 February 2015 20:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.0.2284
- Location: NL
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
I've been playing with HarmonyHub control. I couldn't find the location where it was included in the Domoticz files so I installed it seperately according to the Domoticz wiki. I know domoticz isn't ready yet for commands but this should be possible in the future
Then I issues the command:
This resulted in a list of devices:
I wrote down the device Id of my Marantz receiver 20672634
Then I listed the configuration of my Harmony Hub Ultimate
And got the following (part of it)
Then I looked up the commands of the Marantz receiver by scanning on the device ID.
and using the commands
"Mute"
"VolumeDown"
"VolumeUp"
you can assemble the following commands:
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "Mute"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeDown"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeUp"
And it works perfectly!
Then I issues the command:
Code: Select all
./HarmonyHubControl email password hub ipaddress password list_devices
Code: Select all
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Devices Controllable via Harmony :
20686775 - Device 1
20779809 - Device 2
20686760 - Device 3
20671327 - Device 4
21160666 - Device 5
20674970 - Device 6
20671404 - Device 7
20672634 - Marantz AV Receiver
Then I listed the configuration of my Harmony Hub Ultimate
Code: Select all
./HarmonyHubControl email password hub ipaddress password get_config
Code: Select all
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Logitech Harmony Configuration :
"activity":[{"suggestedDisplay":"Default","label":"Raise Screen","id":"13178772","activityTypeDisplayName":"Default","controlGroup":[{"name":"TransportBasic","function":[{"action":"{\"command\":\"Stop\",\"type\":\"IRCommand\",\"deviceId\":\"20674970\"}","name":
"Stop","label":"Stop"}]}],"sequences":[],"activityOrder":4,"isTuningDefault":false,"fixit":{"20686775":{"id":"20686775","isRelativeInput":true,"Power":"Off"},"20779809":{"id":"20779809","isRelativePower":true,"Power":"Off"},"25078187":{"id":"25078187","isRelati
vePower":true,"Power":"Off"},"20686760":{"id":"20686760","Power":"Off"},"20671327":{"id":"20671327","Power":"Off"},"21160666":{"id":"21160666","isRelativePower":true,"Power":"Off"},"20672634":{"id":"20672634","Power":"Off"},"20671404":{"id":"20671404","Power":"
Off"},"20674970":{"id":"20674970","isManualPower":true}},"type":"VirtualGeneric","icon":"userdata: 0x4454c8","baseImageUri":"https:\/\/rcbu-test-ssl-amr.s3.amazonaws.com\/"},{"suggestedDisplay":"Default","label":"Lower screen","id":"13178753","activityTypeDispl
ayName":"Default","controlGroup":[{"name":"TransportBasic","function":[{"action":"{\"command\":\"Stop\",\"type\":\"IRCommand\",\"deviceId\":\"20674970\"}","name":"Stop","label":"Stop"}]}],"sequences":[],"activityOrder":3,"isTuningDefault":false,"fixit":{"206867
75":{"id":"20686775","isRelativeInput":true,"Power":"Off"},"20779809":{"id":"20779809","isRelativePower":true,"Power":"Off"},"25078187":{"id":"25078187","isRelativePower":true,"Power":"Off"},"20686760":{"id":"20686760","Power":"Off"},"20671327":{"id":"20671327"
,"Power":"Off"},"21160666":{"id":"21160666","isRelativePower":true,"Power":"Off"},"20672634":{"id":"20672634","Power":"Off"},"20671404":{"id":"20671404","Power":"Off"},"20674970":{"id":"20674970","isManualPower":true}},"type":"VirtualGeneric","icon":"userdata:
0x4454c8","baseImageUri":"https:\/\/rcbu-test-ssl-amr.s3.amazonaws.com\/"},{"suggestedDisplay":"ListenToSonos","label":"Sonos","id":"12823332","activit
Code: Select all
{"name":"Volume","function":[{"action":"{\"command\":\"Mute\",\"type\":\"IRCommand\",\"deviceId\":\"20672634\"}","name":"Mute","label":"Mute"},{"action":"{\"command\":\"VolumeDown\",\"type\":\"IRCommand\",\"deviceId\":\"20672634\"}","name":"VolumeDown","label":"Volume Down"},{"action":"{\"command\":\"VolumeUp\",\"type\":\"IRCommand\",
\"deviceId\":\"20672634\"}","name":"VolumeUp","label":"Volume Up"}]},
"Mute"
"VolumeDown"
"VolumeUp"
you can assemble the following commands:
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "Mute"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeDown"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeUp"
And it works perfectly!
-
- Posts: 2
- Joined: Monday 16 March 2015 13:33
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
This looks great. I have just bought Harmony Hub and see activities in Domoticz on my Synology.
However I have never tried a script.
If you would like to call Volume up command, how should I creat it:
- by creating Dummy switch with VolumeUp and Execute script which will contain:
./HarmonyHubControl email password hub ipaddress password issue_device_command 'activityid number' "VolumeUp" ?
what is the proper syntax for using this script?
Thanks for help.
However I have never tried a script.
If you would like to call Volume up command, how should I creat it:
- by creating Dummy switch with VolumeUp and Execute script which will contain:
./HarmonyHubControl email password hub ipaddress password issue_device_command 'activityid number' "VolumeUp" ?
what is the proper syntax for using this script?
Thanks for help.
-
- Posts: 228
- Joined: Thursday 21 May 2015 9:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Is it also possible to control it the other way round? So when giving a command on the remote to control the domoticz?
The reason I want to control the light with the Harmony remote. Then I can get rid of the JB light manager.
I know the Harmony sends out IR. But is it possible to catch the RF from Harmony? Or is that too simple thinking.
The reason I want to control the light with the Harmony remote. Then I can get rid of the JB light manager.
I know the Harmony sends out IR. But is it possible to catch the RF from Harmony? Or is that too simple thinking.
- mbliek
- Posts: 194
- Joined: Friday 12 July 2013 14:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: the Netherlands
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
You should can receive the IR from the harmony with a IR receiver connected to you pi. But it should be in range.
You can turn light on/off when an activity is started with the harmony. Domoticz knows when it has started and could execute a script for example.
You can turn light on/off when an activity is started with the harmony. Domoticz knows when it has started and could execute a script for example.
Op zoek naar een Domoticz Start Set?
-
- Posts: 1
- Joined: Monday 01 June 2015 12:55
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Bought one few days back so I hope you can help me if I get stuck ..
Cheers
Air Conditioning Service Phoenix Company
Cheers
Air Conditioning Service Phoenix Company
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Hi all,
Just read through this and it's something I might be interested in. Just want to clarify what this project actually allows you to do..
My setup:- domoticz controls house, if I select watch Sky TV in domoticz then it then turns everything on - I have an SQ Blaster for the IR stuff. I was hoping to get a harmony touch remote but realised while it's great for IR stuff it won't be able to tell domoticz to turn everything on.
Am I right in thinking if I had the hub as well as the Touch I'd be able to setup the touch to "watch Sky TV" and it would be ale to send the request to the hub which would tell domoticz to start an event to turn everything on and then the touch remote would be fine for IR commands from then on like changing volume/channels etc...
Does that make sense. It's just to make my setup more wife friendly lol. Thank you
Just read through this and it's something I might be interested in. Just want to clarify what this project actually allows you to do..
My setup:- domoticz controls house, if I select watch Sky TV in domoticz then it then turns everything on - I have an SQ Blaster for the IR stuff. I was hoping to get a harmony touch remote but realised while it's great for IR stuff it won't be able to tell domoticz to turn everything on.
Am I right in thinking if I had the hub as well as the Touch I'd be able to setup the touch to "watch Sky TV" and it would be ale to send the request to the hub which would tell domoticz to start an event to turn everything on and then the touch remote would be fine for IR commands from then on like changing volume/channels etc...
Does that make sense. It's just to make my setup more wife friendly lol. Thank you
- gdisselkoen
- Posts: 5
- Joined: Monday 19 May 2014 23:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Not sure what you want to do.
On the Harmony Touch you can create activities that turns on all devices needed to "watch Sky TV" (e.g. television, sat receiver, AV receiver).
On the Harmony Hub you can create also activities. If you connect your Harmony Touch with the Harmony Hub, all activities from The Touch are also available on the Hub and you can add 15 devices instead of 8. You can add also home devices to the Hub\Touch.
When you add a Harmony Hub to Domoticz, all configured activities are created in Domoticz.
With blockly or scripts you can create actions based on the status of an activity.
In my case, I have created an blockly script that dims several lamps when the activity "Watch TV" or my Home Theater PC is turned on. And when the activity is stopped, the lights will go back to the normal level.
With the HarmonyHubControl script you can add additional options to Domoticz to control your devices, like turning off the sound, switch channels, and so on.
You can also use a scene in Domoticz to turn off all the lights whe you go to bed and also switch off your activity in the Harmony Hub.
BTW The Harmony Hub not only supports IR, it also supports Bluetooth (game consoles) and WiFi. You can the Harmony Hub let do a scan for devices that can be controled by the hub.
Guus Disselkoen
On the Harmony Touch you can create activities that turns on all devices needed to "watch Sky TV" (e.g. television, sat receiver, AV receiver).
On the Harmony Hub you can create also activities. If you connect your Harmony Touch with the Harmony Hub, all activities from The Touch are also available on the Hub and you can add 15 devices instead of 8. You can add also home devices to the Hub\Touch.
When you add a Harmony Hub to Domoticz, all configured activities are created in Domoticz.
With blockly or scripts you can create actions based on the status of an activity.
In my case, I have created an blockly script that dims several lamps when the activity "Watch TV" or my Home Theater PC is turned on. And when the activity is stopped, the lights will go back to the normal level.
With the HarmonyHubControl script you can add additional options to Domoticz to control your devices, like turning off the sound, switch channels, and so on.
You can also use a scene in Domoticz to turn off all the lights whe you go to bed and also switch off your activity in the Harmony Hub.
BTW The Harmony Hub not only supports IR, it also supports Bluetooth (game consoles) and WiFi. You can the Harmony Hub let do a scan for devices that can be controled by the hub.
Guus Disselkoen
A home is a home when it's an automated home.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Thank you for your reply. I think I can do what I'd like with this setup.gdisselkoen wrote:Not sure what you want to do.
On the Harmony Touch you can create activities that turns on all devices needed to "watch Sky TV" (e.g. television, sat receiver, AV receiver).
On the Harmony Hub you can create also activities. If you connect your Harmony Touch with the Harmony Hub, all activities from The Touch are also available on the Hub and you can add 15 devices instead of 8. You can add also home devices to the Hub\Touch.
When you add a Harmony Hub to Domoticz, all configured activities are created in Domoticz.
With blockly or scripts you can create actions based on the status of an activity.
In my case, I have created an blockly script that dims several lamps when the activity "Watch TV" or my Home Theater PC is turned on. And when the activity is stopped, the lights will go back to the normal level.
With the HarmonyHubControl script you can add additional options to Domoticz to control your devices, like turning off the sound, switch channels, and so on.
You can also use a scene in Domoticz to turn off all the lights whe you go to bed and also switch off your activity in the Harmony Hub.
BTW The Harmony Hub not only supports IR, it also supports Bluetooth (game consoles) and WiFi. You can the Harmony Hub let do a scan for devices that can be controled by the hub.
Guus Disselkoen
So basically I can have an activity called Watch Virgin on the remote/touch and when I select that it will switch a switch in domoticz that in turn sets everything up to watch TV (I currently have switches in domoticz called watch TV for example which will switch everything on and switch channels) so I only need the touch to switch a switch and I can use blocky to do the rest.
Would that be possible?
-
- Posts: 3
- Joined: Sunday 06 September 2015 6:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Hi,
Ive got this 90% working, but when I press the buttons I get Unorthirized User
If I go to the HarmonyHub directory and run the command's I get a Success but not if its run from an other directory. Can you help?
Thanks
pi@MediaPI ~/HarmonyHubControl $ sudo ./HarmonyHubControl xxxxx xxxxx 192.168.2.1xx list_devices
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Devices Controllable via Harmony :
15980405 - Panasonic TV
20291062 - Amazon Fire TV
27156028 - Mitsubishi Climate Control
15978741 - Arcam AV Receiver
pi@MediaPI ~/HarmonyHubControl $ cd ..
pi@MediaPI ~ $ sudo ./HarmonyHubControl/HarmonyHubControl xxxxx xxxxx 192.168.2.1xx list_devices
LOGITECH WEB SERVICE LOGIN : FAILURE
ERROR : harmonyWebServiceLogin : Logitech web service response does not contain a login authorization token
Ive got this 90% working, but when I press the buttons I get Unorthirized User
If I go to the HarmonyHub directory and run the command's I get a Success but not if its run from an other directory. Can you help?
Thanks
pi@MediaPI ~/HarmonyHubControl $ sudo ./HarmonyHubControl xxxxx xxxxx 192.168.2.1xx list_devices
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Devices Controllable via Harmony :
15980405 - Panasonic TV
20291062 - Amazon Fire TV
27156028 - Mitsubishi Climate Control
15978741 - Arcam AV Receiver
pi@MediaPI ~/HarmonyHubControl $ cd ..
pi@MediaPI ~ $ sudo ./HarmonyHubControl/HarmonyHubControl xxxxx xxxxx 192.168.2.1xx list_devices
LOGITECH WEB SERVICE LOGIN : FAILURE
ERROR : harmonyWebServiceLogin : Logitech web service response does not contain a login authorization token
-
- Posts: 3
- Joined: Sunday 06 September 2015 6:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
I got it going by copying the harmony token into the domoticz folder
-
- Posts: 3
- Joined: Monday 28 September 2015 19:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
First of all hello from a frenchie, so sorry if my English is not good enough.
I'm using domoticz to control my harmony hub. I have a problem with the transmission of order. I use srcipt in php or bash like under but my hub receive to much information. Each order is receive 2 or 3 time. It doesn't matter for the sound level but it is more anoying with channel flick.
#!/bin/bash
/home/pi/harmony/HarmonyHubControl email login ip issue_device_command 27244186 "VolumeDown"
or in php
<?php
shell_exec('./HarmonyHubControl email login ip issue_device_command 27244186 "ChannelUp"');
?>
If I look the logs in domoticz it seems that there is a problem:
2015-09-28 20:22:55.139 (baisser_son_canal) Lighting 1 (baisser son canal)
2015-09-28 20:22:55.872 Executing script: /home/pi/domoticz/scripts/baisser_volume.sh
2015-09-28 20:22:57.206 Error: SQL Query("SELECT ID, SceneType, ListenCmd FROM Scenes WHERE (HardwareID=23 AND DeviceID='65' AND Unit=1 AND Type=16 AND SubType=0)") : no such column: ListenCmd
2015-09-28 20:22:57.206 (baisser_son_canal) Lighting 1 (baisser son canal)
Thanks
I'm using domoticz to control my harmony hub. I have a problem with the transmission of order. I use srcipt in php or bash like under but my hub receive to much information. Each order is receive 2 or 3 time. It doesn't matter for the sound level but it is more anoying with channel flick.
#!/bin/bash
/home/pi/harmony/HarmonyHubControl email login ip issue_device_command 27244186 "VolumeDown"
or in php
<?php
shell_exec('./HarmonyHubControl email login ip issue_device_command 27244186 "ChannelUp"');
?>
If I look the logs in domoticz it seems that there is a problem:
2015-09-28 20:22:55.139 (baisser_son_canal) Lighting 1 (baisser son canal)
2015-09-28 20:22:55.872 Executing script: /home/pi/domoticz/scripts/baisser_volume.sh
2015-09-28 20:22:57.206 Error: SQL Query("SELECT ID, SceneType, ListenCmd FROM Scenes WHERE (HardwareID=23 AND DeviceID='65' AND Unit=1 AND Type=16 AND SubType=0)") : no such column: ListenCmd
2015-09-28 20:22:57.206 (baisser_son_canal) Lighting 1 (baisser son canal)
Thanks
-
- Posts: 3
- Joined: Monday 28 September 2015 19:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Control Your Harmony Hub with Domoticz (RaspberryPi (Lin
Here is the solution. I modified the propertie of the command in myharmony config. By default the order are send two time. I adjust to one time and all is working well.
Who is online
Users browsing this forum: No registered users and 1 guest