Skip to content

Commit

Permalink
Add wizlight examples to README
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezjnr committed Oct 8, 2022
1 parent 6df8a99 commit 66ad8ca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,25 @@ Commands:
state Get the current state from the given bulb.
```

### Examples

```
$ wizlight discover --b 192.168.0.101
Search for bulbs in 192.168.0.101 ...
{'ip_address': '192.168.0.101', 'mac_address': 'a8bs4090193d'}
$ wizlight on --ip 192.168.0.101 --k 3000 --brightness 128
Turning on 192.168.0.101
$ wizlight off --ip 192.168.0.101
Turning off 192.168.0.101
$ wizlight state --ip 192.168.0.101
{'mac': 'a8bs4090193d', 'rssi': -57, 'src': '', 'state': False, 'sceneId': 0, 'temp': 3000, 'dimming': 50}
```

Run `wizlight COMMAND --help` to see usage and options.

## Discovery

The discovery works with a UDP Broadcast request and collects all bulbs in the network.
Expand Down

0 comments on commit 66ad8ca

Please sign in to comment.