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" |
− | curl --header 'Content-Type: application/json' --data '{"request":"status-get", "API-KEY":"8010920395573775", "addr":"585:17", "status":"detailed"}' 'http://de-mg.local/API2/' | + | <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/' |
| + | </syntaxhighlight> |
| | | |
| | | |
− | 2. Use request to set brightness for dimmer element
| |
− | curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":"8010920395573775", "addr":"585:17", "status":{"level":10}}' 'http://de-mg.local/API2/'
| |
| | | |
| + | 2. Use request to set brightness for dimmer element |
| + | <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/' |
| + | </syntaxhighlight> |
| + | |
| + | |
| + | |
| + | 3. Use request to set color-temp for dimmer element |
| + | <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/' |
| + | </syntaxhighlight> |
| | | |
− | 3. Use request to set color-temp for dimmer element
| |
− | curl --header 'Content-Type: application/json' --data '{"request":"status-set","API-KEY":".................","addr":"585:17", "status":{"color-temp":100}}' 'http://de-mg.local/API2/'
| |
| | | |
| </translate> | | </translate> |