Skip to content

Commit

Permalink
Add %%POS%% notes to config.json.schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc committed Jul 4, 2020
1 parent 5b89894 commit fa5e2d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ The plugin emulates the blinds position (it saves it in a variable) using an und

For `up_url` and `down_url`, the variable `%%POS%%` can be included in the URL, which will be replaced with the desired target before the URL is requested. For example, use of `http://1.2.3.4/window/up?pos=%%POS%%` would be modified to `http://1.2.3.4/window/up?pos=100` if the position 100 was requested. This is useful for cases where blinds offer the ability to directly specify the value.

When `%%POS%%` is used, note that `stop_url` will not be sent. (Because the blinds can receive a specific position, that there is no need to send an additional stop command.)
When `%%POS%%` is used, note that `stop_url` will not be sent. (Because the blinds can receive a specific position, there is no need to send an additional stop command.)


#### Receiving specific position (optional, ad hoc basis)
Expand Down
8 changes: 8 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@
"type": "fieldset",
"expandable": true,
"items": [
{
"type": "help",
"helpvalue": "<p class='text-muted'><span class='text-info'>%%POS%%</span> can be included in the URL, which will be replaced with the desired target. The Stop URL will not be sent if <span class='text-info'>%%POS%%</span> is used (because the blinds can receive a specific position, there is no need to send an additional stop command).</p>"
},
"up_url",
{
"key": "motion_up_time",
Expand All @@ -256,6 +260,10 @@
"type": "fieldset",
"expandable": true,
"items": [
{
"type": "help",
"helpvalue": "<p class='text-muted'><span class='text-info'>%%POS%%</span> can be included in the URL, which will be replaced with the desired target. The Stop URL will not be sent if <span class='text-info'>%%POS%%</span> is used (because the blinds can receive a specific position, there is no need to send an additional stop command).</p>"
},
"down_url",
{
"key": "motion_down_time",
Expand Down

0 comments on commit fa5e2d3

Please sign in to comment.