Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iobroker-community-adapters/iobroker.harmony
Logitech Harmony Adapter for ioBroker
https://github.com/iobroker-community-adapters/iobroker.harmony
harmony iobroker-adapter logitech websocket
Last synced: 3 days ago
JSON representation
Logitech Harmony Adapter for ioBroker
- Host: GitHub
- URL: https://github.com/iobroker-community-adapters/iobroker.harmony
- Owner: iobroker-community-adapters
- License: mit
- Created: 2015-08-08T08:06:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T05:48:53.000Z (about 2 months ago)
- Last Synced: 2024-11-15T10:59:14.443Z (about 1 month ago)
- Topics: harmony, iobroker-adapter, logitech, websocket
- Language: JavaScript
- Homepage:
- Size: 514 KB
- Stars: 14
- Watchers: 10
- Forks: 15
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Logo](admin/harmony.png)
# ioBroker.harmony[![GitHub license](https://img.shields.io/github/license/iobroker-community-adapters/ioBroker.harmony)](https://github.com/iobroker-community-adapters/ioBroker.harmony/blob/master/LICENSE)
[![Downloads](https://img.shields.io/npm/dm/iobroker.harmony.svg)](https://www.npmjs.com/package/iobroker.harmony)
![GitHub repo size](https://img.shields.io/github/repo-size/iobroker-community-adapters/ioBroker.harmony)
[![Translation status](https://weblate.iobroker.net/widgets/adapters/-/harmony/svg-badge.svg)](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/iobroker-community-adapters/ioBroker.harmony)
![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/iobroker-community-adapters/ioBroker.harmony/latest)
![GitHub last commit](https://img.shields.io/github/last-commit/iobroker-community-adapters/ioBroker.harmony)
![GitHub issues](https://img.shields.io/github/issues/iobroker-community-adapters/ioBroker.harmony)**Version:**
[![NPM version](http://img.shields.io/npm/v/iobroker.harmony.svg)](https://www.npmjs.com/package/iobroker.harmony)
![Current version in stable repository](https://iobroker.live/badges/harmony-stable.svg)
![Number of Installations](https://iobroker.live/badges/harmony-installed.svg)**Tests:**
[![Test and Release](https://github.com/iobroker-community-adapters/ioBroker.harmony/actions/workflows/test-and-release.yml/badge.svg)](https://github.com/iobroker-community-adapters/ioBroker.harmony/actions/workflows/test-and-release.yml)
[![CodeQL](https://github.com/iobroker-community-adapters/ioBroker.harmony/actions/workflows/codeql.yml/badge.svg)](https://github.com/iobroker-community-adapters/ioBroker.harmony/actions/workflows/codeql.yml)## ioBroker Logitech Harmony Adapter
Control your harmony activities from ioBroker.
## Install
Install Harmony via ioBroker Admin.
Adapter should automatically find your Hubs.If the hub and iobroker are in different subnets broadcasts will not work (#147). The workaround is to add the hub IP as subnet IP but this only works for one hub, e.g. setting the subnet(s) to ("192.168.178.5,192.168.178.6") in admin will allow discovery for both hubs.
## Usage
### Activities
**Start:**
Set the status state 'Instance.Hub_Name.activities.Activity_Name' to a Number greater than 0.
During the activity's startup sequence the status changes from 1 (startup) to 2(running)**Stop:**
Set the state 'Instance.Hub_Name.activities.Activity_Name' to 0.
Alternatively, you can set the hub's status 'Instance.activities.currentStatus' to any number.
During the activity's exit sequence the status changes from 3 (stopping) to 0 (stopped)### Indicators
There are two indicators 'Instance.Hub_Name.activity' and 'Instance.Hub_Name.connected'. Both are read-only, changing their values has no effect.**.hubConnected**
Tells you whether the adapter is successfully connected to the hub.
**.hubBlocked**
Is set to true if Hub is busy starting/stopping activities or sending commands.
**activities.currentActivity**
Gives you the name of the currently running activity.**activities.currentStatus**
Gives you the current status of the hub.
- 0 = inactive
- 1 = starting
- 2 = active
- 3 = stopping**activities.**
Status of this activity. Values are the same as above.### Devices
**Send Command**
Set 'Instance.Hub_Name.Device_Name.command' to a number x to send command for x milliseconds.
A value smaller than 250 probably will send the command only once.
After sending the state will be set to 0 again.## Changelog
### 1.5.0 (2024-06-02)
* (WolfspiritM) Multiple subnets can be entered as comma seperated list now. (#147)
* (mcm1957) Testing for node.js 22 has been added.
* (mcm1957) Dependencies have been updated.### 1.4.0 (2024-04-11)
* (mcm1957) Adapter requires node.js 18 and js-controller >= 5 now
* (mcm1957) Translations have been updated
* (mcm1957) Dependencies have been updated### 1.3.0 (2023-11-08)
* (mcm1957) Adapter requires nodejs 16 now.
* (mcm1957) Adapter has been moved to iobroker-community-adapters organisation.
* (mcm1957) Dependencies have been updated.### 1.2.2 (2019-03-11)
* (foxriver76) reduce discover interval and only log newly discovered hubs### 1.2.1 (2019-02-21)
* (foxriver76) use at least 1.0.5 of harmonyhubws### 1.2.0 (2019-01-06)
* (foxriver76) compact mode compatibility added### 1.1.5 (2018-12-28)
* (Pmant) fix hold key (for values > 250ms)### 1.1.4 (2018-12-25)
* (Pmant) fix single key presses### 1.1.2
* (Pmant) reduce log spam
* (Pmant) fix multiple instances of one hub### 1.1.1
* (Pmant) switch to api module### 1.1.0
* (Pmant) switch to websocket client### 1.0.0
* (foxriver76) replace blanks by underscores
* (foxriver76) minor readme adjustments
* (foxriver76) discover interval 1000 ms by default again### 0.10.2
* (foxriver76) added discover interval and port to code
* (foxriver76) discover interval is now 300 ms instead of 1000 ms### 0.10.0
* (foxriver76) added possibility to specify subnet for discovery
* (foxriver76) fix translations
* (foxriver76) Logging improved
* (foxriver76) materialized index.html for admin v3
* (foxriver76) make sure callback in unload is called### 0.9.6
* (foxriver76) updating code to es6
* (foxriver76) using maintained harmony libs for discover and client
* (foxriver76) possibility to only add whitelisted hubs
* (foxriver76) MAX_CLIENTS = 6 error fixed
* (foxriver76) enhanced logging
* (foxriver76) changes for new libs### 0.9.3
* (justr1) fix error with hubname### 0.9.1
please delete all harmony.x objects once
* (Pmant) fix problematic chars### 0.7.0
* (Pmant) support multiple hubs
* (Pmant) removed hub config from admin
* (Pmant) find free Port for Hub-Discovery### 0.6.2
* (Pmant) fix wrong port### 0.6.1
* (Pmant) reduce logging### 0.6.0
* (Pmant) fix admin in firefox
* (Pmant) improve connection stability (needs testing)### 0.5.6
* (PArns) update harmony lib
* (PArns) removed unneeded functions due to lib update
* (Pmant) fix bug with blocked state### 0.5.5
* (Pmant) fix hub lifecycle### 0.5.4
* (Pmant) fix node 5.0.0### 0.5.3
* (Pmant) fix node-xmpp-client version### 0.5.2
* (Pmant) change: add instance after installation
* (Pmant) fix: deletes history settings### 0.5.1
* (Pmant) fix: bug with wrong states### 0.5.0
* (Pmant) change: object structure (delete instance once if had 0.2.1 or lower installed!)
* (Pmant) add: send commands for x milliseconds
* (Pmant) add: delete unused activities and devices
* (Pmant) add: delay commands when hub is busy### 0.2.1
* (bluefox) change logo### 0.2.0
* (Pmant) switch activity on state change
* (Pmant) stop current activity on hub status change
* (Pmant) move activities to activity channel
* (Pmant) add devices channel
* (Pmant) add device control### 0.1.2
* (Pmant) hub discovery### 0.1.1
* (Pmant) fixes### 0.1.0
* (Pmant) keep alive connection to hub
* (Pmant) create/update objects and states
* (Pmant) update current activity status### 0.0.1
* (Pmant) connect to hub
* (Pmant) listen for activies### License
The MIT License (MIT)Copyright (c) 2023-2024 iobroker-community-adapters
Copyright (c) 2015-2019 PmantPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.