Merged from petele/pyharmony, and made it work for Harmony Link, not Hub