Open main menu
Home
How to do
Din rail devices
Box devices
Sensors
Multiroom
Applicatin
XML
Additional info
Log in
Settings
Larnitech wiki page
Search
Changes
← Older edit
API2
(view source)
Revision as of 10:13, 11 November 2025
727 bytes added
,
10:13, 11 November 2025
no edit summary
Line 43:
Line 43:
<!--T:2-->
<!--T:2-->
−
<syntaxhighlight lang="
json
"
line
>
+
<syntaxhighlight lang="
xml
">
request:
request:
{"request":"get-devices", "status":"detailed"}
{"request":"get-devices", "status":"detailed"}
Line 68:
Line 68:
"state":"undefined"
"state":"undefined"
}
}
−
}
+
}
,
+
{
+
"addr":"33:200",
+
"type":"climate-control",
+
"name":"climate",
+
"area":"Living room",
+
"status":{
+
"state":"on",
+
"setpoint":23.0,
+
"setpoint-heat":21.0,
+
"setpoint-cool":25.0,
+
"current-temperature":0.0,
+
"pid-temperature":100,
+
"current-humidity":0.0,
+
"current-co2":0,
+
"automation":"Comfort",
+
"mode":"auto",
+
"time-interval":0
+
},
+
"automations":[
+
"Comfort"
+
],
+
"automation":"Comfort",
+
"modes":[
+
"heat",
+
"cool"
+
]
+
},
],
],
−
"found":
2
+
"found":
3
}
}
Line 130:
Line 157:
]
]
}
}
+
+
request (set status for climate-control):
+
{"request":"status-set","addr":"33:200", "status":{"state":"on","setpoint-heat":21.0}}
+
+
response:
+
{
+
"response":"status-set",
+
"devices":[
+
{
+
"addr":"33:200",
+
"success":true
+
}
+
]
+
}
+
</syntaxhighlight>
</syntaxhighlight>
Mark
Bureaucrats
,
Interface administrators
,
Administrators
, translator
290
edits