Skip to content
forked from hdurdle/harmony

C# library for connecting to and controlling the Logitech Harmony Hub.

License

Notifications You must be signed in to change notification settings

slavikko/harmony

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HarmonyHub

C# library for connecting to and controlling the Logitech Harmony Hub.

Build status

Status

  • Authentication to Logitech's web service (myharmony.com) working.
  • Authentication to Harmony Hub device working.
  • Querying for entire device configuration working.
  • Querying for current activity working.
  • Start a specific activity (or switch off) working.
  • Send specific button press to a device working.

Usage

Include the HarmonyHub class library project in your solution to use the functionality.

To better understand what it does and how, play with the HarmonyConsole project:

HarmonyConsole usage:
  -i, --ip         Required. IP Address of Harmony Hub.
  -u, --user       Required. Logitech Username
  -p, --pass       Required. Logitech Password
  -d, --device     Device ID
  -c, --command    Command to send to device
  -s, --start      Activity ID to start
  -l, --list       List devices or activities
  -g, --get        Get Current Activity
  -o, --off        Turn entire system off
  --help           Display this help screen.

For example, to use the console application to get the current activity on the HarmonyHub at IP 10.0.0.1:

HarmonyConsole.exe -i 10.0.0.1 -u email@example.com -p password -g

Protocol

Check out the PROTOCOL.md for current progress, or see the original linked below.

Thanks

With thanks to petele and jterrace for their work on pyharmony which pointed me in the right direction, first found via Pete's Blog. Also to the guys behind the HarmonyHubControl project on Sourceforge who have implemented a C++ version of similar code.

TODO

Same as the pyharmony guys - now I can talk to the Hub I need to understand more about the protocol.

  • Figure out how to detect when the session token expires so we can get a new one.
  • Figure out a good way of sending commands based on sync state.
  • Is it possible to update device configuration?

About

C# library for connecting to and controlling the Logitech Harmony Hub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%