poinck / lampe

control for your Philips Hue lights from Terminal or Gnome
Creative Commons Zero v1.0 Universal
91 stars 4 forks source link

Turn on light with terminal #52

Open Cyberdr3am opened 2 years ago

Cyberdr3am commented 2 years ago

Hi,

When i use shell command in the terminal to turn on light i have got a error.

/usr/bin/lampe: ligne 493: {"state":{"on":true : erreur de syntaxe : opérande attendu (le symbole erroné est « {"state":{"on":true »)

I use the command

lampe -s 1 y

This must turn on the light with the number 1

When i use the gtk app no problem to toggle the light

Maybe i do something wrong ?

edity : After some other test the light turn on but just sometimes and the brightness is very low I try lamp -s 3 s 100 but don't work

poinck commented 2 years ago

Which version of lampe are you using? I will investigate this after I finished my bachelor thesis.

Cyberdr3am commented 2 years ago

Thx for the help. I use the last AUR version. All my phillips hue are on the last update

poinck commented 8 months ago

I don't know which version is currently packaged in the AUR. You can use the latest version from GitLab, https://gitlab.com/poinck/lampe

poinck commented 8 months ago

Setting a brightness value in oneshot mode is currently not supported, only increments with "s" or "w" are possible.

I consider this now a future feature.