ALL-SG8918PM

Allnet ALL-SG8918PM, ALL-SG8826PMX-10G, ALL-SG8910PM, ALL-SG8926PM, ALL-SG8926v2PM, ALL-SG8950PM Owner's manual

  • Hello! I am an AI chatbot trained to assist you with the Allnet ALL-SG8918PM Owner's manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
ALLNET JSON API!
(json output, switching with json response)!
It will ONLY be switched, NO-sensor values read!
Valid for ALLNET PoE switch ALL-SG8826PMX-10G, ALL-SG8950PM, ALL-SG8926PM
In this description used Device IP is "192.168.0.100“.
This must be replaced by the assigned address.
Description without Activated Basic authentication.If this is enable, you must pass the Authentication
in URL.
(Basic Authentication: https: // USER: P[email protected]/xml/json.php)
Call "https://192.168.0.100/xml/json.php“.
Parameter
id={id}Number or name of the switching sensor / actuator
set={0/1/toggle} Switch actuator off or on
callback={objekt} (optional) Values are returned as JSONP object
Version 0.02 Stand: 2016-11
ALLNET GmbH
ALLNET JSON API!
(json output, switching with json response)!
id
Command (URL)
http://192.168.0.100/xml/jsonswitch.php?id=2
Explanation
here is determined with which actuator to be switched.
Is the parameter „set“ not set the device returns only the status (0/1).
Response
{
"result": {
"id": "2",
"status": 0
}
}
set
Command (URL)
http://192.168.0.100/xml/jsonswitch.php?id=2&set=1
Explanation
(optional)
with this parameter, the on / off switching command is set.
It returns always the status before switching and the command themselves.
Response
{
"result": {
"id": "2",
"status": 0,
"set": "1"
}
}
callback
Command (URL)
http://192.168.0.100/xml?id=2&set=0&callback=demo
Explanation
(optional)
can be set to get back the data as a JSONP object.
Response
demo({
"result": {
"id": "2",
"status": 1,
"set": "0"
}
})
Version 0.02 Stand: 2016-11
ALLNET GmbH
/