Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jlusiardi authored Apr 17, 2018
1 parent 5f858ce commit 9467aba
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ This tool will read values from one or more characteristics.

Usage:
```bash
python3 -m homekit.get_characteristic.py -f ${PAIRINGDATAFILE} -c {Characteristics} [-m] [-p] [-t] [-e]
python3 -m homekit.get_characteristic.py -f ${PAIRINGDATAFILE} -c ${Characteristics} [-m] [-p] [-t] [-e]
```

The option `-c` specifies the characteristics to read. The format is `<aid>.<cid>[,<aid>.<cid>]*`.
Expand All @@ -154,6 +154,23 @@ The option `-t` specifies if the type information should be read as well.

The option `-e` specifies if the event data should be read as well.

## put_characteristic.py
This tool will write values to one characteristic.

Usage:
```bash
python3 -m homekit.put_characteristic.py -f ${PAIRINGDATAFILE} -c ${Characteristics} -v ${value}
```

The option `-c` specifies the characteristics to read. The format is `<aid>.<cid>[,<aid>.<cid>]*`.

The option `-v` specifies the value that should be written to the characteristic.

For example, this command turns of a Koogeek P1EU Plug:
```
python3 -m homekit.put_characteristic -f koogeek.json -c 1.8 -v false
```

# HomeKit Accessory

# Tests
Expand Down

0 comments on commit 9467aba

Please sign in to comment.