Skip to content

API APP OS

ARIbemoss edited this page May 11, 2017 · 1 revision

Back to Developer Resources

Link 4: API between APP Layer and OS layer


Topic exchange between APP and OS

General rule for an exchanged topic: /sender/receiver/AppName/agentid/command/response

Available commands are:

  1. agent_status
  2. update

1) Thermostat

Thermostat Agent Knowledge:

API thermostat.jpg

Example topics:

  • /app/agent/thermostat_scheduler/1TH571a4760189f/agent_status

  • /agent/app/thermostat_scheduler/1TH571a4760189f/agent_status/response

  • /app/agent/thermostat_scheduler/1TH571a4760189f/update

  • /agent/app/thermostat_scheduler/1TH571a4760189f/update/response

2) Lighting

Lighting Agent Knowledge:

lighting.jpg

Example topics:

  • /app/agent/lighting_scheduler/2HUE4408631223ff/agent_status

  • /agent/app/lighting_scheduler/2HUE4408631223ff/agent_status/response

  • /app/agent/lighting_scheduler/2HUE4408631223ff/update

  • /agent/app/lighting_scheduler/2HUE4408631223ff/update/response

3) Plug load

Plugload Agent Knowledge:

switch.jpg

Example topics:

  • /app/agent/plugload_scheduler/3WSP4542193ff015/agent_status

  • /agent/app/plugload_scheduler/3WSP4542193ff015/agent_status/response

  • /app/agent/plugload_scheduler/3WSP4542193ff015/update

  • /agent/app/plugload_scheduler/3WSP4542193ff015/update/response


Back to Developer Resources

Clone this wiki locally