question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Controlling Harmony Activities via new API

See original GitHub issue

For all of you upset about loosing control over Harmony, it is easy to change activities using the new method (although the rest is a bit complicated)

To create an on off activity (assuming you know the activity ID’s) you do the following.

Create a new device in HA-Bridge.

On Item Type > HTTP Device. Target Item > http://HUB_IP:8088 HTTP VERB > POST HTTP BODY {"cmd": "harmony.activityengine?runactivity", "params":{"activityId":"ACTIVITY_ID"}}

HTTP HEADERS [{"name":"Accept","value":"utf-8"},{"name":"Origin","value":"http//:localhost.nebula.myharmony.com"}]

Content-Type > application/json

Click Add

And repeat for the Off Item but change activity ID to -1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16

github_iconTop GitHub Comments

1reaction
NovaGLcommented, Dec 30, 2018

There is a HTTP post which tells you what device commands are in an activity but to issue those device commands it’s the same as a normal device command.

Get device commands use this in the body of the request.

{"id": 23771041,"cmd": "harmony.engine?config","timeout": 90000}

Then I use the following JSONata command to filter the results to only show the activities and the device commands available to that activity

{
  "Activity": data.activity.({
  $.label:$.id,
  "DeviceCommands": $.controlGroup.function.action
  })
}

To issue device commands it’s best to use Websocket, I will update my repo with websocket commands later on.

Let me know if that helps.

0reactions
NovaGLcommented, Feb 20, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Logitech Harmony integration using modern SDK/APIs
The official integration between Logitech Harmony and SmartThings doesn't seem to work. Trying to follow instructions at Harmony and ...
Read more >
Harmony Hub
Harmony Hub is the center of your home entertainment and home control solution. ... Activities, you will be able to copy them over...
Read more >
Is there any API/SDK for Logitech Harmony Elite? - Reddit
I have couple devices I want to control with that remote (yeelight lights and couple other things that I know it doesn't support)....
Read more >
homebridge-harmony-api - npm
A homebridge plugin for controlling individual Harmony Hub connected devices via: https://github.com/maddox/harmony-api. Latest version: ...
Read more >
[Update: resolved, API reinstated and commitment to keep it ...
Logitech has disabled the local API of the Harmony Hub with their latest software update (v4.15.206). For privacy and speed it is important ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found