SmartIR icon indicating copy to clipboard operation
SmartIR copied to clipboard

Support for light devices

Open make-all opened this issue 3 years ago • 4 comments

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.

make-all avatar Jan 03 '23 13:01 make-all

Any news for this PR?? Would be nice to be able to add lights through SmartIR

fran122157 avatar Mar 24 '23 23:03 fran122157

Hi! Any chance of this PR to be marged into main? Would be a great addition. Thanks!

PGayol avatar Apr 26 '23 02:04 PGayol

This PR will address #939 also

make-all avatar Sep 26 '23 00:09 make-all

Still waiting for the merge, would be great to see this PR in the next release :)

V4n1X avatar May 12 '24 17:05 V4n1X