Skip to content

Commit

Permalink
Merge pull request #151 from mdeweerd/dev
Browse files Browse the repository at this point in the history
Minor polishing, update STATS.md
  • Loading branch information
mdeweerd authored Feb 26, 2023
2 parents 4f9897e + 5b589eb commit 02030f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -809,16 +809,16 @@ cluster will be bound (both in and out clusters).

Use `binds_get` to verify that the configuration worked.

It's possible to attempt binding specific end points between `ieee` and
It's possible to attempt binding specific endpoints between `ieee` and
`command_data`.\
Endpoint for `ieee` can be provided by `endpoint`.\
If
it's not specified then all endpoints on `ieee` are considered.\
Endpoint
for `command_data` can be provided by `dst_endpoint`. If it's not specified
then all endpoints on `command_data` are considered\
and the first one that
matches cluster-wise will be picked.\\
The endpoint for `ieee` (source) can be provided by
`endpoint`.\
If it's not specified then all endpoints on `ieee` are
considered.\
Endpoint for `command_data` (destination) can be provided by
`dst_endpoint`. If it's not specified then all endpoints on `command_data`
are considered\
and the first one that matches cluster-wise will be picked.

```yaml
service: zha_toolkit.bind_ieee
Expand All @@ -828,6 +828,10 @@ data:
command_data: 00:12:4b:00:22:08:ed:1a
# Optional, if you want to bind a cluster not internally selected.
cluster: 0x0006
# Optional: source endpoint (for ieee)
endpoint: 2
# Optional: destination endpoint (for command_data)
dst_endpoint: 3
```

### `binds_get`: Get binding table from the device
Expand Down
1 change: 1 addition & 0 deletions STATS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Badges showing number of downloads per version

- ![badge latest](https://img.shields.io/github/downloads/mdeweerd/zha-toolkit/latest/total.svg)
- ![badge v0.8.35](https://img.shields.io/github/downloads/mdeweerd/zha-toolkit/v0.8.35/total.svg)
- ![badge v0.8.34](https://img.shields.io/github/downloads/mdeweerd/zha-toolkit/v0.8.34/total.svg)
- ![badge v0.8.33](https://img.shields.io/github/downloads/mdeweerd/zha-toolkit/v0.8.33/total.svg)
- ![badge v0.8.32](https://img.shields.io/github/downloads/mdeweerd/zha-toolkit/v0.8.32/total.svg)
Expand Down
1 change: 1 addition & 0 deletions custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
vol.Optional(ATTR_COMMAND_DATA): vol.Any(list, cv.string),
vol.Optional(P.CMD): cv.string,
vol.Optional(P.ENDPOINT): vol.Any(cv.byte, [cv.byte]),
vol.Optional(P.DST_ENDPOINT): vol.Any(cv.byte, [cv.byte]),
vol.Optional(P.CLUSTER): vol.Range(0, 0xFFFF),
vol.Optional(P.ATTRIBUTE): vol.Any(
vol.Range(0, 0xFFFF), cv.string
Expand Down
2 changes: 1 addition & 1 deletion custom_components/zha_toolkit/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ bind_ieee:
max: 255
mode: box
dst_endpoint:
description: 'Destination endpoint (when missing: first that fits cluster-wise )'
description: 'Destination endpoint (when missing: first EP with matching cluster)'
selector:
number:
min: 1
Expand Down

0 comments on commit 02030f5

Please sign in to comment.