<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Harmony_Hub_Control</id>
	<title>Harmony Hub Control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Harmony_Hub_Control"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Harmony_Hub_Control&amp;action=history"/>
	<updated>2026-09-18T22:42:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Harmony_Hub_Control&amp;diff=2424&amp;oldid=prev</id>
		<title>CodeItAway: Added a link to the native harmony hub wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Harmony_Hub_Control&amp;diff=2424&amp;oldid=prev"/>
		<updated>2014-09-07T12:15:05Z</updated>

		<summary type="html">&lt;p&gt;Added a link to the native harmony hub wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide describes how to control your Harmony Hub with Domoticz.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Since version 1.1956 Domoticz has native support for the [[Harmony_Hub]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Goal==&lt;br /&gt;
The goal is to control your Harmony Hub with Domoticz using Dummy switches.&lt;br /&gt;
&lt;br /&gt;
== Components used ==&lt;br /&gt;
* Domoticz&lt;br /&gt;
* C++ Application (HarmonyHubControl)&lt;br /&gt;
* [http://www.logitech.com/nl-nl/product/harmony-ultimate-hub Harmony Hub]&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
* Raspberry Pi running Debian Wheezy&lt;br /&gt;
* Running Domoticz installation&lt;br /&gt;
* Dummy switches activated in Domoticz&lt;br /&gt;
* [http://www.logitech.com/nl-nl/product/harmony-ultimate-hub Harmony Hub]&lt;br /&gt;
&lt;br /&gt;
== Needed information from Harmony Hub ==&lt;br /&gt;
* IP address&lt;br /&gt;
* Username (email address)&lt;br /&gt;
* Password&lt;br /&gt;
&lt;br /&gt;
== Install additional software on your Pi ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[https://sourceforge.net/projects/harmonyhubcontrol/?source=navbar HarmonyHubControl]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
HarmonyHubControl is software written in C++ and is communicating with the Logitech servers to control your Harmony Hub.&lt;br /&gt;
&lt;br /&gt;
Login to your Raspberry and issue:&lt;br /&gt;
 git clone git://git.code.sf.net/p/harmonyhubcontrol/code harmonyhubcontrol-code&lt;br /&gt;
Rename the folder for easy using:&lt;br /&gt;
 mv harmonyhubcontrol-code HarmonyHubControl&lt;br /&gt;
Go to the HarmonyHubControl folder:&lt;br /&gt;
 cd HarmonyHubControl&lt;br /&gt;
Compile the application:&lt;br /&gt;
 make HarmonyHubControl&lt;br /&gt;
&lt;br /&gt;
== Using the application ==&lt;br /&gt;
===Testing the application===&lt;br /&gt;
First you should issue this command:&lt;br /&gt;
 ./HarmonyHubControl&lt;br /&gt;
The output should be this:&lt;br /&gt;
 Syntax:&lt;br /&gt;
 HarmonyHubControl.exe [email] [password] [harmony_ip] [command (optional)]&lt;br /&gt;
    where command can be any of the following:&lt;br /&gt;
        list_activities&lt;br /&gt;
        get_current_activity_id&lt;br /&gt;
        start_activity [ID]&lt;br /&gt;
        issue_device_command [deviceId] [command]&lt;br /&gt;
        list_devices&lt;br /&gt;
        get_config&lt;br /&gt;
To get all your activities issue:&lt;br /&gt;
 ./HarmonyHubControl [email] [password] [harmony_ip] list_activities&lt;br /&gt;
You will get something like this:&lt;br /&gt;
 LOGITECH WEB SERVICE LOGIN     : SUCCESS&lt;br /&gt;
 HARMONY COMMUNICATION LOGIN    : SUCCESS&lt;br /&gt;
 HARMONY COMMAND SUBMISSION     : SUCCESS&lt;br /&gt;
 PARSE ACTIVITIES AND DEVICES   : SUCCESS&lt;br /&gt;
 &lt;br /&gt;
 Activities Available via Harmony : &lt;br /&gt;
 &lt;br /&gt;
 Apple TV - 5766811&lt;br /&gt;
 ......&lt;br /&gt;
Launch one of the activities by:&lt;br /&gt;
 ./HarmonyHubControl [email] [password] [harmony_ip] start_activity [ID]&lt;br /&gt;
===Using the application within Domoticz.===&lt;br /&gt;
To use this application within Domoticz you have to add a Dummy switch to launch the application.&amp;lt;br&amp;gt;&lt;br /&gt;
In this example we will only add two switches to control and one to switch off.&lt;br /&gt;
====Dummy Switches====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;These names are only examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Add 3 dummy switches (on/off)&amp;lt;br&amp;gt;&lt;br /&gt;
One called AV control (To switch off everything)&amp;lt;br&amp;gt;&lt;br /&gt;
One called TV (to control the activity Watch TV)&amp;lt;br&amp;gt;&lt;br /&gt;
One called DVD (to control the activity Watch DVD)&amp;lt;br&amp;gt;&lt;br /&gt;
Get the ID&amp;#039;s of the switched.&amp;lt;br&amp;gt;&lt;br /&gt;
====domoticz_main====&lt;br /&gt;
Rename _domoticz_main (in /domoticz/scripts/) to domoticz_main if you haven&amp;#039;t done it already.&lt;br /&gt;
 mv _domoticz_main domoticz_main&lt;br /&gt;
Edit the file domoticz_main&lt;br /&gt;
 sudo nano domoticz_main&lt;br /&gt;
Add this to that file:&lt;br /&gt;
 //TV&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$device_id&amp;quot; = &amp;quot;1&amp;quot; ] ; then&lt;br /&gt;
  if [ &amp;quot;$status&amp;quot; = &amp;quot;On&amp;quot; ] ; then&lt;br /&gt;
      exec `home/pi/HarmonyHubControl/HarmonyHubControl [email] [password] [harmony_ip] start_activity [ID]` &amp;amp;&lt;br /&gt;
  fi&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 //DVD&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$device_id&amp;quot; = &amp;quot;2&amp;quot; ] ; then&lt;br /&gt;
  if [ &amp;quot;$status&amp;quot; = &amp;quot;On&amp;quot; ] ; then&lt;br /&gt;
      exec `home/pi/HarmonyHubControl/HarmonyHubControl [email] [password] [harmony_ip] start_activity [ID]` &amp;amp;&lt;br /&gt;
  fi&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 //AV control&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$device_id&amp;quot; = &amp;quot;3&amp;quot; ] ; then&lt;br /&gt;
  if [ &amp;quot;$status&amp;quot; = &amp;quot;Off&amp;quot; ] ; then&lt;br /&gt;
      exec `home/pi/HarmonyHubControl/HarmonyHubControl [email] [password] [harmony_ip] start_activity -1` &amp;amp;&lt;br /&gt;
  fi&lt;br /&gt;
 fi&lt;br /&gt;
Make domoticz_main executable:&lt;br /&gt;
 sudo chmod +x domoticz_main&lt;br /&gt;
====Sub/Slave Devices====&lt;br /&gt;
To control the switches we should make use of sub/slave.&amp;lt;br&amp;gt;&lt;br /&gt;
When pressing the TV switch the AV control will switch on also.&amp;lt;br&amp;gt;&lt;br /&gt;
When pressing the AV control switch to off the TV and DVD switches will also go off and everything will be switch off with the Harmony Hub.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Press edit on the AV control switch.&amp;lt;br&amp;gt;&lt;br /&gt;
Add TV and DVD as Sub/Slave Devices on the Edit page.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Now press TV and see whats happening, the activity watch TV should start and the switch AV control should did come on.&amp;lt;br&amp;gt;&lt;br /&gt;
When pressing the AV control Off all the activities should be stopt and the switch TV should go Off.&amp;lt;br&amp;gt;&lt;br /&gt;
====Discuss====&lt;br /&gt;
To discuss this, please use this [http://www.domoticz.com/forum/viewtopic.php?f=17&amp;amp;t=2014 forum topic]&lt;/div&gt;</summary>
		<author><name>CodeItAway</name></author>
	</entry>
</feed>