sahilchaddha / homebridge-yeelight-platform

Homebridge plugin for Yeelight Lights supporting Scenes/Moods/Color Flow/Custom Presets/Music Flow/Night Mode
MIT License
58 stars 7 forks source link

Moonlight #19

Closed alexpod93 closed 5 years ago

alexpod93 commented 5 years ago

Hello! i'm trying to tune my yeelight ceiling lamp 650, specifically night mode. When i run Moonlight scene then yeelight switches to night mode, but "params": "1" don't reset to CT mode back. Because of it I can switch yeelight to CT mode only via yeelight app on mi iPhone. I tried different params like: "params": "1", "params": "2" and even "params": "50,2,5500,100".

 {
            "platform": "Yeelight-Platform",
            "addResetSwitch": true,
            "shouldTurnOff": true,
            "scenes": [
                {
                    "name": "Dark Cave",
                    "scene": "custom",
                    "params": "2000,1,255,70,2000,1,255,100,5000,1,255,70,3000,1,13369548,100,3000,1,13369548,10"
                },
                {
                    "name": "Break in",
                    "scene": "custom",
                    "params": "500,1,255,100,500,1,255,10"
                },
                {
                    "name": "Стандарт",
                    "scene": "custom",
                    "params": "50,2,5500,100",
                    "shouldTurnOff": false
                },
                {
                    "name": "Disco",
                    "scene": "disco"
                },
                {
                    "name": "Party",
                    "scene": "birthday_party"
                },
                {
                    "name": "Flash",
                    "scene": "flash_notify"
                },
                {
                    "name": "Candle Light",
                    "scene": "candle_flicker"
                },
                {
                    "name": "Police_1",
                    "scene": "police_1"
                },
                {
                    "name": "Police_2",
                    "scene": "police_2"
                },
                {
                    "name": "Alarm",
                    "scene": "alarm"
                },
                {
                    "name": "Gaming",
                    "scene": "gaming"
                },
                {
                    "name": "Moonlight",
                    "scene": "night_mode",
                    "params": "1",
                    "lights": [
                        "0x00000000049c70f7"
                    ],
                    "shouldTurnOff": false
                }
            ],
            "autoLights": {
                "0x00000000049c70f7": true
            }
        }

And one more question. Is it possible to control Ambilight on yeelight 650?

Arderos commented 5 years ago

I can confirm that. Any chance it will be fixed?

ierhyna commented 5 years ago

Hey, I faced the same issue and after some research of source code found out that "params" should be number, not string. So "params": 1, works just fine!

Olepir commented 5 years ago

Hey, I faced the same issue and after some research of source code found out that "params" should be number, not string. So "params": 1, works just fine!

Where exactly do this?

ierhyna commented 5 years ago

Hey, I faced the same issue and after some research of source code found out that "params" should be number, not string. So "params": 1, works just fine!

Where exactly do this?

Just like in original post:

{
           "platform": "Yeelight-Platform",
           "scenes": [
               {
                   "name": "Moonlight",
                   "scene": "night_mode",
                   "params": 1,
                   "lights": [
                       "0x00000000049c70f7" 
                   ],
                   "shouldTurnOff": false
               }
           ],
}
phenomeus commented 5 years ago

this HELPED so much! I was struggling like for months. the documentations and examples are not helping but this hint does!

sahilchaddha commented 5 years ago

Thanks @ierhyna for clarifying. Il work on updating the documentation + examples. Closing this ticket for now.