Page 1 of 9
Harmony support, new hardware?
Posted: Saturday 06 September 2014 13:46
by Derik
I had the Harmony working in this way:
http://www.domoticz.com/wiki/Harmony_Hub_Control
Now I read:
-- Implemented: Native Logitech Harmony support (thanks to CodeItAway!) --
Can someone explain to me the difference between the current way of Harmony.
And the new way Domoticz.
Even better explain how I need to set the settings
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 19:08
by CodeItAway
The new implentation doesn't require external programs or scripting. With this new Domoticz release you'll be able to switch activities and view the current activity (and act on it) within the Domoticz software.
To set it up:
You'll have to enter the following settings:
- Remote address. The ipaddress of the Logitech Harmony Hub
- Port: 5222 (if you haven't changed it)
- Username: The username (email address) you used for your HUB
- Password: The password for the HUB
When you have set everything up, you'll see a succesfull connection to the Harmony Hub in the log and the activities will be listed under devices.
I will create a wiki entry with more details/screenshots.
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 19:30
by Derik
Very very nice !!!!
works right ...
And say simple. bizarre !!
However, the but.
I hope you're going to mak a option to Modify the icons and the name
Now I have a lamp that my amplifier switches.

- ScreenShot040.jpg (26.53 KiB) Viewed 16137 times

- ScreenShot039.jpg (28.35 KiB) Viewed 16137 times
It can and does work, but it would be nicer if.......
THANKS !!!
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 19:33
by Pjedr
Nice, it works, found a missing function: Editing gives invalid on action (Moat begjinne mei http:// as script://)
So no rename and nu custom icon selectable.
In Domoticz Log 2 typos: "Restting" and "Logitecht" instead of Resetting and Logitech.
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 20:01
by CodeItAway
Thank you both for the feedback. I will look into it and create a patch with fixes for the admins.
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 20:05
by Derik
CodeItAway wrote:Thank you both for the feedback. I will look into it and create a patch with fixes for the admins.
Thanks for your great work!!!!!
Got you any more of these goodies in your mind?
HUE from philips?

Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 20:13
by Dynamic
Great functionality!
Found a bug though: in the on-action field there is a default value of "-1", resulting in an error while saving.
Re: Harmony support, new hardware?
Posted: Saturday 06 September 2014 20:54
by Derik
Got some errors....

- ScreenShot041.jpg (127.48 KiB) Viewed 16120 times
And it is not switching ...
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 2:14
by Pjedr
-1 Means turn current activity off, works ok over here.
In Harmony HUB only 1 activity can be active i think by design.
Isee another little typo: Harmoney typo should be Harmony
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 10:53
by markk
Does this mean it will now be possible for me to control my Harmony hub via Domoticz running on windows without having to shell out for Microsoft Visual Studio?
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 13:28
by CodeItAway
markk wrote:Does this mean it will now be possible for me to control my Harmony hub via Domoticz running on windows without having to shell out for Microsoft Visual Studio?
That's correct.
Pjedr wrote:
Isee another little typo: Harmoney typo should be Harmony
I can't find this typo. Other typos are corrected.
Dynamic wrote:Great functionality!
Found a bug though: in the on-action field there is a default value of "-1", resulting in an error while saving.
Found the cause of this bug. It is corrected in the lastest code. However the consequence will be that the devices need to be added again (will be done automatically) since the ID generating code is changed.
Derik wrote:Got some errors....
And it is not switching ...
I can't reproduce this. What did you do prior to this error? Ideally you should never see the message: Too many commands missed.
I have submitted a patch to the admins of Domoticz.
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 15:56
by pepijn
The new hardware gives a build error on Mac OS X, errno.h does not exists in asm. I created a symlink to solve the issue.
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 16:00
by gizmocuz
did you try with the 'latest' version ? (#1970) (i will stop updating now)
i can compile correctly on windows, raspberry and cubiboard
what should be changed to fix this ?
i do not see any include for errno.h
Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 16:03
by pepijn
Hi Rob, I will check this, I can't keep up with all the updates

Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 16:07
by gizmocuz
i know, there where a lot of them today
But i don't think any of the include files changed
the main problem is i think the implementation of a cSocket class, i dont like this, but it get's compiled now for the above systems.
Maybe i should turn on my mac again

i normaly use it only as a mirror

Re: Harmony support, new hardware?
Posted: Sunday 07 September 2014 16:53
by pepijn
You are right, it's in csocket.
Code: Select all
/domoticz/hardware/csocket.h:9:10: fatal error: 'asm/errno.h' file not found
I modified csocket.h and added some platform specific code.
Code: Select all
#ifdef WIN32
#include <winsock2.h>
#include <windows.h>
#elif __APPLE__
#include <netinet/in.h>
#include <errno.h>
#include <unistd.h>
#include <cstring>
#else
#include <netinet/in.h>
#include <asm/errno.h>
#include <unistd.h>
#include <cstring>
#endif
Question still be, why use csocket? Can't it be done using the boost libs?
Re: Harmony support, new hardware?
Posted: Monday 08 September 2014 9:26
by CodeItAway
pepijn wrote:You are right, it's in csocket.
Code: Select all
/domoticz/hardware/csocket.h:9:10: fatal error: 'asm/errno.h' file not found
Question still be, why use csocket? Can't it be done using the boost libs?
The csocket code is a leftover from the original project HarmonyHubControl where the new code is based on. I briefly looked at rewriting it to use AsyncTcp. It can be done, but it will take some time.
Re: Harmony support, new hardware?
Posted: Monday 08 September 2014 9:37
by pepijn
CodeItAway wrote:
The csocket code is a leftover from the original project HarmonyHubControl where the new code is based on. I briefly looked at rewriting it to use AsyncTcp. It can be done, but it will take some time.
For now the issue is solved

So adapt it to a single sockets implementation in the future should be a good idea.
But .. you made a lot of people happy by adding this code

Re: Harmony support, new hardware?
Posted: Monday 08 September 2014 13:32
by markk
I'm so sorry if I'm annoying anyone with stupid questions but I can't find this in my list of hardware. I assumed I'd need to update to a newer version of Domoticz to do so, I'm on v1909, but this seems to be the latest one

Re: Harmony support, new hardware?
Posted: Monday 08 September 2014 14:55
by mbliek
markk wrote:I'm so sorry if I'm annoying anyone with stupid questions but I can't find this in my list of hardware. I assumed I'd need to update to a newer version of Domoticz to do so, I'm on v1909, but this seems to be the latest one

Change to Beta channel in Settings and you will receive the update.
NOTE: BETA releases may contain bugs.