You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -188,7 +188,7 @@ Following configuration is a real world example for a accessory that combines a
188
188
"body": "{\"xy\": [%xy-x,%xy-y]}"
189
189
},
190
190
"brightness": false,
191
-
"http_method": "put"
191
+
"http_method": "PUT"
192
192
}
193
193
}
194
194
]
@@ -226,7 +226,7 @@ Following configuration is a real world example for a accessory that combines a
226
226
|`username`_(optional)_| Username if http authentication is enabled on the RGB device. ||
227
227
|`password`_(optional)_| Password if http authentication is enabled on the RGB device. ||
228
228
|`notificationID`_(optional)_| Identifier to use when device sends push notifications. See [Push notifications](#push-responses-device-pushes-updates)||
229
-
|`notificationPasword`_(optional)_| Password to use when device sends push notifications. ||
229
+
|`notificationPassword`_(optional)_| Password to use when device sends push notifications. ||
230
230
|`switch`| A [switch object](#switch-object)| - |
231
231
|`brightness`| A [brightness object](#brightness-object)| - |
232
232
|`color`| A [color object](#color-object)| - |
@@ -264,7 +264,7 @@ Following configuration is a real world example for a accessory that combines a
264
264
| Key | Description |
265
265
| --- | --- |
266
266
|`url`| URL to set brightness status |
267
-
|`body`| relevant, if the http_method is put/post. this body is sent to the url. you can use a placeholder (`%s`) within the body. example: `{"bri": %s}`|
267
+
|`body`| relevant, if the http_method is PUT/POST. this body is sent to the url. you can use a placeholder (`%s`) within the body. example: `{"bri": %s}`|
268
268
269
269
270
270
### Color object
@@ -275,17 +275,11 @@ Following configuration is a real world example for a accessory that combines a
275
275
|`brightness`| Whether or not the plugin should include brightness data in `color` HEX data (`true` or `false`). When `true` brightness will be controllable in HomeKit but will be changed through changing RGB values. |
276
276
|`http_method`_(optional)_| The brightness specific HTTP method for set requests. If omitted defaults to `http_method` as specified in the root structure |
277
277
278
-
#### Color status object
279
-
| Key | Description |
280
-
| --- | --- |
281
-
|`url`| URL to retrieve brightness status |
282
-
|`bodyRegEx`_(optional)_| Regular expression to extract the brightness out of a response body. Example: `"bri":([0-9]+)`|
283
-
284
278
#### Color url object
285
279
| Key | Description |
286
280
| --- | --- |
287
281
|`url`| URL to set color status |
288
-
|`body`| relevant, if the http_method is put/post. this body will be sent to the url. you can use following placeholders: `%s` (hex-rgb), `%xy-x`, `%xy-y`. Example: `{"xy": [%xy-x,%xy-y]}`|
282
+
|`body`| relevant, if the http_method is PUT/POST. this body will be sent to the url. you can use following placeholders: `%s` (hex-rgb), `%xy-x`, `%xy-y`. Example: `{"xy": [%xy-x,%xy-y]}`or `{"rgb": "%s"}`|
0 commit comments