monster1025 / aqara-mqtt

Aqara (Xiaomi) Gateway to MQTT bridge (I use it for home assistant integration)
Apache License 2.0
88 stars 21 forks source link

Added brightness parameter for gateway RGB & int validation #3

Closed radumpopescu closed 7 years ago

radumpopescu commented 7 years ago

Hi!

This morning I started a library from scratch for exactly the same purpose, but when I was about to create the repo, I discovered yours. I love it! It's exactly what I needed! 😍

In this Pull request, I added a 4th parameter for the gateway rgb message (r,g,b,brightness). Otherwise, you can't really turn the light off 😄

Thanks!

monster1025 commented 7 years ago

P.S. I have fixed report-backs for rgb property in last commit to rgb+brightness format, keep in mind this change.