Jeedom provides developers and users with a comprehensive API that allows them to control Jeedom from any connected object.
Two APIs are available: one designed for developers that uses JSON-RPC 2.0, and another that uses URLs and HTTP requests.
This API is very easy to use via simple HTTP requests using a URL.
Note
Throughout this documentation, #IP_JEEDOM# refers to your Jeedom access URL. This is (unless you’re connected to your local network) the web address you use to access Jeedom from outside your network.
Note
Throughout this documentation, #API_KEY# refers to your API key, which is specific to your installation. To find it, go to the “General” menu → “Configuration” → “General” tab.
Note
For POST requests, each query parameter can be sent in the request body in form-data or x-www-form-urlencoded format. Query parameters and the body content can be used together, but it’s important to note that query parameters take precedence over the body content.
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=scenario&id=#ID#&action=#ACTION#
Note
Don’t try to use ‘php://input’ to pass data to your script; that’s what tags are for.
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=cmd&id=#ID#
The easiest way to get this URL is to go to the Analysis → Home Automation Summary page, search for the command, then open its advanced settings (the “gear” icon). There, you’ll see a URL that already contains everything you need based on the command’s type and subtype.
Note
The #ID# field can be used to send multiple commands at once. To do this, you must pass an array in JSON format (e.g., %5B12,58,23%5D; note that [ and ] must be encoded, hence %5B and %5D). Jeedom will return a JSON response.
Note
Parameters must be encoded for URLs. You can use a tool, here.
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=interact&query=#QUERY#
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=message&category=#CATEGORY#&message=#MESSAGE#
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=object
Returns a list of all Jeedom objects in JSON format.
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=eqLogic&object_id=#OBJECT_ID#
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=command&eqLogic_id=#EQLOGIC_ID#
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=fullData
Returns all objects, devices, and commands (and their values, if applicable) in JSON format.
Here is the URL = http://#IP_JEEDOM#/core/api/jeeApi.php?apikey=#APIKEY#&type=variable&name=#NAME#&value=VALUE