How to use Harmony API - Maddox
Posted: Sunday 15 May 2022 22:48
I installed this plugin but how do i sent or get info from the huba
https://github.com/maddox/harmony-api/b ... ter/app.js
It has to do something wiith these commands but i don't know how to use them
https://github.com/maddox/harmony-api/b ... ter/app.js
It has to do something wiith these commands but i don't know how to use them
I would like to make 2 separater buttons in domoticz to control volume up and down or maing commands like next tv page or like go to channel xInfo
Use these endpoints to query the current state of your Harmony Hub.
ControlCode: Select all
GET /hubs => {"hubs": ["family-room", "bedroom"] } GET /hubs/:hub_slug/status => StatusResource GET /hubs/:hub_slug/commands => {"commands": [CommandResource, CommandResource, ...]} GET /hubs/:hub_slug/activities => {"activities": [ActivityResource, ActivityResource, ...]} GET /hubs/:hub_slug/activities/:activity_slug/commands => {"commands": [CommandResource, CommandResource, ...]} GET /hubs/:hub_slug/devices => {"devices": [DeviceResource, DeviceResource, ...]} GET /hubs/:hub_slug/devices/:device_slug/commands => {"commands": [CommandResource, CommandResource, ...]}
Use these endpoints to control your devices through your Harmony Hub.
Code: Select all
PUT /hubs/:hub_slug/off => {message: "ok"} POST /hubs/:hub_slug/commands/:command_slug => {message: "ok"} POST /hubs/:hub_slug/commands/:command_slug?repeat=3 => {message: "ok"} POST /hubs/:hub_slug/activities/:activity_slug => {message: "ok"} POST /hubs/:hub_slug/devices/:device_slug/commands/:command_slug => {message: "ok"} POST /hubs/:hub_slug/devices/:device_slug/commands/:command_slug?repeat=3 => {message: "ok"}