Giter Site home page Giter Site logo

com.jreenen.homeyharmonyhub's Introduction

Homey harmony hub

This application adds support for the Logitech Harmony Hub to Homey. Control the available devices and/or activities inside a Homey flow, voice commands or the homey app.

Make sure that Homey is connected to the same network as your Logitech Harmony Hub(s) and the app will autodiscover your hub(s).

Important: This app uses a local api available on your Logitech Harmony Hub that is undocumented and unsupported by Logitech. If Logitech decides to remove this api in a firmware upgrade this app will stop working.

Donations

If you like the work on this project please consider a donation. Of course, this is optional and you should in no way feel obligated to send a donation. The donations will be spent on buying a second Homey to use as a development Homey which supports me to keep this app running on future firmware versions of Homey.

Drivers

To communicate with your Logitech Harmony Hub this app uses drivers. When adding a device you can choose between 2 drivers.

Harmony Device driver

This driver allows you to pair devices that are synchronised to your Logitech Harmony Hub e.g.:

Logitech Harmony devices

Once paired you can use this device in flows or control it from the Homey app.

Harmony Activity driver

This driver allows you to pair activities that are synchronised to your Logitech Harmony Hub e.g.:

Logitech Harmony activities

Once paired you can use this activity in flows or control it from your Homey app.

Capabilities

During the pairing process the capibilities of devices and activities will get mapped to Homey capabilities.

OnOff

Capability for turning a device or activity on or off.

VolumeUp/VolumeDown/VolumeMute

Capability for controlling the volume level of a device or activity.

ChannelUp/ChannelDown

Capability for controlling the current channel of a device or activity.

Flow cards

Flowcards can be used to build flows in Homey's flow editor.

Triggers (when)

Application

To use the application cards select 'Homey Harmony Hub' in the 'When' column.

Activity starting

Every time an activity is about to start on your Logitech Harmony Hub this card will trigger. It provides 2 tags:

  • hub, this tag contains the hub name on which the activity is about to start.
  • activity, this tag contains the activity name of the activity that is about to start.

Activity started

Every time an activity is started on your Logitech Harmony Hub this card will trigger. It provides 2 tags:

  • hub, this tag contains the hub name on which the activity is started.
  • activity, this tag contains the activity name of the activity that is started.

Activity stopped

Every time an activity is stopped on your Logitech Harmony Hub this card will trigger. It provides 2 tags:

  • hub, this tag contains the hub name on which the activity is started.
  • activity, this tag contains the activity name of the activity that is started.

Hub inactive

This card can trigger if the hub is not active for an interval you choose:

  • 5 minutes
  • 10 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 8 hours

It provides the name of the hub that is inactive as a tag.

Device and activity

Turned on

Every time the selected device or activity is turned on this card will trigger.

Turned off

Every time the selected device or activity is turned off this card will trigger.

Conditions (and)

Application

Activity is/is't matched

This card can be used to check if an activity is equal or not equal to a specified activity. Although you can type in the activity name by hand I would suggest using a predefined activity tag (e.g. generated by the Activity started application trigger card).

Device and activity

Is on / Is off

This card can be used to check if a specific device or activity is turned on or off.

Actions (then)

Application

Start activity

This card will start a selected activity on a selected hub.

Stop activity

This card will stop the current activity on a selected hub.

Device and activity

Turn on

This card will turn on a specific device or activity.

Turn off

This card will turn off a specific device or activity.

Toggle on or off

This card will toggle the onoff state for a specific device or activity.

Mute the volume

This card will mute the volume for a specific device or activity.

Unmute the volume

This card will unmute the volume for a specific device or activity.

Turn the volume up

This card will turn the volume up for a specific device or activity.

Turn the volume down

This card will turn the volume down for a specific device or activity.

One channel up

This card will switch one channel up for a specific device or activity.

One channel down

This card will switch one channel down for a specific device or activity.

Send command (device exlusive)

With this card you can send a command registered in your Logitech Harmony Hub to your device (e.g. input hdmi 1, record program...). The logitech harmony hub is grouping this kind of command so first specify the group and then the command you want to have executed. You can also specify the ammount of times this command should be repeated where 0 is only one time 1 is executing the same command twice etc..

(Voice) commands

  • (Ok Homey,) Turn on [device or activity name]
  • (Ok Homey,) Turn off [device or activity name]
  • (Ok Homey,) Mute [device or activity name]
  • (Ok Homey,) Unmute [device or activity name]
  • (Ok Homey,) Volume up [device or activity name]
  • (Ok Homey,) Volume down [device or activity name]
  • (Ok Homey,) Channel up [device or activity name]
  • (Ok Homey,) Channel down [device or activity name]

Version History

v2.0.x

  • New option to add activities as a device.
  • If an activity is recognized as a television activity it will use the Homey built-in TV class and e.g. let Homey respond to: Ok Homey, turn on tv
  • Capabilities for on/off, channel up/down, volume up/down/mute are now mapped on devices and activities that has support for them.
  • If your hub for some reason goes offline all attached devices and activities will be set to unavailable until it is back online.
  • When you add a device or activity on the Logitech harmony app those changes will get synced, so an app restart is no longer needed when changes occur on the hub.
  • Added allot of new icons to use on devices, almost every device type has its own icon now. If you already have a device paired and want to use the new icon you unfortunately have to delete and re-add it.
  • An app settings options that makes it possible to send me a diagnostic report if you are experiencing a hard to trace bug in this app (only use this when i ask for it)

v1.4.x

  • App is rewritten to utilize the websockets API instead of XMPP (which got disabled by logitech). Again a big thank you to @denniedegroot for your big help in this.

v1.3.x

  • Added starting activity trigger to be informed an activity is about to start.
  • Added a repeat argument to the send command action (e.g. for adjusting the volume by more than just one step).
  • Added an inactivity trigger to be informed when the hub is being inactive for a specified period.
  • Added a activity comparing condition

A special thanks to @denniedegroot who added on/off functionality for smart home devices and will help me on this project whenever time allows him to.

v1.2.x

  • Instead of always using the power toggle command use the power on and power off when they are available and fallback to the power toggle command when they are not available. This solves an issue with devices that don't support the power toggle command
  • Fixed an issue where on powering off an activity, an activity started trigger got raised on the previous activity instead of an activity stopped trigger.
  • For improved stability and future features, a new connection library has been written for the Homey Harmony App.
  • If an activity has been started/stopped by an external source (e.g. the Logitech Harmony Remote), the app picks up on this event and updates the device states accordingly and triggers the applicable flow cards.
  • You can now use a flow condition card for your device to check if it is/isn't turned on.

v1.1.x

  • Pairing of devices connected to the harmony hub
  • A mobile card supporting the power toggle functionality of the device
  • An action card for sending a specific command to the Harmony device using homey flows.
  • Action cards for starting/stopping a hub activity
  • Trigger cards for device is turned on/off
  • Trigger cards for activity is started/stopped
  • Syncing the device on-off state based on the current hub activity

v1.0.0

  • Initial release (never hit the Athom store)

com.jreenen.homeyharmonyhub's People

Contributors

denniedegroot avatar dependabot[bot] avatar evident-jreenen avatar jreenen avatar rkokkelk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.jreenen.homeyharmonyhub's Issues

Number command always repeated at least one time in beta 1.3.0

In the new beta version 1.3.0 you have to set a repeat count for the numberbasic command.
the lowest accepted value for the repeat count is 1. That means that the numberbasic command is always repeated 1 time. So if i want to switch to channel 1 it actually sends 11

Unmute

Hi,

Is it possible to have an 'unmute' and a 'stop activity' task in this app? Would be helpful...

Cheers, Joep

Tags do not change values

Is this app still supported, given there hasn't been an updated release in a year?

The tag values for the devices do not change value when something is turned on/off.

Also the flows are not working (flow is not activated when I add 'activity started' in the 'if' column and the name of the activity tag in the middle column).

Not able to add activities or devices

Homey 2.0.2.
I am not able to add Avtivities or Devices. The app discovers my hub, bot When trying to add either Activities or Devices it times out...

V2 RC4 breaks harmony app

Describe the bug
App tries to start but crashes every time.
I am running the latest master.
Reinstalled app but same issue

Can not find TV, receiver

First of all i love the app. Most of the time it works perfect. I have a couple of things to report.

  • When i update/sync my hub Homey wont control them any more. Last time i updated the hub, my 10 flows where still there, no broken links but also (on test) no connection whit the receiver. It keeps trying. When i uninstall the hub and install it again every thing works fine....

  • On the hub are my TV (samsung), receiver (Denon), Ziggo box (samsung). When i tell homey to turn off the TV it says that it can not find a tv. (i did select the tv, it says its a tv and it has an tv icon). But it wont work. Now i wrote some flows (when I say "TV" or "Television" off) It has a conflict (homey has tv as standaard). But now it works almost fine. Somtimes it still says that it has no tv, after a 2nd time it has.

  • The same whit the receiver. When i Say put the volume on 20 it says that is has no receiver. So i had to write every line of volume... (and it says that is has conflicts on all) But is does work. But if there is an error i have to rewrite them all...:(.

  • Also on the receiver, i can not say put chanel 4 on becouse it can not see it.

I looked for the node information off them all but there is no configuration on them. Only the on off switch.

Crash v 1.3.1

The app crashes constantly. Restarting the app or restarting the homey doesn’t work :-(.

hub not found (80% of the time)

Hi there,
Sometimes the app (version 1.x and 2.x) finds my harmony, but most of the time it doesn't.
My iOS harmony app always works, but I cannot find out why this Homey app won't find my hub (most of the time).

When I have installed the devices or activities when the Homey was able to find it the devices won't work or don't get updated after a day or so and gets broken.

This is a screenshot of an activity that got broken:
img_0327

The Hub is on the same Wifi network and has a fixed ip.

  • Homey firmware version: 2.0.0
  • App version v2.0.1

There is no way I can set the ip of the hub without the app trying to resolve it?

'Activity Starting' trigger

Besides having a trigger card when an activity has started, also have a trigger card for when an activity start just got requested. This can be useful for appliances that need to be turned on with the triggered activity but take a while to power on.

Harmony hub not found anymore

Since a week (or two) my flows with activity's from my harmony hub seems not to work anymore. I removed the app, restarted my harmony hub and my homey, installed the app again and now it doesn't find my hub anymore.

Tried several times without any succes.
Homey Firmware Versie: 1.5.9
Harmony hub version 4.15.96

Connection time-out?

Hi,

It looks like the app seems to loose connection after some time.
When I haven't used it some time, I have to (for example) say to Homey twice to turn off the tv.
My flow runs the first time (Homey responds) but nothing happens.
The second time, the tv turns off.

crash after auto update to version 1.4.0

After the app auto update to last version 1.4.0 today it now constantly crashes, it does not start anymore.

To Reproduce
Just auto update, it crashes when it is started again

Desktop (please complete the following information):

  • Homey Firmware Versie: 1.5.13
  • App version 1.4.0

Harmony offline

Hello

Don’t know if it is allready reported but my devices show as offline
The app is running and restarting it doesn’t resolve the offline states

[Beta version] Start activity not working when activity has a space

The 'start activity' doesn t work when there is a space in the activity 'Tv kijken' however 'Chromecast' (without any spaces) activity started perfectly. (So I am guessing the space must be the reason for the failure I also tried manualy typing 'Tvkijken' but no success.

Harmony app doesn’t see Ant devices

Harmony app removed and reinstalled. In the Homey app it doesn’t show any off the devices.
It work fine before the big Homey-update to the mobile version.

I’m on the latest homey and harmony version.

The harmony as standalone thing works perfectly, so I guess it must be a thing in homey or homey/harmony app.

I couldn’t find a way to ADD devices manually.... maybe I missed something

SORRY, SORRY RIGHT AFTER THIS ISSUE I FOUND WHAT I DID WRONG!
Not used to the new way of working with the new mobile app. ISSUE SOLVED.

The action stop a activity dows not show any activity

When i make a new flow in V2.01 and i get to the then field i can choose to start or stop a activity.
Then i choose stop, i select my hub, but i get no selection on what activity to stop.

To Reproduce
Steps to reproduce the behavior:

  1. create a flow to stop a activity
  2. your hub
  3. No activity shown

Expected behavior
A activity that i can stop.

As i remember it from the past when i made a "button" and i pressed it once, it would start the activity.
Then when done i could press the same button (start the same flow) and then it would stop.
I do not remember having to choose to start or stop a activity.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • Homey firmware version: 2.01
  • App version v2.01

the app crashes on my homey

Hi the app suddenly stopped working, it crashes on the homey all the time now. Bot the stable version and also on the beta

is this a issue you are known off? Never had problems with this app before.. tried reinstalling the stable and the beta version once again but no luck. Also I have tried restarting my homey as well but no luck at the moment.

Is it possible to install the older version again? version 11?

hope this will work again soon. really miss my harmony flows :-(

Best regards Lars

Flow does not finish

Describe the bug
When I create a simple flow, and the "than" action is to press a button on the HD decoder for example, the flow does not finish.
EDIT: It also does not finish the "Start activity" and "Stop activity" action.

To Reproduce
Steps to reproduce the behavior:

  1. Create a flow which activates a result like "Press x key on remote"
  2. Click on 'Test'
  3. See how the spinner keeps spinning

Expected behavior
The command and flow have to be executed successfully.

Screenshots
schermafbeelding 2018-11-30 om 00 26 58
(the spinner keeps spinning).

Desktop

  • Homey firmware version: 1.5.13
  • App version 1.3.1

XMPP authentication failure

Hi! Unfortunately, the app crashed while I was doing the following: (...) This is the stack trace: /node_modules/applicationinsights/AutoCollection/Exceptions.js:27 throw error; ^ Error: Unhandled "error" event. (XMPP authentication failure) at AppInsightsAsyncCorrelatedErrorWrapper.ZoneAwareError (/node_modules/zone.js/dist/zone-node.js:811:33) at AppInsightsAsyncCorrelatedErrorWrapper (/node_modules/applicationinsights/AutoCollection/CorrelationContextManager.js:161:18) at Client.emit (events.js:185:19) at Client._handleAuthState (/node_modules/node-xmpp-client/lib/Client.js:298:10) at Client._handleStanza (/node_modules/node-xmpp-client/lib/Client.js:234:12) at Client.onStanza (/node_modules/node-xmpp-client/lib/Client.js:222:8) at ZoneDelegate.invokeTask (/node_modules/zone.js/dist/zone-node.js:275:35) at Zone.runTask (/node_modules/zone.js/dist/zone-node.js:151:47) at Connection.ZoneTask.invoke (/node_modules/zone.js/dist/zone-node.js:345:33) at emitOne (events.js:115:13) at Connection.emit (events.js:210:7) at Connection.onStanza (/node_modules/node-xmpp-core/lib/Connection.js:369:10) at StreamParser. (/node_modules/node-xmpp-core/lib/Connection.js:226:10) at ZoneDelegate.invokeTask (/node_modules/zone.js/dist/zone-node.js:275:35) at Zone.runTask (/node_modules/zone.js/dist/zone-node.js:151:47)

Missing the option to select an activity in "stop activity" card

Describe the bug
A clear and concise description of what the bug is.
schermafbeelding 2018-09-18 om 15 45 32
The card to start an activity should be the same as the card to stop an acivity. However, the 'select an ancivity' selecor is missing.

  • Homey firmware version: [e.g. 1.5.12]
  • App version [e.g. 1.2.1] v1.3.0 beta

Problem

I need to restart the app everyday to be able to use it, then it works a few times then it wont work until i restart the app

no work

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Homey firmware version: [e.g. 1.5.12]
  • App version [e.g. 1.2.1]

Additional context
Add any other context about the problem here.

Homey flow is triggered AFTER the Harmony activity

I wanted to use the activity started (Watch TV) in a flow to activate a kaku switch. This kaku switch is controlling the power to my TV.
I have added a delay in the harmony (hub) activity so the flow has enough time to switch on the Kaku TV switch.
But unfortunately the flow is triggered after the harmony activity is completed (so thats after the delay as well).
I can us Activity started or Activity is been started. Doesn’t matter. The Kaku switch is switched on after the activity is started.

The Homey flow is triggered after the Harmony activity is finished. I have tried it with a couple of minutes of delay. The homey flow is triggered AFTER the Harmony activity. So after the minutes of delay.

So the homey card that says “Activity is started” is not correct. It starts when the harmony activity is finished. The same goes for “Activity is been started” .

To Reproduce
See above

Expected behavior
That the "Activity is started" actually does what it says ;)

Screenshots
https://discourse-cdn-sjc1.com/business4/uploads/athom/original/2X/c/c04aafca9e429e73a7995cf4fbc547b1a68dfc94.jpeg

https://discourse-cdn-sjc1.com/business4/uploads/athom/original/2X/4/4d747e24560eb44d22a19b8a9f517588f1c616b5.png

Desktop (please complete the following information):

  • Homey firmware version: [2.0]
  • App version [1.3.1]

See discussion on the forum: https://community.athom.com/t/homey-harmony-hub-v2-0-1/1747/41?u=jan_hilhorst

max clients=6

the max_clients=6 errors are still in the version 1.1.1
Error: MAX_CLIENTS=6
at AppInsightsAsyncCorrelatedErrorWrapper.ZoneAwareError (/node_modules/zone.js/dist/zone-node.js:811:33)
at AppInsightsAsyncCorrelatedErrorWrapper (/node_modules/applicationinsights/AutoCollection/CorrelationContextManager.js:161:18)
at Connection.onStanza (/node_modules/node-xmpp-core/lib/Connection.js:355:17)
at StreamParser. (/node_modules/node-xmpp-core/lib/Connection.js:226:10)
at ZoneDelegate.invokeTask (/node_modules/zone.js/dist/zone-node.js:275:35)
at Zone.runTask (/node_modules/zone.js/dist/zone-node.js:151:47)
at StreamParser.ZoneTask.invoke (/node_modules/zone.js/dist/zone-node.js:345:33)
at emitOne (events.js:115:13)
at StreamParser.emit (events.js:210:7)
at SaxLtx. (/node_modules/node-xmpp-core/lib/StreamParser.js:58:14)
at ZoneDelegate.invokeTask (/node_modules/zone.js/dist/zone-node.js:275:35)
at Zone.runTask (/node_modules/zone.js/dist/zone-node.js:151:47)
at SaxLtx.ZoneTask.invoke (/node_modules/zone.js/dist/zone-node.js:345:33)
at emitOne (events.js:115:13)
at SaxLtx.emit (events.js:210:7)

Adjusting volume with bigger steps

I control my receiver via your app. I want a flow where I can adjust it volume, so I use the Send Command THEN-card, select the Control Group Volume and select command VolumeUp. This works fine, but it would be even better if I can control the volume with bigger steps. For example:

Volume, VolumeUp, 10

Device status inverted in zone device card

Homey Firmware Versie: 1.5.3
Homey Harmony Hub Beta : v1.2.0

Device state in zone devicecard is inverted. Example tv device has device card status on, but in fact the tv is off. When i change the device card state to off my tv goes on.

device on/off status dos not work from zones screen

Homey Firmware Versie: 1.5.3
Homey Harmony Hub Beta : v1.2.0

I have an faber optymyst fireplace controlled via infrared.
The on/of command does work via the flow card status, but dos not work via the zone device card.
However other devices like tv and wii dos work...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.