oskarn97 / fhem-xiaomi-mqtt

FHEM Zigbee2MQTT Integration
7 stars 4 forks source link

Add handling of RGB, HUE and Saturation color values and transition times #16

Open lvermue opened 5 years ago

lvermue commented 5 years ago

The nested json declaration used in zigbee2mqtt to set the colors of RGB-lightbulbs was added and now supports RGB-Hex values as natively used by FHEM as well as HUE and Saturation values that typically are used by HomeKit/Homebridge in combination with FHEM. Furthermore, the transition time of the action can now be given as second optional value for any command in FHEM and will be forwarded properly to zigbee2mqtt. modified: 72_XiaomiMQTTDevice.pm

oskarn97 commented 5 years ago

Thank you for your contribution! Did you test your changes in a production system?

lvermue commented 5 years ago

Yes, I'm running this version on my main FHEM installation without any problems this far.

Sonsi79 commented 5 years ago

The nested json declaration used in zigbee2mqtt to set the colors of RGB-lightbulbs was added and now supports RGB-Hex values as natively used by FHEM as well as HUE and Saturation values that typically are used by HomeKit/Homebridge in combination with FHEM. Furthermore, the transition time of the action can now be given as second optional value for any command in FHEM and will be forwarded properly to zigbee2mqtt. modified: 72_XiaomiMQTTDevice.pm

Hey @lvermue thnx for your nice optimization :-)

Is it also possible to build in the "pct" to handle % (0:off - 100) Values for brightness (0 - 255)?

I also try to get the "transition 1" as standard for every change of RGB or brightness, is it possible? It is build in for on/off but not for change of color or brightness.

This handling is default for the HUE-FHEM-Modul an I love it