Harmony support, new hardware?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Harmony support, new hardware?

Post 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
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
CodeItAway
Posts: 27
Joined: Tuesday 11 February 2014 21:44
Target OS: Linux
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post 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.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Harmony support, new hardware?

Post 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
ScreenShot040.jpg (26.53 KiB) Viewed 16034 times
ScreenShot039.jpg
ScreenShot039.jpg (28.35 KiB) Viewed 16034 times
It can and does work, but it would be nicer if.......


THANKS !!!
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Pjedr
Posts: 38
Joined: Friday 27 December 2013 3:13
Target OS: Linux
Domoticz version: Beta
Location: Friesland
Contact:

Re: Harmony support, new hardware?

Post 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.
CodeItAway
Posts: 27
Joined: Tuesday 11 February 2014 21:44
Target OS: Linux
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post by CodeItAway »

Thank you both for the feedback. I will look into it and create a patch with fixes for the admins.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Harmony support, new hardware?

Post 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? ;) ;)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Harmony support, new hardware?

Post 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.
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Harmony support, new hardware?

Post by Derik »

Got some errors....
ScreenShot041.jpg
ScreenShot041.jpg (127.48 KiB) Viewed 16017 times

And it is not switching ...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Pjedr
Posts: 38
Joined: Friday 27 December 2013 3:13
Target OS: Linux
Domoticz version: Beta
Location: Friesland
Contact:

Re: Harmony support, new hardware?

Post 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
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post 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?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
CodeItAway
Posts: 27
Joined: Tuesday 11 February 2014 21:44
Target OS: Linux
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post 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.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Harmony support, new hardware?

Post 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.
User avatar
gizmocuz
Posts: 2478
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Harmony support, new hardware?

Post 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
Quality outlives Quantity!
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Harmony support, new hardware?

Post by pepijn »

Hi Rob, I will check this, I can't keep up with all the updates ;)
User avatar
gizmocuz
Posts: 2478
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Harmony support, new hardware?

Post 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 ;)
Quality outlives Quantity!
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Harmony support, new hardware?

Post 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?
CodeItAway
Posts: 27
Joined: Tuesday 11 February 2014 21:44
Target OS: Linux
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post 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.
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Harmony support, new hardware?

Post 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 ;)
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Harmony support, new hardware?

Post 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 :?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
User avatar
mbliek
Posts: 194
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: the Netherlands
Contact:

Re: Harmony support, new hardware?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest