-
Notifications
You must be signed in to change notification settings - Fork 34
How to use the REST API
The REST API is build for interaction with the ESP 8266 firmware, and, the OpenTherm Gateway.
Returns the device time
Returns the device information
Returns the value of the {msgid} requested. The JSON contains: Msg description, Msg value, Msg Unit (if any). The msgid between 0 and 127 are used, 128+ are reserved according to the specification.
The API v1 adds a little more than this:
Returns a JSON key value pair array, with all relevant OTGW monitor values.
Returns a JSON key value pair array, compatible with telegraf, with all relevant OTGW monitor values.
Returns the value of the {msgid} requested. The JSON contains: Msg description, Msg value, Msg Unit (if any). The msgid between 0 and 127 are used, 128+ are reserved according to the specification.
Returns the value of the {msgid by label} that is requested. The JSON contains: Msg description, Msg value, Msg Unit (if any). The msgid between 0 and 127 are used, 128+ are reserved according to the specification.
Post to this API and it will send the {command text} to the OTGW.
Should return a simple OK.
At this time it does not check the correct receive of the command by the OTGW.
warning: not fully battletested, it should work
I would like to write a Swagger API document, but that takes more time.