sbidy / pywizlight

A python connector for WiZ devices
MIT License
463 stars 79 forks source link

Suggestion : Control scene, and ignore kelvin and brightness using CLI #157

Open xioto opened 1 year ago

xioto commented 1 year ago

I would like to be able to turn the lights on to the default rhythm they are set to, but the CLI requires me to give the brightness and the Kelvin. Since I want to automate this process to a button, I can't have the brightness set to a defualt value, especially for mornings and nights.

xioto commented 1 year ago

e.g wizlight on --ip 192.168.X.XX --scene 5

treaki commented 3 months ago

i just build a new CLI because i was annoyed with the one provided, its still quick and dirty but maybe have a look:

172 better CLI

treaki commented 3 months ago

hey, probably i should have checked the developments here during the last 4 years, looks like the main cli got a bit better to, but the help feature in there was still bad so i didnt recognized it. so probably most of my work in vain, but hey, i like my help feature still better ;)

~/git/pywizlight $ wizlight_cli
usage: wizlight_cli [-h] {discover,on,off,state,set-state} ...
wizlight_cli: error: the following arguments are required: command
~/git/pywizlight $ wizlight_cli -h
usage: wizlight_cli [-h] {discover,on,off,state,set-state} ...

Control WizLight bulbs via command line.

positional arguments:
  {discover,on,off,state,set-state}
    discover            Discover bulbs in the local network
    on                  Turn a given bulb on
    off                 Turn a given bulb off
    state               Get the current state of a given bulb
    set-state           Set the current state of a given bulb

optional arguments:
  -h, --help            show this help message and exit
~/git/pywizlight $ wizlight_cli on
usage: wizlight_cli on [-h] ip
wizlight_cli on: error: the following arguments are required: ip
~/git/pywizlight $ wizlight_cli on -h
usage: wizlight_cli on [-h] ip

positional arguments:
  ip          IP address of the WizLight bulb

optional arguments:
  -h, --help  show this help message and exit
~/git/pywizlight $ wizlight_cli off -h
usage: wizlight_cli off [-h] ip

positional arguments:
  ip          IP address of the WizLight bulb

optional arguments:
  -h, --help  show this help message and exit