darth-hp / yeelight-shell-scripts

Control Xiaomi Mi Yeelight (RGB) with bash scripts
Apache License 2.0
130 stars 23 forks source link

Sunrise and Sunset not working #4

Closed WladyX closed 6 years ago

WladyX commented 6 years ago

Hi, First of all a big thank you for your scripts, they have been really helpfull for me. The only upset is that Sunset and Sunrise do not work.

As a workaround I found: /home/me/.local/bin/yeelight_set_scene.sh 3 1 '50,1,16731392,1,360000,2,1700,10,540000,2,2700,100' 192.168.1.3"

cat /home/me/.local/bin/yeelight_set_scene.sh

!/bin/bash

echo -ne "{\"id\": 1, \"method\": \"set_scene\", \"params\": [\"cf\",${1},${2},\"${3}\"]}\r\n" | /bin/nc -w1 ${4} 55443

from here: https://community.home-assistant.io/t/sunrise-sunset-script/13135/2 and this works. Can you please advise, I would preffer to use only your script if possible :) Thanks again! Vlad

LE:

  1. I cannot comment on the issue: " An owner of this repository has limited the ability to comment to users that are collaborators on this repository. "
  2. yeelight-ips should be declared with absolute path (so it does not depend from where you run the script (if it is in the $PATH))
  3. Add Sunrise2 to SCENES=....
  4. Sunrise2 works perfect
  5. Old Sunrise and Sunset also work now, but are very white.

Thank you very much!

darth-hp commented 6 years ago

I created Sunrise2 - have a try @WladyX