The "new" Milight IBox and milight binding

Changelog:

  • Make the rgbww led a separate thing. It works differently than the old RGBW bulbs and this is reflected in the available channels.
  • The previous animation mode channel is now only available for rgbww as it was emulated on older bulbs anyway. A new relative animation mode change channel is for all other/older led types.
  • Fix incoming packet parsing.
  • Fix channel definitions. Brightness and Saturation now correctly allow a value between 0-100 (PercentType).
  • Fix checksum calculations for color commands.
  • Add “password” configuration. (iBox supports to set a two byte password. I have no idea what this is for, the commands are send plain text anyway.)
  • Command repeat configuration
  • Wait between commands configuration
  • Commands are issued into a scheduled sender thread and no blocking sleep is used anymore.
  • Whitemode/Nightmode are triggers now instead of stateful channels. The most suitable widget would be a pushbutton. To return from Whitemode/Nightmode it might be enough to change the brightness I recon, but not sure. This is not really specified.

Thanks,
David