Changes

3 bytes added ,  13:16, 16 August 2023
no edit summary
Line 136: Line 136:     
1. Use request to get detailed info about element with "status":"detailed"
 
1. Use request to get detailed info about element with "status":"detailed"
<syntaxhighlight lang="xml" line>
+
<syntaxhighlight lang="json" line>
 
curl --header 'Content-Type: application/json' --data '{"request":"status-get", "API-KEY":"ENTER_API_KEY", "addr":"585:17", "status":"detailed"}' 'http://de-mg.local/API2/'
 
curl --header 'Content-Type: application/json' --data '{"request":"status-get", "API-KEY":"ENTER_API_KEY", "addr":"585:17", "status":"detailed"}' 'http://de-mg.local/API2/'
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 143: Line 143:     
2. Use request to set brightness for dimmer element
 
2. Use request to set brightness for dimmer element
<syntaxhighlight lang="xml" line>
+
<syntaxhighlight lang="json" line>
 
curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":"ENTER_API_KEY", "addr":"585:17", "status":{"level":10}}' 'http://de-mg.local/API2/'
 
curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":"ENTER_API_KEY", "addr":"585:17", "status":{"level":10}}' 'http://de-mg.local/API2/'
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 150: Line 150:     
3. Use request to set color-temp for dimmer element
 
3. Use request to set color-temp for dimmer element
<syntaxhighlight lang="xml" line>
+
<syntaxhighlight lang="json" line>
 
curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":"ENTER_API_KEY","addr":"585:17", "status":{"color-temp":100}}' 'http://de-mg.local/API2/'
 
curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":"ENTER_API_KEY","addr":"585:17", "status":{"color-temp":100}}' 'http://de-mg.local/API2/'
 
</syntaxhighlight>
 
</syntaxhighlight>
editor, Interface administrators, Administrators, translation-admin, translator
9,706

edits