Support for light devices
This PR adds support for lights with IR or RF remote controls.
Support for color temperature and brightness control is provided, with the assumption that each function is driven by "up" and "down" commands. When color temperature or brightness is set to the end of the range, more commands than necessary are deliberately issued to attempt to resync the light in case the remote has been used.
Initial configuration is for an Iris Ohyama dome ceiling light sold in Japan. In addition to the 10 step brightness and color temperature controls, this light also contains a nightlight, which is turned on by setting brightness to 1 (0.4%, which cannot be mistakenly selected in the UI, as that only goes down to 1%). It also contains a memory feature, which is used to have better control over the turn-on brightness and color temperature, and an off timer feature which is not implemented here.
Note: The icon may be using a slightly different font than the others, and should probably be redone by someone who knowss the details of how the others were made to be consistent.
Required HA version was updated from 2022.4 to 2022.5 to get COLOR_TEMP_KELVIN support, as mireds were deprecated in 2022.11, so any new light implementation should use Kelvin.
Any news for this PR?? Would be nice to be able to add lights through SmartIR
Hi! Any chance of this PR to be marged into main? Would be a great addition. Thanks!
This PR will address #939 also
Still waiting for the merge, would be great to see this PR in the next release :)